/* ==========================================================================
   Regulatory Watch — Design System & Executive Stylesheet
   Identity: Visores / Radar Goggles Concept (Tech Observation & Compliance)
   ========================================================================== */

:root {
  /* Core Palette */
  --primary: #0a0f1d;
  --primary-surface: #111827;
  --primary-light: #1e293b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #38bdf8;
  --accent-subtle: #eff6ff;
  
  /* Text */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  
  /* Surfaces & Backgrounds */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #f8fafc;
  
  /* Borders */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #3b82f6;
  
  /* Semantic Status & Criticality */
  --critical-bg: #fef2f2;
  --critical-border: #fecaca;
  --critical-text: #b91c1c;
  --critical-dot: #ef4444;
  
  --high-bg: #fff7ed;
  --high-border: #fed7aa;
  --high-text: #c2410c;
  --high-dot: #f97316;
  
  --medium-bg: #fefce8;
  --medium-border: #fef08a;
  --medium-text: #854d0e;
  --medium-dot: #eab308;
  
  --low-bg: #f0fdf4;
  --low-border: #bbf7d0;
  --low-text: #15803d;
  --low-dot: #22c55e;
  
  --unknown-bg: #f1f5f9;
  --unknown-border: #e2e8f0;
  --unknown-text: #64748b;
  --unknown-dot: #94a3b8;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 20px -3px rgba(37, 99, 235, 0.25);
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Header & Navigation (Sleek Glassmorphic & Goggles Identity)
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Identity: Visores / Goggles */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: radial-gradient(circle at 50% 30%, #1e293b 0%, #0a0f1d 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}

.brand:hover .brand-icon-wrap {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.brand-goggles-icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #ffffff;
  line-height: 1.15;
}

.brand-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #38bdf8;
  text-transform: uppercase;
}

/* Nav Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #ffffff;
  background-color: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.nav-link-external {
  color: #93c5fd;
}

.nav-link-external:hover {
  color: #bfdbfe;
  background-color: rgba(37, 99, 235, 0.18);
}

.external-arrow {
  font-size: 13px;
  opacity: 0.85;
}

/* Live Status Indicator */
.header-status {
  display: flex;
  align-items: center;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 5px 11px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ==========================================================================
   Main Layout & Hero Sections
   ========================================================================== */

.app-main {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 24px 72px;
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 8px;
}

.radar-ping {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.hero-title, .page-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
  color: var(--primary);
}

.hero-subtitle, .page-description {
  color: var(--text-muted);
  font-size: 15.5px;
  margin: 0;
  line-height: 1.55;
}

.hero-actions, .page-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-muted);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.btn-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.btn-large {
  padding: 13px 24px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: color 0.15s ease;
}

.btn-back:hover {
  color: var(--accent);
}

/* ==========================================================================
   Stats Cards Grid
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.stat-total::after { background-color: var(--accent); }
.stat-enriched::after { background-color: #10b981; }
.stat-pending::after { background-color: #f59e0b; }
.stat-failed::after { background-color: #ef4444; }

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-total .stat-icon-wrap {
  background-color: #eff6ff;
  color: var(--accent);
}

.stat-enriched .stat-icon-wrap {
  background-color: #ecfdf5;
  color: #059669;
}

.stat-pending .stat-icon-wrap {
  background-color: #fffbeb;
  color: #d97706;
}

.stat-failed .stat-icon-wrap {
  background-color: #fef2f2;
  color: #dc2626;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ==========================================================================
   Section Cards & Headers
   ========================================================================== */

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.section-header {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
  flex-wrap: wrap;
}

.section-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.section-subheading {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 3px 0 0;
}

/* ==========================================================================
   Data Table Styling
   ========================================================================== */

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table thead {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  padding: 13px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.table-row {
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.12s ease;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row:hover {
  background-color: #fbfcfe;
}

.data-table td {
  padding: 15px 18px;
  font-size: 14px;
  vertical-align: middle;
}

.col-date {
  width: 110px;
  white-space: nowrap;
}

.date-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.col-source {
  width: 170px;
}

.source-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.area-subtag {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 3px;
  text-transform: capitalize;
}

.col-title {
  min-width: 320px;
}

.publication-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.publication-link:hover {
  color: var(--accent);
}

/* Relevance Badges */
.badge-relevance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge-critical {
  background-color: var(--critical-bg);
  border-color: var(--critical-border);
  color: var(--critical-text);
}
.badge-critical .badge-dot { background-color: var(--critical-dot); box-shadow: 0 0 6px var(--critical-dot); }

.badge-high {
  background-color: var(--high-bg);
  border-color: var(--high-border);
  color: var(--high-text);
}
.badge-high .badge-dot { background-color: var(--high-dot); }

.badge-medium {
  background-color: var(--medium-bg);
  border-color: var(--medium-border);
  color: var(--medium-text);
}
.badge-medium .badge-dot { background-color: var(--medium-dot); }

.badge-low {
  background-color: var(--low-bg);
  border-color: var(--low-border);
  color: var(--low-text);
}
.badge-low .badge-dot { background-color: var(--low-dot); }

.badge-unknown {
  background-color: var(--unknown-bg);
  border-color: var(--unknown-border);
  color: var(--unknown-text);
}
.badge-unknown .badge-dot { background-color: var(--unknown-dot); }

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.status-dot-green, .status-dot-amber, .status-dot-blue, .status-dot-red {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-dot-green { background-color: #10b981; }
.status-dot-amber { background-color: #f59e0b; }
.status-dot-blue { background-color: #3b82f6; }
.status-dot-red { background-color: #ef4444; }

/* Table Action Buttons */
.action-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-table-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background-color: #ffffff;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-table-action:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: var(--accent);
}

.action-arrow {
  font-size: 12px;
  transition: transform 0.15s ease;
}

.btn-table-action:hover .action-arrow {
  transform: translateX(2px);
}

.btn-table-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background-color: #eff6ff;
  color: var(--accent);
  border: 1px solid #dbeafe;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-table-external:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Empty State */
.empty-table-cell {
  padding: 56px 24px !important;
  text-align: center;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 6px;
}

.empty-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   Filter Card & Forms
   ========================================================================== */

.filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}

.filters-form {
  display: grid;
  grid-template-columns: 1fr 240px auto;
  gap: 12px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  pointer-events: none;
}

.filter-input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-main);
  background-color: #ffffff;
  outline: none;
  transition: all 0.15s ease;
}

.filter-input:focus, .filter-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.select-wrap {
  position: relative;
}

.filter-select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-main);
  background-color: #ffffff;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-filter-bar {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.active-filter-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background-color: #eff6ff;
  border: 1px solid #dbeafe;
  color: var(--accent);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

/* Pagination Bar */
.pagination-bar {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  background-color: #fbfcfe;
}

.pagination-info {
  font-size: 13.5px;
  color: var(--text-muted);
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}

.btn-pagination:not(.disabled):hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.btn-pagination.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f1f5f9;
}

.page-number-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

/* ==========================================================================
   Executive Dossier Detail View
   ========================================================================== */

.breadcrumb-nav {
  margin-bottom: 20px;
}

.dossier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.dossier-header {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.dossier-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.org-badge {
  font-size: 11.5px;
  font-weight: 600;
  background-color: #f1f5f9;
  color: #475569;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.area-badge {
  font-size: 11.5px;
  font-weight: 700;
  background-color: #e0e7ff;
  color: #3730a3;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.dossier-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.6px;
}

.dossier-meta-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.model-tag {
  background-color: #f8fafc;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 600;
}

.dossier-actions {
  display: flex;
  gap: 12px;
}

/* Dossier Sections */
.dossier-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--border-light);
}

.dossier-section:last-of-type {
  border-bottom: none;
}

.subsection-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* AI Summary Highlight Box */
.ai-summary-card {
  background: linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%);
  border: 1px solid #ccfbf1;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 30px;
}

