/* SmartFuel — Official Indian Government Portal Theme (GIGW 3.0 & WCAG 2.1 AA Compliant) */
:root {
  --gov-navy-dark: #0c2340;
  --gov-navy-primary: #16325c;
  --gov-navy-light: #204d88;
  --gov-saffron: #d97706;
  --gov-saffron-bright: #ff9933;
  --gov-saffron-soft: #fef3c7;
  --gov-green: #138808;
  --gov-green-soft: #dcfce7;
  --gov-green-dark: #0e6506;
  --gov-red: #c0392b;
  --gov-red-soft: #fee2e2;
  --gov-red-dark: #991b1b;
  --gov-amber: #b45309;
  --gov-amber-soft: #fef3c7;
  --gov-bg: #f4f6f9;
  --gov-card: #ffffff;
  --gov-border: #d1d5db;
  --gov-border-subtle: #e5e7eb;
  --gov-text: #1f2937;
  --gov-text-muted: #4b5563;
  --gov-text-light: #6b7280;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  --font-base-scale: 1;
}

body.font-large { --font-base-scale: 1.12; }
body.font-small { --font-base-scale: 0.90; }

body.high-contrast {
  --gov-bg: #000000;
  --gov-card: #121212;
  --gov-border: #ffd700;
  --gov-border-subtle: #ffd700;
  --gov-text: #ffffff;
  --gov-text-muted: #e5e7eb;
  --gov-text-light: #ffd700;
  --gov-navy-dark: #000000;
  --gov-navy-primary: #1a1a1a;
  --gov-saffron-soft: #332b00;
  --gov-green-soft: #003300;
  --gov-red-soft: #330000;
  --shadow: 0 0 0 2px #ffd700;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: calc(15px * var(--font-base-scale)); }
body {
  margin: 0;
  background-color: var(--gov-bg);
  color: var(--gov-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Mukta", "Noto Sans Devanagari", Arial, sans-serif;
  line-height: 1.5;
}

button, input, select, textarea { font: inherit; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.55; cursor: not-allowed; }
[hidden] { display: none !important; }

/* ==========================================================================
   1. GOVERNMENT MASTHEAD & ACCESSIBILITY TOOLBAR
   ========================================================================== */
.gov-topbar {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--gov-border);
  padding: 4px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--gov-text-muted);
}
.gov-flag-wrap { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.gov-flag { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 1px rgba(0,0,0,.4); display: flex; flex-direction: column; }
.gov-flag span:nth-child(1) { background: #ff9933; height: 4px; }
.gov-flag span:nth-child(2) { background: #ffffff; height: 4px; position: relative; }
.gov-flag span:nth-child(3) { background: #138808; height: 4px; }
.gov-access-tools { display: flex; align-items: center; gap: 12px; }
.gov-tool-btn {
  background: transparent;
  border: 1px solid var(--gov-border);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gov-text);
}
.gov-tool-btn:hover { background: #e2e8f0; }

.gov-masthead {
  background-color: var(--gov-card);
  border-bottom: 3px solid var(--gov-saffron);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gov-emblem-section { display: flex; align-items: center; gap: 14px; }
.gov-emblem { width: 44px; height: 44px; display: grid; place-items: center; color: var(--gov-navy-dark); }
.gov-titles h2 { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--gov-navy-dark); line-height: 1.2; text-transform: uppercase; }
.gov-titles h1 { margin: 2px 0 0; font-size: 1.25rem; font-weight: 900; color: var(--gov-navy-primary); letter-spacing: -0.4px; }
.gov-titles p { margin: 2px 0 0; font-size: 0.78rem; color: var(--gov-text-muted); font-weight: 500; }

.gov-badges-section { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.gov-statute-tag {
  background-color: var(--gov-saffron-soft);
  color: var(--gov-saffron);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 800;
}
.gov-user-chip { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: var(--gov-text-muted); }
.gov-user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--gov-navy-primary); color: #fff; display: grid; place-items: center; font-size: 0.75rem; font-weight: 900; }

/* Navigation Bar */
.gov-navbar {
  background-color: var(--gov-navy-dark);
  padding: 0 24px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
}
.gov-nav-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #e2e8f0;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.gov-nav-btn:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.gov-nav-btn.active {
  background: var(--gov-navy-primary);
  border-bottom-color: var(--gov-saffron-bright);
  color: #ffffff;
}

/* Statutory Disclaimer Banner */
.gov-statutory-strip {
  background-color: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  padding: 8px 24px;
  font-size: 0.8rem;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gov-statutory-strip strong { font-weight: 800; }

/* ==========================================================================
   OFFICIAL GOVERNMENT MARQUEE TICKER (GIGW 3.0 & NIC COMPLIANT)
   ========================================================================== */
.gov-marquee-strip {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-top: 1px solid #cbd5e1;
  border-bottom: 2.5px solid var(--navy-gold, #ffaf00);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.gov-marquee-strip.login-marquee {
  background: #000b33;
  border-top: 1px solid rgba(255, 175, 0, 0.3);
  border-bottom: 2.5px solid var(--navy-gold, #ffaf00);
}

.gov-marquee-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-primary, #04127b);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.gov-marquee-icon {
  font-size: 0.95rem;
}

.gov-marquee-content {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 12px;
  background: #f8fafc;
}

.gov-marquee-strip.login-marquee .gov-marquee-content {
  background: #000b33;
}

.gov-marquee-ticker {
  width: 100%;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #1e293b;
  cursor: pointer;
}

.gov-marquee-strip.login-marquee .gov-marquee-ticker {
  color: #f1f5f9;
}

.gov-marquee-ticker .ticker-item {
  display: inline-block;
  padding: 4px 0;
}

.gov-marquee-ticker .ticker-item strong {
  color: var(--navy-primary, #04127b);
  font-weight: 800;
}

.gov-marquee-strip.login-marquee .gov-marquee-ticker .ticker-item strong {
  color: var(--navy-gold-light, #ffd72d);
}

.gov-marquee-ticker .ticker-sep {
  display: inline-block;
  color: var(--navy-gold, #ffaf00);
  font-size: 0.85rem;
  font-weight: 900;
  margin: 0 20px;
}

/* High Contrast Mode */
body.high-contrast .gov-marquee-strip {
  background: #000000;
  border-color: #ffd700;
}
body.high-contrast .gov-marquee-label {
  background: #ffd700;
  color: #000000;
}
body.high-contrast .gov-marquee-content {
  background: #111111;
}
body.high-contrast .gov-marquee-ticker {
  color: #ffffff;
}

@media (max-width: 640px) {
  .gov-marquee-title {
    display: none;
  }
  .gov-marquee-label {
    padding: 8px 10px;
  }
}

/* ==========================================================================
   2. MAIN APPLICATION CONTENT & LAYOUT
   ========================================================================== */
.gov-content {
  max-width: 1540px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.page { display: none; }
.page.active { display: block; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}
.section-head h2 { margin: 0; font-size: 1.45rem; font-weight: 900; color: var(--gov-navy-dark); letter-spacing: -0.3px; }
.section-head p { margin: 4px 0 0; color: var(--gov-text-muted); font-size: 0.85rem; }

/* Station Context Strip */
.station-banner {
  background: var(--gov-card);
  border: 1px solid var(--gov-border);
  border-left: 4px solid var(--gov-navy-primary);
  border-radius: var(--radius);
  padding: 10px 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.station-banner label { font-weight: 700; color: var(--gov-navy-dark); margin-right: 8px; }
.station-banner select {
  padding: 6px 10px;
  border: 1px solid var(--gov-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   3. THE 5-STEP CORE PIPELINE GRID (MATCHING idea.jpeg)
   ========================================================================== */
.pipeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.step-card {
  background: var(--gov-card);
  border: 1px solid var(--gov-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gov-border-subtle);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.step-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gov-navy-dark);
}
.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gov-navy-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 900;
}
.step-status-chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
}
.chip-green { background: var(--gov-green-soft); color: var(--gov-green-dark); }
.chip-red { background: var(--gov-red-soft); color: var(--gov-red-dark); }
.chip-amber { background: var(--gov-amber-soft); color: var(--gov-amber); }
.chip-muted { background: #f1f5f9; color: var(--gov-text-muted); }

/* Step 1: Live Camera Viewfinder */
.camera-viewfinder {
  position: relative;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.camera-viewfinder video { width: 100%; height: 100%; object-fit: cover; }
.camera-overlay-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72%;
  height: 48%;
  border: 2px dashed #22c55e;
  border-radius: 4px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  display: grid;
  place-items: end center;
}
.camera-overlay-tag {
  background: rgba(0, 0, 0, 0.75);
  color: #4ade80;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 6px;
  border-radius: 2px;
}
.camera-telemetry {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  z-index: 2;
}
.rec-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(220, 38, 38, 0.85);
  padding: 2px 6px;
  border-radius: 2px;
}
.camera-placeholder { color: #94a3b8; text-align: center; }

/* Camera Controls & Toggles */
.cam-controls { display: grid; gap: 10px; margin-top: 14px; }
.cam-select-row { display: flex; gap: 8px; align-items: center; }
.cam-select-row select {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--gov-border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}
.toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}
.toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  padding: 6px 8px;
  border: 1px solid var(--gov-border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.cam-actions { display: flex; gap: 8px; margin-top: 4px; }

/* Step 2: Image Upload Option */
.dropzone-box {
  border: 2px dashed var(--gov-border);
  border-radius: var(--radius-sm);
  padding: 24px 16px;
  text-align: center;
  background: #fbfcfd;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.dropzone-box:hover, .dropzone-box.dragging { border-color: var(--gov-navy-primary); background: #f0f4f8; }
.drop-icon { font-size: 1.8rem; color: var(--gov-navy-primary); }
.dropzone-box strong { font-size: 0.88rem; color: var(--gov-navy-dark); }
.dropzone-box small { font-size: 0.75rem; color: var(--gov-text-muted); }

.upload-preview-wrap {
  margin-top: 12px;
  border: 1px solid var(--gov-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
}
.upload-thumb { width: 90px; height: 60px; object-fit: cover; border-radius: 4px; border: 1px solid var(--gov-border-subtle); }
.upload-info { flex: 1; font-size: 0.8rem; }
.upload-info strong { display: block; color: var(--gov-navy-dark); word-break: break-all; }

/* Step 3: AI Number Plate Recognition (HSRP Badge) */
.plate-crop-preview {
  height: 90px;
  background: #000;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}
.plate-crop-preview img { max-height: 100%; max-width: 100%; object-fit: contain; }

.hsrp-plate-badge {
  background: #ffffff;
  border: 3px solid #000000;
  border-radius: 6px;
  padding: 4px 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  margin-bottom: 12px;
}
.hsrp-ind {
  background: #002244;
  color: #ffffff;
  padding: 3px 6px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.hsrp-ind span { font-size: 0.65rem; font-weight: 900; }
.hsrp-chakra { font-size: 0.55rem; color: #ff9933; margin-top: 1px; }
.hsrp-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: #000000;
  letter-spacing: 2px;
  font-family: "Consolas", "Courier New", monospace;
}

.conf-meter-wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 0.82rem; }
.conf-bar { flex: 1; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.conf-fill { height: 100%; background: var(--gov-green); width: 0%; transition: width 0.3s ease; }
.conf-score { font-weight: 800; color: var(--gov-navy-dark); min-width: 50px; text-align: right; }

.manual-edit-row { display: flex; gap: 8px; margin-top: 8px; }
.manual-edit-row input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--gov-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
}

/* Step 4: Database Verification Card & Table */
.vehicle-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f8fafc;
  padding: 10px;
  border: 1px solid var(--gov-border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 0.8rem;
}
.meta-field span { display: block; font-size: 0.72rem; color: var(--gov-text-muted); font-weight: 600; text-transform: uppercase; }
.meta-field strong { color: var(--gov-navy-dark); font-weight: 800; }

.cylinder-table-wrap { overflow-x: auto; border: 1px solid var(--gov-border); border-radius: var(--radius-sm); }
.cylinder-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: left;
}
.cylinder-table th { background: #f1f5f9; padding: 6px 10px; border-bottom: 1px solid var(--gov-border); font-weight: 800; color: var(--gov-navy-dark); }
.cylinder-table td { padding: 6px 10px; border-bottom: 1px solid var(--gov-border-subtle); }
.cylinder-table tr:last-child td { border-bottom: none; }

/* Step 5: Final Result Hero Decision Card */
.decision-hero-card {
  border: 2px solid var(--gov-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  transition: all 0.2s ease;
}
.decision-hero-card.eligible {
  background-color: #f0fdf4;
  border-color: #22c55e;
}
.decision-hero-card.not-eligible {
  background-color: #fef2f2;
  border-color: #ef4444;
}
.decision-hero-card.review {
  background-color: #fffbeb;
  border-color: #f59e0b;
}

.decision-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.eligible .decision-icon { background: var(--gov-green); color: #fff; }
.not-eligible .decision-icon { background: var(--gov-red); color: #fff; }
.review .decision-icon { background: var(--gov-amber); color: #fff; }

.decision-headline { font-size: 1.25rem; font-weight: 900; margin: 0 0 10px; }
.eligible .decision-headline { color: var(--gov-green-dark); }
.not-eligible .decision-headline { color: var(--gov-red-dark); }
.review .decision-headline { color: var(--gov-amber); }

.decision-reasons-list {
  text-align: left;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin: 0 0 14px;
  font-size: 0.8rem;
  width: 100%;
}
.decision-reasons-list ul { margin: 4px 0; padding-left: 18px; }
.decision-reasons-list li { margin-bottom: 4px; font-weight: 600; }

.decision-meta { font-size: 0.75rem; color: var(--gov-text-muted); margin-bottom: 14px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 800;
  transition: all 0.15s ease;
}
.btn.primary { background: var(--gov-navy-primary); color: #fff; }
.btn.primary:hover { background: var(--gov-navy-dark); }
.btn.success { background: var(--gov-green); color: #fff; }
.btn.success:hover { background: var(--gov-green-dark); }
.btn.danger { background: var(--gov-red); color: #fff; }
.btn.danger:hover { background: var(--gov-red-dark); }
.btn.outline { background: #fff; border-color: var(--gov-border); color: var(--gov-navy-dark); }
.btn.outline:hover { background: #f1f5f9; }
.btn.full { width: 100%; }

/* ==========================================================================
   4. LOWER SECTIONS (DEMO GALLERY, RECENT LOGS, FLOW, METRICS)
   ========================================================================== */
.lower-sections-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

/* Sample Gallery */
.gallery-card {
  background: var(--gov-card);
  border: 1px solid var(--gov-border);
  border-radius: var(--radius);
  padding: 18px;
}
.sample-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.sample-tile-btn {
  background: #f8fafc;
  border: 1px solid var(--gov-border);
  border-radius: var(--radius-sm);
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sample-tile-btn:hover { border-color: var(--gov-navy-primary); background: #f0f4f8; transform: translateY(-2px); }
.sample-tile-btn img { width: 100%; height: 60px; object-fit: cover; border-radius: 3px; margin-bottom: 4px; }
.sample-tile-btn strong { font-size: 0.78rem; font-weight: 800; color: var(--gov-navy-dark); font-family: monospace; }
.sample-tile-btn small { font-size: 0.68rem; color: var(--gov-text-muted); text-transform: uppercase; }

/* Process Flow & Additional Data Badges */
.info-sidebar-wrap { display: flex; flex-direction: column; gap: 18px; }
.flow-step-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.8rem; }
.flow-step-num { width: 20px; height: 20px; border-radius: 50%; background: var(--gov-saffron); color: #fff; font-size: 0.7rem; font-weight: 900; display: grid; place-items: center; }

.metrics-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.metric-box {
  background: #f8fafc;
  border: 1px solid var(--gov-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}
.metric-box span { font-size: 0.7rem; color: var(--gov-text-muted); font-weight: 700; text-transform: uppercase; display: block; }
.metric-box strong { font-size: 1.3rem; color: var(--gov-navy-primary); font-weight: 900; }

/* Data Tables */
.gov-table-wrap {
  background: var(--gov-card);
  border: 1px solid var(--gov-border);
  border-radius: var(--radius);
  overflow-x: auto;
}
.gov-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}
.gov-table th { background: #f1f5f9; padding: 10px 14px; border-bottom: 1px solid var(--gov-border); font-weight: 800; color: var(--gov-navy-dark); }
.gov-table td { padding: 10px 14px; border-bottom: 1px solid var(--gov-border-subtle); }
.gov-table tr:hover td { background: #f8fafc; }

/* Status Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.badge-valid { background: var(--gov-green-soft); color: var(--gov-green-dark); }
.badge-expired { background: var(--gov-red-soft); color: var(--gov-red-dark); }
.badge-missing { background: var(--gov-red-soft); color: var(--gov-red-dark); }
.badge-review { background: var(--gov-amber-soft); color: var(--gov-amber); }
.badge-notcng { background: #f1f5f9; color: var(--gov-text-muted); }

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--gov-navy-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 9999;
}
#toast.show { display: block; }
#toast.error { background: var(--gov-red-dark); }

/* Official Footer */
.gov-footer {
  background-color: var(--gov-navy-dark);
  color: #e2e8f0;
  padding: 24px;
  border-top: 3px solid var(--gov-saffron);
  font-size: 0.78rem;
  line-height: 1.6;
}
.gov-footer-content { max-width: 1540px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.gov-footer-links { display: flex; gap: 16px; font-weight: 700; }
.gov-footer-links a:hover { text-decoration: underline; color: #fff; }

/* Official Emblem Image */
.gov-emblem-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--gov-saffron);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

/* ==========================================================================
   INDIAN NAVY PORTAL THEME & STRUCTURE (joinindiannavy.gov.in / C-DAC Spec)
   ========================================================================== */
:root {
  --navy-primary: #04127b;        /* Admiralty Navy Blue */
  --navy-dark: #020b4c;           /* Deep Naval Midnight */
  --navy-darker: #000b33;         /* Deep Ocean Abyss */
  --navy-gold: #ffaf00;           /* Indian Navy Gilt Gold */
  --navy-gold-light: #ffd72d;     /* Bright Naval Brass */
  --navy-gold-soft: #fff8e1;      /* Soft Gold Wash */
  --navy-gold-border: #e0a000;    /* Solid Gold Border */
  --navy-canvas: #f4f6fa;         /* Crisp Naval Canvas */
  --navy-card: #ffffff;           /* Deck White */
  --navy-border: #cbd5e1;         /* Steel Gray Border */
  --navy-text: #0f172a;           /* Deep Charcoal Text */
  --navy-text-muted: #475569;     /* Naval Slate Gray */
  --navy-red: #b91c1c;            /* Alert Crimson */
  --navy-green: #15803d;          /* Fleet Green */
}

.navy-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #020b33;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Mukta", "Noto Sans Devanagari", Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Fullscreen Background Auto-Slider */
.bg-slider-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1), transform 9s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1.05);
}

.bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

.bg-slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 35%, rgba(4, 18, 123, 0.40) 0%, rgba(2, 8, 38, 0.75) 70%, rgba(1, 4, 20, 0.88) 100%);
  backdrop-filter: blur(1px);
}

.portal-page-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   PROMINENT STATION VISUAL SHOWCASE CAROUSEL (CLEAR & PROFESSIONAL)
   ========================================================================== */
.station-showcase-wrap {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1.5px solid var(--navy-gold, #ffaf00);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background: #020826;
}

.showcase-slider {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.showcase-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 1;
}

.showcase-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.showcase-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 12px 16px;
  background: linear-gradient(to top, rgba(0, 5, 25, 0.94) 0%, rgba(0, 5, 25, 0.65) 60%, transparent 100%);
  color: #ffffff;
  z-index: 3;
}

.showcase-tag {
  display: inline-block;
  background: var(--navy-gold, #ffaf00);
  color: #020b4c;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.showcase-caption strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.showcase-caption p {
  margin: 0;
  font-size: 0.74rem;
  color: #e2e8f0;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.showcase-controls {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 4;
}

.showcase-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.showcase-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.3);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.showcase-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.showcase-dot.active {
  background: var(--navy-gold, #ffaf00);
  transform: scale(1.3);
  box-shadow: 0 0 6px rgba(255, 175, 0, 0.8);
}

.showcase-nav-btns {
  display: flex;
  gap: 4px;
}

.showcase-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(4, 18, 123, 0.75);
  border: 1px solid var(--navy-gold, #ffaf00);
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.showcase-arrow:hover {
  background: var(--navy-gold, #ffaf00);
  color: #020b4c;
}

@media (max-width: 640px) {
  .showcase-slider {
    height: 190px;
  }
  .showcase-caption {
    padding: 16px 12px 10px 12px;
  }
  .showcase-caption strong {
    font-size: 0.82rem;
  }
  .showcase-caption p {
    font-size: 0.68rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ==========================================================================
   OFFICIAL GOVERNMENT OF INDIA PORTAL MASTHEAD & NAVIGATION (NIC / GIGW 3.0)
   ========================================================================== */
.navy-masthead {
  background: linear-gradient(135deg, var(--navy-dark, #020b4c) 0%, var(--navy-primary, #04127b) 100%);
  color: #ffffff;
  border-bottom: 3.5px solid var(--navy-gold, #ffaf00);
  box-shadow: 0 4px 12px rgba(2, 11, 76, 0.2);
}

.navy-masthead-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.navy-brand-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* State Emblem of India Badge */
.gov-emblem-badge {
  background: #ffffff;
  padding: 6px 8px;
  border-radius: 4px;
  border: 2px solid var(--navy-gold, #ffaf00);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gov-state-emblem {
  width: 50px;
  height: 65px;
  object-fit: contain;
  display: block;
}

.navy-titles h2 {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--navy-gold-light, #ffd72d);
  margin: 0 0 2px 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.navy-titles h1 {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 2px 0;
  letter-spacing: -0.01em;
}

.navy-titles p {
  font-size: 0.76rem;
  color: #e2e8f0;
  margin: 0;
  font-weight: 600;
}

.navy-masthead-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navy-motto-badge {
  text-align: right;
  border-left: 2px solid rgba(255, 175, 0, 0.4);
  padding-left: 16px;
}

.navy-motto-hindi {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--navy-gold, #ffaf00);
  display: block;
  letter-spacing: 0.02em;
}

.navy-motto-sub {
  font-size: 0.7rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.navy-crest-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--navy-gold, #ffaf00);
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 0 10px rgba(255, 175, 0, 0.4);
  object-fit: contain;
}

/* Primary Government Portal Navigation Bar */
.gov-portal-nav {
  background: #082552;
  border-bottom: 2.5px solid var(--navy-gold, #ffaf00);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.gov-portal-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  overflow-x: auto;
}

.gov-nav-item {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #f1f5f9;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
  border-bottom: 3px solid transparent;
}

.gov-nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.gov-nav-item.active {
  background: rgba(255, 175, 0, 0.15);
  color: var(--navy-gold-light, #ffd72d);
  border-bottom-color: var(--navy-gold, #ffaf00);
}

/* Main Indian Navy / Government Portal Grid */
.navy-login-main {
  flex: 1;
  padding: 28px 20px;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}

.navy-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

/* Left Card: Directives & Instructions (NIC Portal Standard) */
.navy-notice-card {
  background: #ffffff;
  border: 1px solid var(--navy-border, #cbd5e1);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(4, 18, 123, 0.06);
  overflow: hidden;
}

.navy-card-header {
  background: var(--navy-primary, #04127b);
  color: #ffffff;
  padding: 12px 18px;
  border-bottom: 2.5px solid var(--navy-gold, #ffaf00);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navy-card-header h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.navy-card-body {
  padding: 20px;
}

.navy-mandate-banner {
  background: #fff8e1;
  border-left: 4px solid var(--navy-gold, #ffaf00);
  padding: 12px 14px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 16px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #78350f;
  border-top: 1px solid #fef3c7;
  border-right: 1px solid #fef3c7;
  border-bottom: 1px solid #fef3c7;
}

.navy-mandate-banner strong {
  color: #451a03;
  display: block;
  margin-bottom: 2px;
}

/* NIC Live Operational Statistics Grid */
.gov-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 12px 8px;
  margin-bottom: 16px;
}

.gov-stat-box {
  text-align: center;
  padding: 4px 6px;
  border-right: 1px solid #e2e8f0;
}

.gov-stat-box:last-child {
  border-right: none;
}

.gov-stat-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy-primary, #04127b);
  line-height: 1.2;
}

.gov-stat-lbl {
  display: block;
  font-size: 0.68rem;
  color: #475569;
  line-height: 1.35;
  margin-top: 2px;
}

.gov-stat-lbl strong {
  color: #1e293b;
}

.navy-directives-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.navy-directive-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
}

.navy-directive-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.navy-anchor-badge {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--navy-primary, #04127b);
  color: var(--navy-gold-light, #ffd72d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid var(--navy-gold, #ffaf00);
}

.navy-directive-text strong {
  display: block;
  font-size: 0.84rem;
  color: var(--navy-primary, #04127b);
  font-weight: 800;
  margin-bottom: 2px;
}

.navy-directive-text p {
  margin: 0;
  font-size: 0.76rem;
  color: #475569;
  line-height: 1.45;
}

/* Downloads & Circulars Box */
.gov-downloads-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.gov-downloads-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--navy-primary, #04127b);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gov-downloads-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gov-download-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.15s ease;
}

.gov-download-link:hover {
  text-decoration: underline;
  color: #b91c1c;
}

.pdf-icon {
  background: #dc2626;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.navy-helpdesk-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
}

.navy-helpdesk-box strong {
  color: var(--navy-primary, #04127b);
  font-weight: 800;
}

/* Right Card: Officer Authentication Box */
.navy-auth-card {
  background: #ffffff;
  border: 1px solid var(--navy-border, #cbd5e1);
  border-top: 3.5px solid var(--navy-gold, #ffaf00);
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(4, 18, 123, 0.08);
  overflow: hidden;
}

.navy-auth-header {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  padding: 16px 20px;
  border-bottom: 1px solid var(--navy-border, #cbd5e1);
  text-align: center;
}

.navy-auth-crest-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy-primary, #04127b);
  color: var(--navy-gold-light, #ffd72d);
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.navy-auth-header h3 {
  margin: 0 0 4px 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--navy-primary, #04127b);
}

.navy-auth-header p {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}

.navy-auth-body {
  padding: 20px;
}

/* Role Selector Segmented Controls */
.gov-role-selector {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
}

.gov-role-btn {
  flex: 1;
  padding: 6px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #334155;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.gov-role-btn:hover {
  background: #e2e8f0;
}

.gov-role-btn.active {
  background: var(--navy-primary, #04127b);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navy-field {
  margin-bottom: 14px;
}

.navy-field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--navy-primary, #04127b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.navy-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.navy-input-icon {
  position: absolute;
  left: 12px;
  color: var(--navy-primary, #04127b);
  font-size: 0.88rem;
  pointer-events: none;
}

.navy-input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  font-size: 0.86rem;
  border: 1.5px solid var(--navy-border, #cbd5e1);
  border-radius: 4px;
  color: var(--navy-text, #0f172a);
  background: #ffffff;
  transition: all 0.2s ease;
}

.navy-input:focus {
  outline: none;
  border-color: var(--navy-primary, #04127b);
  box-shadow: 0 0 0 3px rgba(4, 18, 123, 0.12);
}

/* Government CAPTCHA Box */
.navy-captcha-wrap {
  margin-top: 4px;
  margin-bottom: 14px;
  background: #f8fafc;
  border: 1px solid var(--navy-border, #cbd5e1);
  border-radius: 4px;
  padding: 10px 12px;
}

.navy-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.navy-captcha-badge {
  background: repeating-linear-gradient(
    45deg,
    #04127b,
    #04127b 10px,
    #020b4c 10px,
    #020b4c 20px
  );
  color: var(--navy-gold-light, #ffd72d);
  font-family: "Courier New", Courier, monospace;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 6px;
  padding: 6px 14px;
  border-radius: 3px;
  border: 1.5px solid var(--navy-gold, #ffaf00);
  user-select: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.navy-captcha-refresh {
  background: #ffffff;
  border: 1px solid var(--navy-border, #cbd5e1);
  border-radius: 3px;
  color: var(--navy-primary, #04127b);
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.navy-captcha-refresh:hover {
  background: var(--navy-primary, #04127b);
  color: #ffffff;
}

/* Solid Government Blue Sign-In Button */
.navy-btn-submit {
  width: 100%;
  background: linear-gradient(180deg, #0a2569 0%, #04127b 100%);
  color: #ffffff;
  border: 1px solid #020b4c;
  padding: 11px 16px;
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(4, 18, 123, 0.25);
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.navy-btn-submit:hover {
  background: linear-gradient(180deg, #0f328a 0%, #061899 100%);
  box-shadow: 0 4px 10px rgba(4, 18, 123, 0.35);
}

.navy-btn-submit:active {
  transform: translateY(0);
}

/* Auxiliary Help Links */
.gov-auth-aux-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.74rem;
  font-weight: 700;
}

.gov-auth-aux-links a {
  color: var(--navy-primary, #04127b);
  text-decoration: none;
}

.gov-auth-aux-links a:hover {
  text-decoration: underline;
}

/* Quick Fill Evaluator Credentials */
.navy-quick-creds {
  margin-top: 14px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
}

.navy-creds-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--navy-primary, #04127b);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.navy-creds-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.navy-pill-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy-primary, #04127b);
  cursor: pointer;
  transition: all 0.15s ease;
}

.navy-pill-btn:hover {
  background: var(--navy-primary, #04127b);
  color: var(--navy-gold-light, #ffd72d);
  border-color: var(--navy-primary, #04127b);
}

/* Statutory Legal Notice (IT Act 2000) */
.navy-security-notice {
  margin-top: 14px;
  padding: 8px 10px;
  background: #fef2f2;
  border-left: 3.5px solid #dc2626;
  border-radius: 0 4px 4px 0;
  font-size: 0.7rem;
  color: #991b1b;
  line-height: 1.45;
}

.navy-security-notice strong {
  display: block;
  font-weight: 900;
  margin-bottom: 2px;
}

/* Indian Government Portal Footer (NIC / GIGW Standard) */
.navy-footer {
  background: #04127b;
  color: #e2e8f0;
  border-top: 3.5px solid var(--navy-gold, #ffaf00);
  font-size: 0.76rem;
  line-height: 1.6;
}

.navy-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.navy-footer-dept {
  flex: 1;
  min-width: 280px;
}

.navy-footer-links {
  display: flex;
  gap: 14px;
  font-weight: 700;
  flex-wrap: wrap;
}

.navy-footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.navy-footer-links a:hover {
  color: var(--navy-gold, #ffaf00);
  text-decoration: underline;
}

.gov-footer-nic-strip {
  background: #020826;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 24px;
}

.gov-footer-nic-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.7rem;
  color: #94a3b8;
}

.gov-footer-nic-inner strong {
  color: #e2e8f0;
}

/* High Contrast mode */
body.high-contrast .navy-masthead {
  background: #000000;
  border-bottom-color: #ffd700;
}
body.high-contrast .navy-notice-card,
body.high-contrast .navy-auth-card {
  background: #121212;
  border-color: #ffd700;
}
body.high-contrast .navy-card-header {
  background: #000000;
  border-bottom-color: #ffd700;
}
body.high-contrast .navy-btn-submit {
  background: #ffd700;
  color: #000000;
  border-color: #ffd700;
}

@media (max-width: 900px) {
  .navy-grid-layout {
    grid-template-columns: 1fr;
  }
  .gov-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .navy-motto-badge {
    text-align: left;
    border-left: none;
    padding-left: 0;
  }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .pipeline-grid { grid-template-columns: 1fr; }
  .lower-sections-grid { grid-template-columns: 1fr; }
  .gov-masthead { flex-direction: column; align-items: flex-start; gap: 12px; }
  .gov-badges-section { align-items: flex-start; }
}
