/* ═══════════════════════════════════════════════════
   CAPITAL CLAIM SOLUTION — Dashboard Styles
   Shared by: dashboard.html + admin.html
═══════════════════════════════════════════════════ */

/* ── Tokens (mirrors main site) ── */
:root {
  --navy:        #0b1e35;
  --navy-deep:   #060d1a;
  --navy-mid:    #0f2846;
  --navy-light:  #1a3a5c;
  --gold:        #c8a44a;
  --gold-bright: #dab969;
  --gold-pale:   #f7f0e0;
  --gold-dark:   #a8872e;
  --white:       #ffffff;
  --surface:     #f8fafc;
  --surface-2:   #f1f5f9;
  --border:      rgba(11,30,53,.09);
  --border-gold: rgba(200,164,74,.22);
  --text-dark:   #0b1e35;
  --text-body:   #3a4d63;
  --text-muted:  #6b7e96;
  --text-light:  #9aafc6;

  --shadow-xs:   0 1px 3px rgba(11,30,53,.06), 0 1px 2px rgba(11,30,53,.04);
  --shadow-sm:   0 2px 8px rgba(11,30,53,.07), 0 1px 3px rgba(11,30,53,.05);
  --shadow-md:   0 8px 28px rgba(11,30,53,.10), 0 2px 8px rgba(11,30,53,.06);
  --shadow-lg:   0 20px 56px rgba(11,30,53,.13), 0 6px 20px rgba(11,30,53,.07);
  --shadow-gold: 0 8px 32px rgba(200,164,74,.28);

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  --ease-out:    cubic-bezier(.22,1,.36,1);
  --ease-in-out: cubic-bezier(.4,0,.2,1);

  --sidebar-w: 260px;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--surface);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════ */
.db-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════ */
.db-sidebar {
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  border-right: 1px solid rgba(255,255,255,.04);
}

/* Logo */
.sb-logo {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.8rem 1.5rem 1.5rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
  margin-bottom: .5rem;
}
.sb-logo-emblem {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(200,164,74,.1);
  border: 1px solid rgba(200,164,74,.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sb-logo-emblem svg { width: 22px; height: 22px; }
.sb-logo-words .l1 {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--white); letter-spacing: .01em;
}
.sb-logo-words .l2 {
  display: block;
  font-size: .58rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-top: 1px;
}

/* User profile block */
.sb-user {
  padding: 1rem 1.5rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  margin-bottom: .5rem;
}
.sb-user-avatar {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 800;
  margin-bottom: .75rem;
}
.sb-user-name {
  font-size: .92rem; font-weight: 700;
  color: var(--white); line-height: 1.3;
}
.sb-user-role {
  font-size: .7rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-top: 2px;
}

/* Nav items */
.sb-nav { padding: .5rem 1rem; flex: 1; }
.sb-section-label {
  font-size: .6rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.22);
  padding: 1.2rem .5rem .5rem;
}
.sb-nav-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem .85rem;
  border-radius: var(--r-md);
  font-size: .87rem; font-weight: 500;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  cursor: pointer;
  background: none; border: none;
  width: 100%; text-align: left;
  font-family: 'Outfit', sans-serif;
  transition: all .22s var(--ease-out);
  position: relative;
  white-space: nowrap;
}
.sb-nav-item:hover {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.85);
}
.sb-nav-item.active {
  background: rgba(200,164,74,.12);
  color: var(--gold);
  font-weight: 600;
}
.sb-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
}
.sb-nav-item svg { flex-shrink: 0; opacity: .7; }
.sb-nav-item.active svg { opacity: 1; }
.sb-nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--navy);
  font-size: .6rem; font-weight: 800;
  padding: .15rem .45rem;
  border-radius: 100px;
  min-width: 18px;
  text-align: center;
}

