:root {
  --navy: #0b2447;
  --navy-dark: #071a34;
  --green: #2ecc71;
  --green-dark: #27ae60;
  --sidebar-w: 260px;
}
* { font-family: 'Roboto', sans-serif; box-sizing: border-box; }
body { background: #f3f5f8; }

/* Login */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); }
.login-box { background: #fff; border-radius: 14px; padding: 44px 40px; width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.login-box .form-control { border-radius: 8px; padding: 10px 14px; }
.login-box .btn-success { background: var(--green); border: none; font-weight: 500; }
.login-box .btn-success:hover { background: var(--green-dark); }

/* Layout */
.admin-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); background: var(--navy-dark); color: #cbd5e1; overflow-y: auto; z-index: 1030; transition: left .25s; }
.admin-sidebar .brand { padding: 20px; font-weight: 700; color: #fff; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-sidebar .nav-section { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: #64748b; padding: 16px 20px 6px; }
.admin-sidebar .nav-link { color: #cbd5e1; padding: 10px 20px; display: flex; align-items: center; gap: 12px; font-size: .9rem; border-left: 3px solid transparent; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: rgba(255,255,255,.06); color: #fff; border-left-color: var(--green); }
.admin-sidebar .nav-link i { width: 18px; text-align: center; }

.admin-main { margin-left: var(--sidebar-w); min-height: 100vh; transition: margin-left .25s; }
.admin-topbar { background: #fff; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.04); position: sticky; top: 0; z-index: 1020; }
.admin-topbar .sidebar-toggle { display: none; }
.admin-content { padding: 24px; }

.stat-card { background: #fff; border-radius: 12px; padding: 22px; display: flex; align-items: center; gap: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.04); height: 100%; }
.stat-card .icon { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; flex-shrink: 0; }
.stat-card b { font-size: 1.4rem; display: block; color: var(--navy); }
.stat-card span { font-size: .82rem; color: #6b7280; }

.card-panel { background: #fff; border-radius: 12px; padding: 22px; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.card-panel h6 { font-weight: 700; color: var(--navy); }

.table thead th { background: #f8fafc; font-size: .78rem; text-transform: uppercase; color: #64748b; border-bottom: none; font-weight: 600; }
.table td { vertical-align: middle; font-size: .88rem; }
.badge-status-active { background: #dcfce7; color: #16a34a; }
.badge-status-inactive { background: #fee2e2; color: #dc2626; }
.badge-status-pending { background: #fef3c7; color: #b45309; }

.btn-icon { width: 32px; height: 32px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e5e7eb; color: #6b7280; }
.btn-icon:hover { background: #f3f4f6; }

@media (max-width: 991px) {
  .admin-sidebar { left: -260px; }
  .admin-sidebar.open { left: 0; }
  .admin-main { margin-left: 0; }
  .admin-topbar .sidebar-toggle { display: inline-flex; }
}
