.admin-body { background: #f4f7fb; margin: 0; display: block; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 268px;
  background: #071a41;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  z-index: 40;
}
.side-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}
.side-brand img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: white;
  object-fit: cover;
}
.side-brand strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
  letter-spacing: .04em;
  display: block;
  line-height: 1;
}
.side-brand span { color: rgba(255,255,255,.65); font-size: .78rem; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a, .side-logout button {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 700;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
}
.side-nav a:hover, .side-nav a.is-active, .side-logout button:hover {
  background: rgba(255,255,255,.08);
  color: white;
}
.side-nav a.is-active { box-shadow: inset 3px 0 0 #0057ff; }
.side-logout { margin-top: auto; }
.admin-main { margin-left: 268px; min-height: 100vh; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 0;
}
.topbar h1 { font-size: 2.4rem; text-transform: uppercase; }
.icon-btn {
  display: none;
  border: 0;
  background: white;
  border-radius: 12px;
  width: 44px;
  height: 44px;
}
.admin-content { padding: 18px 22px 40px; }
.stat-grid, .chart-grid { display: grid; gap: 14px; }
.stat-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; }
.chart-grid { grid-template-columns: 1.3fr .7fr; margin-bottom: 14px; }
.stat-card, .chart-card, .table-card, .filter-card {
  background: white;
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 12px 32px rgba(7, 26, 65, 0.06);
}
.stat-card span { color: #6b7280; font-weight: 700; font-size: .82rem; }
.stat-card strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.6rem;
  line-height: 1;
  margin-top: 6px;
}
.stat-card i { color: #0057ff; }
.chart-card h2, .table-card h2 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: 10px; }
.chart-box { position: relative; height: 260px; }
.filter-card { margin-bottom: 14px; }
.filter-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; }
.table-card { overflow: auto; }
table.dataTable { width: 100% !important; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-overlay { display: none; }
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  background: #071a41;
}
.login-brand {
  color: white;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-brand img { width: 220px; background: white; border-radius: 24px; margin-bottom: 18px; }
.login-brand h1 { font-size: 4.5rem; text-transform: uppercase; }
.login-panel {
  background: #f4f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.login-card { width: min(420px, 100%); background: white; border-radius: 24px; padding: 28px; box-shadow: 0 16px 40px rgba(7,26,65,.08); }
.hint { background: #e8efff; border-radius: 14px; padding: 12px; margin-bottom: 14px; font-size: .9rem; }

@media (max-width: 1100px) {
  .stat-grid, .filter-grid { grid-template-columns: 1fr 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .icon-btn { display: grid; place-items: center; }
  .sidebar { transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.is-open { transform: none; }
  .admin-main { margin-left: 0; }
  .nav-overlay.is-open { display: block; position: fixed; inset: 0; background: rgba(7,26,65,.45); z-index: 30; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { padding: 28px 20px; }
  .login-brand h1 { font-size: 3rem; }
}