/* Sidebar footer */
.sb-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.05);
  margin-top: auto;
}
.sb-footer-link {
  display: flex; align-items: center; gap: .7rem;
  font-size: .8rem; color: rgba(255,255,255,.3);
  text-decoration: none;
  transition: color .2s;
  padding: .35rem 0;
}
.sb-footer-link:hover { color: rgba(255,255,255,.6); }
.sb-footer-link.red:hover { color: #f87171; }
.sb-footer-link.red {
  background: none; border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif; padding: .35rem 0;
  width: 100%;
}
.sb-version {
  font-size: .65rem;
  color: rgba(255,255,255,.15);
  margin-top: .8rem;
  letter-spacing: .05em;
}

/* ═══════════════════════════════════════════════════
   MAIN CONTENT AREA
═══════════════════════════════════════════════════ */
.db-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top header */
.db-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,250,252,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-xs);
}
.db-header-left { display: flex; align-items: center; gap: 1rem; }
.db-page-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--navy); letter-spacing: -.01em;
}
.db-breadcrumb {
  font-size: .78rem; color: var(--text-muted);
  display: flex; align-items: center; gap: .4rem;
}
.db-breadcrumb span { color: var(--gold); }
.db-header-right { display: flex; align-items: center; gap: 1rem; }
.db-date {
  font-size: .78rem; color: var(--text-muted);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: .4rem .9rem;
}
.db-notif-btn {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; transition: all .2s;
  color: var(--text-muted);
}
.db-notif-btn:hover { border-color: var(--gold); color: var(--gold); }
.notif-dot {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  border: 1.5px solid var(--surface);
}

/* Content */
.db-content { padding: 2.2rem 2.5rem; flex: 1; }
.db-section { display: none; }
.db-section.active { display: block; }

/* ═══════════════════════════════════════════════════
   STAT CARDS
═══════════════════════════════════════════════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}
#overviewStats {
  grid-template-columns: repeat(3, 1fr);
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow .3s var(--ease-out), transform .3s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--border);
  transition: background .3s;
}
.stat-card.gold::after  { background: var(--gold); }
.stat-card.navy::after  { background: var(--navy); }
.stat-card.green::after { background: #10b981; }
.stat-card.blue::after  { background: #3b82f6; }
.stat-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-card.gold  .stat-card-icon { background: var(--gold-pale);        color: var(--gold-dark); }
.stat-card.navy  .stat-card-icon { background: rgba(11,30,53,.07);       color: var(--navy); }
.stat-card.green .stat-card-icon { background: rgba(16,185,129,.08);     color: #059669; }
.stat-card.blue  .stat-card-icon { background: rgba(59,130,246,.08);     color: #2563eb; }
.stat-card-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700;
  color: var(--navy); line-height: 1;
  margin-bottom: .3rem;
}
.stat-card-label {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════════════════ */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.4rem;
}
.section-head-left .sh-eyebrow {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .2rem;
  display: flex; align-items: center; gap: .5rem;
}
.section-head-left .sh-eyebrow::before {
  content: '';
  display: block; width: 16px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.section-head-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--navy); letter-spacing: -.01em;
}
.btn-sm {
  background: var(--navy); color: var(--white);
  padding: .55rem 1.3rem;
  border-radius: var(--r-sm); border: none;
  font-family: 'Outfit', sans-serif;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .04em; cursor: pointer;
  transition: all .25s; text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem;
}
.btn-sm:hover { background: var(--gold); color: var(--navy); }
.btn-sm.outline {
  background: var(--white); color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-sm.outline:hover { border-color: var(--gold); color: var(--gold); background: var(--white); }

/* ═══════════════════════════════════════════════════
   CARD / PANEL
═══════════════════════════════════════════════════ */
.db-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-xs);
}
.db-card-head {
  padding: 1.3rem 1.8rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.db-card-title {
  font-size: .92rem; font-weight: 700; color: var(--navy);
}
.db-card-sub {
  font-size: .76rem; color: var(--text-muted); margin-top: .1rem;
}
.db-card-body { padding: 1.8rem; }
.db-card-body.no-pad { padding: 0; }

/* ═══════════════════════════════════════════════════
   TABLE
═══════════════════════════════════════════════════ */
.db-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.db-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: .84rem;
}
.db-table th {
  text-align: left;
  padding: .9rem 1.4rem;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--surface);
}
.db-table td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  vertical-align: middle;
}
.db-table tr:last-child td { border-bottom: none; }
.db-table tbody tr { transition: background .2s; }
.db-table tbody tr:hover { background: var(--surface); }
.db-table td strong { color: var(--navy); font-weight: 600; }

