/* =========================================================
   NYA (AI) — Government Legal Portal Theme
   Inspired by India's e-Courts, NIC portals & Supreme Court
   ========================================================= */

:root {
  /* Official palette */
  --navy:        #1a2b5a;       /* Primary — deep government navy */
  --navy-dark:   #0f1b3d;       /* Header, footer */
  --navy-mid:    #243472;       /* Nav bar */
  --saffron:     #d4732a;       /* Accent — saffron for headings & highlights */
  --saffron-lt:  #f0a050;       /* Lighter saffron */
  --gold:        #c8a141;       /* Gold borders and accents */
  --gold-lt:     #e8c96a;
  --cream:       #fdf8f0;       /* Page background */
  --cream-dark:  #f4ede0;       /* Card backgrounds */
  --cream-border:#ddd0ba;       /* Borders */
  --maroon:      #7b1d1d;       /* Danger / alerts */
  --green-govt:  #1a5c2a;       /* Success / present */
  --amber:       #b45309;       /* Warning */
  --text:        #1a1a1a;       /* Body text */
  --text-mid:    #3a3a3a;
  --text-muted:  #6b5e4e;       /* Muted / metadata */
  --white:       #ffffff;

  /* Typography */
  --serif:       'EB Garamond', 'Noto Serif', Georgia, 'Times New Roman', serif;
  --sans:        'Source Sans 3', 'Arial', Helvetica, sans-serif;

  /* Dimensions */
  --ribbon-h:    32px;
  --header-h:    96px;
  --nav-h:       44px;
  --radius-sm:   2px;
  --radius:      4px;
  --shadow-card: 0 1px 4px rgba(0,0,0,0.12), 0 0 0 1px var(--cream-border);
  --shadow-raised: 0 2px 8px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
}

a { color: var(--navy); text-decoration: underline; }

/* =========================================================
   GOV RIBBON (top band)
   ========================================================= */
.gov-ribbon {
  background: var(--navy-dark);
  height: var(--ribbon-h);
  border-bottom: 2px solid var(--gold);
}
.gov-ribbon-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--sans);
  font-size: 12px;
  color: #c9d4f0;
  letter-spacing: 0.3px;
}
.ribbon-sep {
  margin: 0 12px;
  opacity: 0.5;
}

/* =========================================================
   OFFICIAL HEADER
   ========================================================= */
.gov-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e3570 100%);
  border-bottom: 3px solid var(--gold);
  padding: 0 24px;
  position: relative;
}
.gov-header::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0; right: 0;
  height: 3px;
  background: var(--saffron);
  opacity: 0.6;
}
.gov-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}

.gov-emblem {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo-img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  background: transparent;
  border: none;
  outline: none;
  /* Glow directly follows the circular gold emblem contours */
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6))
          drop-shadow(0 0 10px rgba(232, 201, 106, 0.45));
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.28s ease;
  user-select: none;
  display: block;
}
.brand-logo-img:hover {
  transform: scale(1.07);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.75))
          drop-shadow(0 0 18px rgba(240, 215, 125, 0.85));
}
.emblem-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #e8c96a 0%, #c8a141 40%, #a07820 100%);
  border: 3px solid var(--gold-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(200,161,65,0.3), inset 0 2px 4px rgba(0,0,0,0.3);
}
.emblem-inner {
  font-size: 32px;
  color: var(--navy-dark);
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.gov-title-block {
  flex: 1;
}
.gov-title-main {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.gov-title-sub {
  font-family: var(--sans);
  font-size: 13.5px;
  color: #b8c8e8;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-top: 4px;
}
.gov-title-tagline {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold-lt);
  font-style: italic;
  margin-top: 4px;
  letter-spacing: 0.2px;
}

.gov-header-right {
  text-align: right;
  flex-shrink: 0;
}
.sys-label {
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: #8090b8;
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sys-badge {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.5px;
}
.sys-version {
  font-size: 11px;
  color: #6070a0;
  margin-top: 4px;
}

/* =========================================================
   NAVIGATION BAR
   ========================================================= */
.gov-nav {
  background: var(--navy-mid);
  border-bottom: 2px solid var(--saffron);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.gov-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: var(--nav-h);
  flex-wrap: wrap;
  row-gap: 4px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.nav-link {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #c0ccee;
  padding: 8px 20px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s, color 0.15s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-link.active {
  color: #fff;
  border-bottom-color: var(--saffron);
  background: rgba(255,255,255,0.08);
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.2);
  margin: 0 12px;
  flex-shrink: 0;
}

.nav-label {
  font-size: 9.5px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: 8px;
}

.case-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  max-width: 500px;
}
.case-list::-webkit-scrollbar { display: none; }

.case-list-item {
  font-size: 12.5px;
  font-family: var(--sans);
  color: #c0ccee;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  transition: all 0.15s;
}
.case-list-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.case-list-item.active {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
  font-weight: 600;
}

.btn-new-case {
  margin-left: auto;
  background: var(--saffron);
  border: 1px solid #b85f20;
  color: #fff;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-new-case:hover { background: #bf6120; }

/* =========================================================
   PAGE WRAPPER & MAIN
   ========================================================= */
.page-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 32px 80px;
}

.main { width: 100%; }

/* =========================================================
   PAGE HEADER (in-content)
   ========================================================= */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--cream-border);
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--saffron);
}
.page-header h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy-dark);
  letter-spacing: 0.2px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.page-header .sub {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--sans);
}

