:root {
  --navy: #0b1e3d;
  --navy-dark: #071429;
  --gold: #c89b3c;
  --gold-light: #e4c97a;
  --cream: #f7f5ef;
  --ink: #1a1a1a;
  --gray: #6b6f76;
}

body {
  background: var(--cream);
  font-family: 'Segoe UI', Calibri, Arial, sans-serif;
  color: var(--ink);
  margin: 0;
}

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

/* ---------- Sidebar ---------- */
.app-sidebar {
  width: 260px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand { display: flex; align-items: center; gap: .75rem; padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--gold); color: var(--navy-dark); display:flex; align-items:center; justify-content:center; font-size: 1.25rem; }
.sidebar-brand-title { font-weight: 700; font-size: 1.05rem; line-height:1.1; }
.sidebar-brand-sub { font-size: .72rem; color: var(--gold-light); text-transform: uppercase; letter-spacing: .05em; }
.sidebar-nav { flex: 1; padding: .75rem .6rem; overflow-y:auto; }
.sidebar-nav a { display:flex; align-items:center; gap:.65rem; padding:.6rem .8rem; margin-bottom:.15rem; border-radius:8px; color:#c7cedac0; text-decoration:none; font-size:.9rem; }
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color:#fff; }
.sidebar-nav a.active { background: var(--gold); color: var(--navy-dark); font-weight:600; }
.sidebar-section-title { font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; color:#8b93a5; margin:1rem .8rem .3rem; }
.sidebar-footer { padding: .9rem 1.25rem; font-size:.72rem; color:#8b93a5; border-top:1px solid rgba(255,255,255,.08); }

/* ---------- Main / Topbar ---------- */
.app-main { flex: 1; min-width: 0; display:flex; flex-direction:column; }
.topbar { background: var(--navy); padding: .85rem 1.5rem; position: sticky; top:0; z-index: 20; }
.topbar-title { color: #fff; font-size: 1.05rem; font-weight: 600; }
.notif-dot { position:absolute; top:-6px; right:-10px; font-size:.6rem; padding:.2em .4em; }
.app-content { padding: 1.5rem; flex: 1; }

/* ---------- Components ---------- */
.card { border: none; border-radius: 12px; box-shadow: 0 1px 3px rgba(11,30,61,.08); }
.card-header { background: #fff; border-bottom: 1px solid #eee; font-weight: 600; color: var(--navy); border-radius: 12px 12px 0 0 !important; }
.stat-card { border-radius: 14px; padding: 1.25rem; color:#fff; background: var(--navy); }
.stat-card .stat-value { font-family: Georgia, serif; font-size: 2rem; font-weight: 700; }
.stat-card .stat-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-light); }
.stat-card.alt { background: #fff; color: var(--navy); border: 1px solid #eee; }
.stat-card.alt .stat-label { color: var(--gold); }

.btn-primary { background: var(--navy); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); font-weight:600; }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-dark); }

.table thead th { background: var(--navy); color:#fff; font-weight:600; font-size:.82rem; border:none; white-space:nowrap; }
.table td { vertical-align: middle; font-size: .88rem; }
.table-hover tbody tr:hover { background: #f7f2e4; }

.badge.bg-secondary { background:#8b93a5 !important; }
.badge.bg-info { background:#2f7ea8 !important; }
.badge.bg-primary { background: var(--navy) !important; }
.badge.bg-warning { background:#c8891f !important; color:#fff !important; }
.badge.bg-success { background:#2e7d32 !important; }
.badge.bg-danger { background:#a83232 !important; }

.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); padding:1rem; }
.login-card { background:#fff; border-radius:16px; max-width:420px; width:100%; padding:2.25rem; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-icon { width:56px; height:56px; border-radius:14px; background: var(--gold); color:var(--navy-dark); display:flex; align-items:center; justify-content:center; font-size:1.6rem; margin-bottom:1rem;}

.timeline { list-style:none; padding:0; margin:0; }
.timeline li { position:relative; padding-left:2rem; padding-bottom:1.25rem; border-left:2px solid #e7e2d3; margin-left:.6rem; }
.timeline li:last-child { border-color: transparent; padding-bottom:0; }
.timeline li::before { content:''; position:absolute; left:-7px; top:2px; width:12px; height:12px; border-radius:50%; background: var(--gold); }
.timeline li.done::before { background: #2e7d32; }
.timeline li.pending::before { background: #cfcfcf; }

.field-locked { background:#f4f4f4; }

@media (max-width: 991px) {
  .app-sidebar { position: fixed; left: -280px; top:0; z-index: 1050; transition: left .2s ease; }
  .app-sidebar.show { left: 0; }
}