/* Status badges */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .28rem .75rem;
  border-radius: 100px;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.review  { background: rgba(234,179,8,.1);   color: #92400e; border: 1px solid rgba(234,179,8,.2); }
.badge.pending { background: rgba(59,130,246,.09);  color: #1d4ed8; border: 1px solid rgba(59,130,246,.18); }
.badge.won     { background: rgba(16,185,129,.08);  color: #065f46; border: 1px solid rgba(16,185,129,.18); }
.badge.closed  { background: rgba(107,114,128,.08); color: #374151; border: 1px solid rgba(107,114,128,.18); }
.badge.rejected{ background: rgba(239,68,68,.08);   color: #991b1b; border: 1px solid rgba(239,68,68,.18); }

/* ═══════════════════════════════════════════════════
   TIMELINE / ACTIVITY
═══════════════════════════════════════════════════ */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: flex; gap: 1.1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tl-item:last-child { border-bottom: none; }
.tl-dot {
  width: 34px; height: 34px;
  border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
}
.tl-dot.gold   { background: var(--gold-pale);   color: var(--gold-dark); }
.tl-dot.navy   { background: rgba(11,30,53,.07); color: var(--navy); }
.tl-dot.green  { background: rgba(16,185,129,.08); color: #059669; }
.tl-dot.blue   { background: rgba(59,130,246,.08); color: #2563eb; }
.tl-dot.red    { background: rgba(239,68,68,.08);  color: #dc2626; }
.tl-body .tl-msg  { font-size: .87rem; color: var(--text-body); font-weight: 500; }
.tl-body .tl-time { font-size: .73rem; color: var(--text-muted); margin-top: .2rem; }

/* ═══════════════════════════════════════════════════
   FORM STYLES (dashboard forms)
═══════════════════════════════════════════════════ */
.db-form-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px) {
  .db-form-grid { grid-template-columns: 1fr; }
  .db-form-group.full { grid-column: span 1; }
}
.db-form-group  { display: flex; flex-direction: column; gap: .4rem; }
.db-form-group.full { grid-column: span 2; }
.db-form-label {
  font-size: .71rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dark);
}
.db-form-input,
.db-form-select,
.db-form-textarea {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: .82rem 1rem;
  font-size: .9rem; color: var(--navy);
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.db-form-input:focus,
.db-form-select:focus,
.db-form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,164,74,.1);
  background: var(--white);
}
.db-form-input::placeholder,
.db-form-textarea::placeholder { color: var(--text-light); }
.db-form-textarea { resize: vertical; min-height: 120px; }
.db-form-select { cursor: pointer; }
.db-form-note { font-size: .73rem; color: var(--text-muted); margin-top: .25rem; }
.db-form-actions { display: flex; gap: .8rem; margin-top: 1.5rem; }

/* ═══════════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════════ */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 4rem 2rem;
}
.empty-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--surface-2); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 1.2rem;
}
.empty-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.empty-sub { font-size: .85rem; color: var(--text-muted); max-width: 300px; line-height: 1.7; margin-bottom: 1.5rem; }

/* ═══════════════════════════════════════════════════
   FILTERS / SEARCH
═══════════════════════════════════════════════════ */
.db-filters {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1.3rem; flex-wrap: wrap;
}
.db-search {
  display: flex; align-items: center; gap: .6rem;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); padding: .6rem 1rem;
  flex: 1; max-width: 320px;
  transition: border-color .25s;
}
.db-search:focus-within { border-color: var(--gold); }
.db-search input {
  border: none; background: none; outline: none;
  font-size: .88rem; color: var(--navy);
  font-family: 'Outfit', sans-serif; width: 100%;
}
.db-search input::placeholder { color: var(--text-light); }
.db-search svg { color: var(--text-muted); flex-shrink: 0; }
.filter-btn {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); padding: .6rem 1.1rem;
  font-size: .82rem; font-weight: 600; color: var(--text-body);
  cursor: pointer; font-family: 'Outfit', sans-serif;
  transition: all .2s; display: inline-flex; align-items: center; gap: .4rem;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--gold); color: var(--gold); }

