:root {
  --navy: #101B2D;
  --teal: #00A69C;
  --orange: #FF6B35;
  --gray: #6B7280;
  --bg: #F5F6F8;
  --border: #E2E5EA;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--navy);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: var(--navy);
  color: white;
}

.topbar .brand {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.topbar nav { display: flex; gap: 16px; flex: 1; }

.topbar nav a, .topbar .logout {
  color: #C9D3E0;
  text-decoration: none;
  font-size: 14px;
}

.topbar nav a:hover, .topbar .logout:hover { color: white; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

h1 { font-size: 22px; margin-bottom: 16px; }
h2 { font-size: 18px; margin: 24px 0 10px; }

.flash {
  background: #FFF4EC;
  border: 1px solid var(--orange);
  color: #8A3B12;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filters select, .filters input[type=text] {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.filters button {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  cursor: pointer;
  font-size: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(16,27,45,0.08);
}

th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

th { background: #FAFBFC; color: var(--gray); font-weight: 600; font-size: 12px; text-transform: uppercase; }

tr:last-child td { border-bottom: none; }

tr.row-link { cursor: pointer; }
tr.row-link:hover { background: #F9FAFB; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-muted { background: #EEF0F3; color: var(--gray); }
.status-warn { background: #FFF1E8; color: #B4491B; }
.status-info { background: #E6F7F6; color: #05716A; }
.status-ok { background: #E7F6EC; color: #1A7A3B; }
.status-danger { background: #FDEDED; color: #B3261E; }

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(16,27,45,0.08);
  margin-bottom: 20px;
}

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--gray); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.field textarea { min-height: 70px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.btn-save {
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.back-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gray);
  text-decoration: none;
  font-size: 14px;
}
.back-link:hover { color: var(--navy); }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: white;
  padding: 36px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(16,27,45,0.12);
  width: 300px;
}
.login-card h1 { text-align: center; font-size: 18px; letter-spacing: 0.05em; color: var(--navy); }
.login-card button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  font-size: 14px;
  cursor: pointer;
  margin-top: 6px;
}

.muted-text { color: var(--gray); font-size: 13px; }