/* =========================================================
   STATUS PILLS
   ========================================================= */
.status-pill {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid var(--cream-border);
  color: var(--text-muted);
  background: var(--cream-dark);
}
.status-pill.analyzed {
  color: var(--green-govt);
  border-color: #a8d5b0;
  background: #e8f5ea;
}
.status-pill.indexed {
  color: var(--amber);
  border-color: #e8c07a;
  background: #fef3dc;
}
.status-pill.processing {
  color: var(--navy);
  border-color: #9aaad0;
  background: #e8edf8;
}

/* =========================================================
   CARDS & GRID
   ========================================================= */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.card h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cream-border);
}

.stat-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 8px;
}

/* Stat card accent per column */
.grid.cols-3 .card:nth-child(1) { border-top-color: var(--navy); }
.grid.cols-3 .card:nth-child(2) { border-top-color: var(--saffron); }
.grid.cols-3 .card:nth-child(3) { border-top-color: var(--green-govt); }

.case-card { cursor: pointer; transition: box-shadow 0.15s, transform 0.15s; }
.case-card:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-1px);
  border-top-color: var(--saffron);
}
.case-card .title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 8px;
}
.case-card .meta {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.empty-state {
  border: 1px dashed var(--cream-border);
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 56px 20px;
  text-align: center;
  color: var(--text-muted);
}
.empty-title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 600;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--cream-border);
  background: var(--white);
  color: var(--navy);
  transition: all 0.15s;
  letter-spacing: 0.2px;
}
.btn:hover {
  background: var(--cream-dark);
  border-color: var(--navy);
}
.btn.primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy-dark);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.btn.primary:hover { background: var(--navy-dark); }
.btn.ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--cream-border);
}
.btn.ghost:hover { color: var(--navy); border-color: var(--navy); background: var(--cream-dark); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn.small { padding: 5px 12px; font-size: 12px; }

/* =========================================================
   FORMS
   ========================================================= */
label {
  display: block;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 20px 0 6px;
}
input[type=text], input[type=number], textarea, select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 14.5px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; min-height: 100px; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 43, 90, 0.12);
}
.form-actions { margin-top: 28px; display: flex; gap: 12px; }

/* =========================================================
   TABS (case workspace)
   ========================================================= */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--cream-border);
  margin-bottom: 28px;
  flex-wrap: wrap;
  background: var(--cream-dark);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 0 4px;
}
.tab {
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.tab:hover { color: var(--navy); background: rgba(26,43,90,0.05); }
.tab.active {
  color: var(--navy-dark);
  border-bottom-color: var(--saffron);
  background: var(--white);
}

/* =========================================================
   ANALYSIS BLOCKS
   ========================================================= */
.analysis-block { margin-bottom: 28px; }
.analysis-block h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cream-border);
  position: relative;
}
.analysis-block h3::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--saffron);
}

.result-card {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  transition: border-left-color 0.15s;
}
.result-card:hover { border-left-color: var(--saffron); }
.result-card .rc-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 4px;
}
.result-card .rc-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.result-card .rc-body {
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.65;
}

.score-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  background: #e8edf8;
  color: var(--navy);
  border: 1px solid #9aaad0;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.3px;
}

.ref-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 2px;
  background: #eef1f8;
  color: var(--navy);
  border: 1px solid #b0bcd8;
  cursor: pointer;
  margin-right: 5px;
  margin-top: 4px;
  transition: all 0.15s;
  text-decoration: none;
  letter-spacing: 0.2px;
}
.ref-chip:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.ref-chip::before {
  content: '📄';
  font-size: 10px;
  margin-right: 4px;
}