/* ═══════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════ */
.db-toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--navy); color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--r-md);
  font-size: .88rem;
  display: flex; align-items: center; gap: .75rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%); opacity: 0;
  transition: all .4s var(--ease-out);
  max-width: 360px;
  border: 1px solid rgba(200,164,74,.2);
  pointer-events: none;
}
.db-toast.show { transform: translateY(0); opacity: 1; }
.db-toast-ic { font-size: 1.1rem; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   ADMIN LOGIN SCREEN
═══════════════════════════════════════════════════ */
.admin-login-screen {
  min-height: 100vh;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  position: relative; overflow: hidden;
}
/* Layered background decoration */
.admin-login-screen::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 55% 65% at 75% 25%, rgba(200,164,74,.09) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 20% 80%, rgba(11,30,53,.7) 0%, transparent 70%),
    linear-gradient(rgba(200,164,74,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,164,74,.03) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}
/* Glow orbs */
.admin-login-screen::after {
  content: '';
  position: absolute; bottom: -120px; left: -80px; z-index: 0;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,164,74,.06) 0%, transparent 65%);
}

/* The card */
.admin-login-card {
  background: linear-gradient(160deg, rgba(15,40,70,.98) 0%, rgba(6,13,26,.99) 100%);
  border: 1px solid rgba(200,164,74,.14);
  border-radius: var(--r-xl);
  width: 100%; max-width: 460px;
  padding: 2.8rem 3rem 3rem;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.03),
    0 40px 100px rgba(0,0,0,.55),
    0 12px 40px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.05);
  position: relative; z-index: 1;
}
/* Subtle inner-top highlight */
.admin-login-card::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,164,74,.35), transparent);
}

/* Brand / logo row */
.admin-login-brand {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2.6rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.admin-login-brand-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: rgba(200,164,74,.08);
  border: 1.5px solid rgba(200,164,74,.22);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 0 20px rgba(200,164,74,.1);
}
.admin-login-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--white); line-height: 1.25;
  letter-spacing: -.01em;
}
.admin-login-brand-sub {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold);
  margin-top: .2rem; opacity: .8;
}

/* Error alert */
.admin-login-alert {
  display: flex; align-items: center; gap: .7rem;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--r-sm); padding: .85rem 1rem;
  font-size: .82rem; color: #fca5a5; line-height: 1.5;
  margin-bottom: 1.4rem;
}

/* Form fields wrapper */
.admin-login-fields { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.8rem; }

/* Dark-theme inputs */
.admin-input {
  background: rgba(255,255,255,.04) !important;
  border: 1.5px solid rgba(255,255,255,.1) !important;
  color: var(--white) !important;
  caret-color: var(--gold);
}
.admin-input::placeholder { color: rgba(255,255,255,.18) !important; }
.admin-input:focus {
  border-color: var(--gold) !important;
  background: rgba(255,255,255,.06) !important;
  box-shadow: 0 0 0 3px rgba(200,164,74,.13) !important;
}

/* Submit button */
.admin-login-btn {
  width: 100%;
  background: linear-gradient(135deg, #b8902e 0%, var(--gold) 50%, #dab969 100%);
  color: var(--navy-deep); padding: 1.1rem;
  border-radius: 10px; border: none;
  font-family: 'Outfit', sans-serif;
  font-size: .95rem; font-weight: 800;
  letter-spacing: .04em; cursor: pointer;
  transition: all .3s var(--ease-out);
  box-shadow: 0 6px 24px rgba(200,164,74,.35), 0 2px 6px rgba(0,0,0,.2);
  margin-bottom: 1.8rem;
  position: relative; overflow: hidden;
}
.admin-login-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.admin-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200,164,74,.45), 0 4px 12px rgba(0,0,0,.25);
}
.admin-login-btn:hover::before { opacity: 1; }
.admin-login-btn:active { transform: translateY(0); }

/* Security note */
.admin-login-note {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .74rem; color: rgba(255,255,255,.22);
  line-height: 1.65; margin-bottom: 1.6rem;
}
.admin-login-note svg { flex-shrink: 0; margin-top: 1px; color: rgba(200,164,74,.45); }

