html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #f0f3f7;
  color: #1a2332;
}

a {
  text-decoration: none;
}

/* Admin shell */
.admin-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0f2744 0%, #163a5f 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand i {
  font-size: 1.5rem;
  color: #5ec8ff;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav .nav-link {
  color: rgba(255, 255, 255, 0.75);
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.15s, color 0.15s;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: rgba(94, 200, 255, 0.15);
  color: #fff;
}

.sidebar-nav .nav-link.active {
  background: rgba(94, 200, 255, 0.25);
  font-weight: 600;
}

.sidebar-footer {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #dde3ea;
  padding: 1rem 1.75rem;
}

.page-heading {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
}

.content {
  padding: 1.5rem 1.75rem 2.5rem;
}

/* Stats cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.stat-card .label {
  font-size: 0.85rem;
  color: #5a6a7d;
  margin-bottom: 0.35rem;
}

.stat-card .value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f2744;
}

.stat-card.accent .value {
  color: #c45c26;
}

/* Tables / panels */
.panel {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 1rem;
}

.table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5a6a7d;
  border-bottom-width: 1px;
}

.thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.35rem;
  background: #e8eef4;
}

.badge-status {
  text-transform: capitalize;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* Login */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f2744 0%, #1a4a73 50%, #0d3d5c 100%);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.login-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #0f2744;
}

.login-card .subtitle {
  color: #5a6a7d;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .admin-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