.ai-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ai-section-title h2 {
  font-size: 18px;
  font-weight: 700;
  color: #0f766e;
  margin: 0;
}

.ai-sparkle-icon {
  font-size: 20px;
}

.ai-badge-pill {
  font-size: 11px;
  font-weight: 700;
  background-color: #99f6e4;
  color: #115e59;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-summary-text {
  font-size: 16px;
  line-height: 1.7;
  color: #1e293b;
  margin: 0;
}

/* 2-Column Info Grid */
.dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.info-card {
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.card-icon-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--accent);
}

.card-icon-header h3 {
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0;
  color: var(--primary);
}

.card-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

/* Entity Chips */
.entity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entity-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background-color: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1e40af;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
}

/* Key Dates Table */
.dates-table {
  width: 100%;
  border-collapse: collapse;
}

.dates-table th {
  background-color: #f8fafc;
  border-bottom: 2px solid var(--border);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dates-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13.5px;
}

.date-col {
  white-space: nowrap;
  color: var(--primary);
}

.date-type-tag {
  display: inline-block;
  padding: 2px 7px;
  background-color: #f1f5f9;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}

.date-desc-col {
  color: #334155;
}

/* Warning Callout */
.warning-callout {
  display: flex;
  gap: 14px;
  background-color: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 24px 0;
}

.warning-icon {
  font-size: 22px;
  line-height: 1;
}

.warning-content h4 {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: #b45309;
}

.warning-content ul {
  margin: 0;
  padding-left: 18px;
  color: #92400e;
  font-size: 13.5px;
  line-height: 1.5;
}

/* Notice Pending Card */
.notice-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
}