/* Back link */
.admin-login-back {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 500;
  color: rgba(255,255,255,.3);
  text-decoration: none;
  transition: color .25s;
}
.admin-login-back:hover { color: var(--gold); }
.admin-login-back svg { transition: transform .25s; }
.admin-login-back:hover svg { transform: translateX(-3px); }

/* ═══════════════════════════════════════════════════
   STATUS SELECT (admin)
═══════════════════════════════════════════════════ */
.status-select {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); padding: .45rem .8rem;
  font-size: .8rem; color: var(--navy);
  font-family: 'Outfit', sans-serif; cursor: pointer;
  outline: none; transition: border-color .2s;
}
.status-select:focus { border-color: var(--gold); }

/* ═══════════════════════════════════════════════════
   CLAIM DETAIL MODAL
═══════════════════════════════════════════════════ */
.detail-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(6,13,26,.72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.detail-overlay.open { opacity: 1; pointer-events: all; }
.detail-modal {
  background: var(--white); border-radius: var(--r-xl);
  width: 100%; max-width: 640px; max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.2);
  transform: translateY(20px) scale(.98);
  transition: transform .35s var(--ease-out);
}
.detail-overlay.open .detail-modal { transform: translateY(0) scale(1); }
.detail-modal-head {
  background: var(--navy); padding: 1.8rem 2rem;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.detail-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700; color: var(--white);
}
.detail-modal-sub { font-size: .78rem; color: rgba(255,255,255,.45); margin-top: .2rem; }
.detail-close {
  background: rgba(255,255,255,.08); border: none;
  color: rgba(255,255,255,.6); width: 32px; height: 32px;
  border-radius: var(--r-sm); font-size: 1.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s; flex-shrink: 0;
}
.detail-close:hover { background: rgba(255,255,255,.15); color: var(--white); }
.detail-body { padding: 1.8rem 2rem; }
.detail-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.detail-field label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: .25rem; }
.detail-field p { font-size: .9rem; color: var(--text-body); font-weight: 500; }
.detail-field.full { grid-column: span 2; }
.detail-msg-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1.2rem;
  font-size: .88rem; color: var(--text-body); line-height: 1.75;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE (collapse sidebar on small screens)
═══════════════════════════════════════════════════ */
.db-mobile-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; color: var(--navy);
  padding: .4rem;
}
.db-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 90;
  background: rgba(6,13,26,.55);
}
@media (max-width: 960px) {
  .db-layout { grid-template-columns: 1fr; }
  .db-sidebar {
    transform: translateX(-100%);
    transition: transform .4s var(--ease-out);
    z-index: 95;
  }
  .db-sidebar.open { transform: translateX(0); }
  .db-main { margin-left: 0; }
  .db-mobile-toggle { display: flex; }
  .db-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity .35s; }
  .db-overlay.open { opacity: 1; pointer-events: all; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  #overviewStats { grid-template-columns: 1fr 1fr; }
  .db-header { padding: 0 1.4rem; }
}
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: .85rem; }
  #overviewStats { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 1.2rem 1.1rem; }
  .stat-card-value { font-size: 1.5rem; }
  .db-content { padding: 1.4rem 1rem; }
  .db-header { padding: 0 1rem; height: 60px; }
  .db-date { display: none; }
  .db-form-grid { grid-template-columns: 1fr; }
  .db-form-group.full { grid-column: span 1; }
  .db-card-head { flex-wrap: wrap; gap: .6rem; }
  .db-card-body { padding: 1.2rem; }
  /* filter buttons scroll horizontally */
  .db-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; -webkit-overflow-scrolling: touch; }
  .db-filters { scrollbar-width: none; }
  .db-filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }
}
@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
  #overviewStats { grid-template-columns: 1fr; }
  .db-form-grid { grid-template-columns: 1fr; }
  .db-form-group.full { grid-column: span 1; }
  .detail-row { grid-template-columns: 1fr; }
  .detail-field.full { grid-column: span 1; }
  .db-content { padding: 1rem .75rem; }
}


