* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f4f6f8;
  color: #1f2933;
}

.admin-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

header h1 {
  margin: 0;
  font-size: 28px;
}

.subtitle {
  margin: 4px 0 0;
  color: #6b7280;
}

.logout-form {
  margin-left: auto;
}

.logout-form button {
  border: none;
  background: #ef4444;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.logout-form button:hover {
  background: #dc2626;
}

nav a {
  margin-left: 12px;
  text-decoration: none;
  color: #4b5563;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s;
}

nav a.active,
nav a:hover {
  background: #2563eb;
  color: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.card h3 {
  margin: 0 0 6px;
  font-weight: 500;
  color: #6b7280;
}

.card .value {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
}

.panel {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

table th,
table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

table th {
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.empty {
  text-align: center;
  color: #9ca3af;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
  font-size: 12px;
}

.badge.success {
  background: #d1fae5;
  color: #065f46;
}

.subtext {
  font-size: 11px;
  color: #6b7280;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #e0f2fe, #f8fafc);
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.login-card h1 {
  margin-top: 0;
  text-align: center;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-card label {
  font-weight: 500;
}

.login-card input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.login-card button {
  margin-top: 8px;
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.alert {
  background: #fee2e2;
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  text-align: center;
}

.alert.success {
  background: #dcfce7;
  color: #166534;
}

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group textarea {
  resize: vertical;
}

.field-group select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.radio-row {
  display: flex;
  gap: 16px;
}

.notify-form button {
  align-self: flex-start;
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 12px;
  }
}


