:root {
  --navy: #082A52;
  --green: #20C65A;
  --bg: #F6F8FB;
}

* { box-sizing: border-box; }

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

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1000;
  transition: transform .2s ease;
}

.sidebar-brand {
  font-size: 20px;
  font-weight: 700;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-brand i { color: var(--green); margin-right: 8px; }

.sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-nav a i { width: 18px; text-align: center; }
.sidebar-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-nav a.active { background: var(--green); color: #06210f; font-weight: 600; }

.sidebar-footer {
  padding: 16px 18px 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.admin-chip { color: #cfe0ee; font-size: 13.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px;}
.logout-link { color: #ffb4b4; text-decoration: none; font-size: 14px; display:flex; align-items:center; gap:8px;}
.logout-link:hover { color: #ff7a7a; }

.main-content {
  margin-left: 240px;
  flex: 1;
  min-width: 0;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #e6ebf1;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar h1 { font-size: 20px; font-weight: 700; margin: 0; color: var(--navy); }

.content-body { padding: 26px 28px 60px; }

.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(20,30,60,.06);
  border: 1px solid #eef1f6;
  height: 100%;
}
.stat-card .stat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: #fff; margin-bottom: 12px;
}
.stat-card .stat-value { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-card .stat-label { font-size: 13px; color: #64748b; margin-top: 4px; }

.card-panel {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eef1f6;
  box-shadow: 0 1px 3px rgba(20,30,60,.06);
}
.card-panel .card-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eef1f6;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-panel .card-panel-body { padding: 20px; }

table.table { margin-bottom: 0; }
table.table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: #7a8699; border-bottom-width: 1px; }
table.table td { vertical-align: middle; font-size: 14.5px; }

.avatar-thumb {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #0a355f; color: #fff; }
.btn-green { background: var(--green); color: #06210f; }
.btn-green:hover { background: #1bb04f; color: #06210f; }

.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), #0f3d6e);
}
.login-card {
  background: #fff;
  width: 100%; max-width: 380px;
  border-radius: 16px;
  padding: 34px 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.login-card h1 { font-size: 22px; font-weight: 800; color: var(--navy); text-align: center; margin-bottom: 4px; }
.login-card p.sub { text-align: center; color: #7a8699; font-size: 13.5px; margin-bottom: 22px; }

@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .app-shell.sidebar-open .sidebar { transform: translateX(0); }
  .main-content { margin-left: 0; }
}