.notice-icon {
  font-size: 28px;
}

.notice-card strong {
  display: block;
  font-size: 15px;
  color: #92400e;
}

.notice-card p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: #b45309;
}

/* Raw Content Box */
.raw-content-box {
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

/* Timeline */
.version-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-node {
  position: relative;
  padding-left: 28px;
  padding-bottom: 24px;
}

.timeline-node:last-child {
  padding-bottom: 0;
}

.timeline-node::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: -6px;
  width: 2px;
  background-color: var(--border);
}

.timeline-node:last-child::before {
  display: none;
}

.timeline-bullet {
  position: absolute;
  left: 2px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--border);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.timeline-header strong {
  font-size: 14px;
  color: var(--primary);
}

.timeline-time {
  font-size: 12.5px;
  color: var(--text-light);
}

.timeline-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   404 Not Found Card
   ========================================================================== */

.not-found-card {
  max-width: 520px;
  margin: 60px auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  box-shadow: var(--shadow-sm);
}

.not-found-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background-color: #f8fafc;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.not-found-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 8px;
}

.not-found-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.app-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border);
  padding: 30px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.footer-note {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-container {
    height: auto;
    padding: 14px 20px;
    flex-wrap: wrap;
  }
  
  .header-status {
    display: none;
  }
  
  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .filters-form {
    grid-template-columns: 1fr;
  }

  .dossier-grid {
    grid-template-columns: 1fr;
  }

  .dossier-card {
    padding: 24px 18px;
  }

  .dossier-title {
    font-size: 22px;
  }

  .hero-title, .page-title {
    font-size: 26px;
  }
}

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .app-main {
    padding: 20px 16px 48px;
  }
}

/* ==========================================================================
   Login Page Styling
   ========================================================================== */

.login-body {
  background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0a0f1d 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo {
  margin: 0 auto 16px;
  width: 52px;
  height: 52px;
}

.login-logo .brand-goggles-icon {
  width: 34px;
  height: 34px;
}

.login-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--critical-bg);
  border: 1px solid var(--critical-border);
  color: var(--critical-text);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  color: var(--text-main);
  background-color: #ffffff;
  outline: none;
  transition: all 0.15s ease;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-login {
  padding: 13px;
  font-size: 15px;
  margin-top: 8px;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-light);
}

/* Period Preset Tabs & Date Filter Bar */
.period-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.period-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
}

.period-tab:hover {
  background: var(--color-surface-3);
  color: #ffffff;
  border-color: var(--color-border-hover);
}

.period-tab.active {
  background: rgba(37, 99, 235, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.filters-row-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}