/* Prosecution/Defence columns */
.column-heading {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.pd-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pd-side {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.pd-side ul { margin: 0; padding-left: 18px; color: var(--text-mid); }
.pd-side li { margin-bottom: 8px; font-size: 14.5px; }

/* Evidence */
.evidence-col {
  margin-bottom: 20px;
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.evidence-col ul { margin: 0; padding-left: 18px; margin-top: 10px; }
.evidence-col li { margin-bottom: 8px; font-size: 14.5px; }

.tag-present {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 2px;
  color: var(--green-govt);
  background: #e6f4ea;
  border: 1px solid #a8d5b0;
}
.tag-verify {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 2px;
  color: var(--amber);
  background: #fef3dc;
  border: 1px solid #e8c07a;
}

/* Documents */
.doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--cream-border);
  font-size: 14px;
  transition: background 0.12s;
}
.doc-row:hover { background: var(--cream-dark); }
.doc-row:last-child { border-bottom: none; }

.upload-zone {
  background: #f5f8ff;
  border: 2px dashed #9aaad0;
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.15s;
}
.upload-zone:hover {
  border-color: var(--navy);
  background: #eef2fc;
  color: var(--navy);
}

/* Loading */
.loading-line {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 600;
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.2px;
}
.loading-line::before {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid rgba(26, 43, 90, 0.2);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Disclaimer */
.disclaimer {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--text-muted);
  border: 1px solid var(--cream-border);
  border-left: 3px solid var(--maroon);
  background: #fdf4f4;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 32px;
  line-height: 1.6;
}

/* Synthetic note */
.synthetic-note {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--amber);
  border: 1px solid #e8c07a;
  background: #fef3dc;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--amber);
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 500;
}

/* =========================================================
   SOURCE DRAWER
   ========================================================= */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 20, 50, 0.45);
  display: none;
  z-index: 200;
  backdrop-filter: blur(2px);
}
.drawer-backdrop.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 500px; max-width: 92vw;
  background: var(--white);
  border-left: 3px solid var(--navy);
  overflow-y: auto;
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.2);
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  background: var(--navy);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-title-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: #b0bcd8;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.drawer-close {
  cursor: pointer;
  color: #b0bcd8;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--sans);
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  letter-spacing: 0.3px;
}
.drawer-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

#drawer-content { padding: 24px; }
#drawer-content h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 6px;
}
.drawer-meta {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.4;
}
.drawer-excerpt {
  background: var(--cream-dark);
  border: 1px solid var(--cream-border);
  border-left: 3px solid var(--saffron);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--serif);
  font-size: 15px;
  white-space: pre-wrap;
  line-height: 1.75;
  color: var(--text-mid);
}

/* =========================================================
   FOOTER
   ========================================================= */
.gov-footer {
  background: var(--navy-dark);
  border-top: 3px solid var(--gold);
  padding: 18px 24px;
  margin-top: 40px;
}
.gov-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-disclaimer {
  font-family: var(--sans);
  font-size: 12px;
  color: #9aaccc;
  line-height: 1.6;
}
.footer-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: #5a6890;
  letter-spacing: 0.2px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .gov-header-right { display: none; }
  .gov-title-main { font-size: 26px; }
  .pd-columns, .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .page-wrapper { padding: 20px 16px 60px; }
  .gov-nav-inner { gap: 2px; }
  .btn-new-case { margin-left: 0; }
}
@media (max-width: 600px) {
  .gov-emblem { display: none; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; }
  .tab { font-size: 12px; padding: 8px 12px; }
}

/* =========================================================
   MODAL ANIMATION
   ========================================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* CSS aliases used in dynamic JS inline styles */
:root {
  --danger: #c5221f;
  --primary: #1a2b5a;
  --accent:  #d4732a;
  --muted:   #6b5e4e;
  --border:  #ddd0ba;
  --warn:    #b45309;
}

/* =========================================================
   DASHBOARD — CASE CARD DELETE BUTTON
   ========================================================= */
.case-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.dash-delete-btn {
  background: transparent;
  border: 1px solid #e0c5c5;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-family: var(--sans);
  font-weight: 600;
  color: #b05050;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
  letter-spacing: .02em;
}
.dash-delete-btn:hover {
  background: #fce8e6;
  color: #c5221f;
  border-color: #f5c6c4;
}

/* =========================================================
   PAGINATION CONTROLS
   ========================================================= */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin: 16px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pagination-info {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}
.pagination-btn {
  padding: 5px 12px;
  font-size: 12.5px;
  font-family: var(--sans);
  font-weight: 600;
  border: 1px solid var(--cream-border);
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s;
}
.pagination-btn:hover:not(:disabled) {
  background: var(--cream-dark);
  border-color: var(--navy);
}
.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination-page-indicator {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  padding: 0 8px;
}
