/* CMT Agentic Release Assurance -- Executive Enterprise Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-card: rgba(17, 24, 39, 0.85);
  --border-subtle: #374151;
  --border-focus: #3b82f6;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --color-green: #10b981;
  --color-yellow: #f59e0b;
  --color-red: #ef4444;
  --color-blue: #3b82f6;
  --color-purple: #8b5cf6;
  --color-cyan: #06b6d4;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Glassmorphism Cards */
.glass-panel {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(55, 65, 81, 0.6);
}

.glass-panel-glow {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.08);
}

/* Badges & Status Tags (Dark Mode Defaults) */
.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.15);
  color: #7c3aed;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

/* Animations */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.animate-pulse-subtle {
  animation: pulse-subtle 3s infinite ease-in-out;
}

/* Agent Timeline Node */
.agent-step-active {
  border-left: 3px solid #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

/* Network Graph Container */
#dependency-network {
  width: 100%;
  height: 600px;
  background: radial-gradient(circle at center, #111827 0%, #0b0f19 100%);
  border-radius: 0.75rem;
  border: 1px solid #374151;
}

/* Tooltip & Popover */
.evidence-popover {
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================================================== */
/* HIGH-CONTRAST ENTERPRISE LIGHT THEME ENGINE         */
/* ==================================================== */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --border-subtle: #cbd5e1;
  --border-focus: #2563eb;
  --text-primary: #0f172a;
  --text-secondary: #1e293b;
  --text-muted: #334155;
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

/* Light Theme Scrollbar */
body.light-theme ::-webkit-scrollbar-track {
  background: #f1f5f9;
}
body.light-theme ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}
body.light-theme ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Header & Navigation Bar */
body.light-theme header {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.light-theme header h1,
body.light-theme header .text-white {
  color: #0f172a !important;
}

body.light-theme aside {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.03);
}

/* Sidebar Nav Items */
body.light-theme .nav-item {
  color: #334155 !important;
}
body.light-theme .nav-item:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}
body.light-theme .nav-item.text-blue-400 {
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
  font-weight: 600;
}

/* Clean White Elevated Cards (replaces dark glass panels) */
body.light-theme .glass-panel,
body.light-theme .glass-panel-glow {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

/* Typography Overrides (High-Contrast Slate) */
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6,
body.light-theme .text-white {
  color: #0f172a !important;
}

body.light-theme .text-gray-100 {
  color: #0f172a !important;
}

body.light-theme .text-gray-200 {
  color: #1e293b !important;
}

body.light-theme .text-gray-300 {
  color: #1e293b !important;
  font-weight: 500;
}

body.light-theme .text-gray-400 {
  color: #334155 !important; /* Dark slate (WCAG AAA contrast against light backgrounds) */
}

body.light-theme .text-gray-500 {
  color: #475569 !important;
}

/* Inner Card Wells & Containers */
body.light-theme .bg-gray-900,
body.light-theme .bg-gray-950,
body.light-theme .bg-\[\#0b0f19\],
body.light-theme .bg-\[\#0e1424\],
body.light-theme .bg-\[\#111827\] {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

body.light-theme .bg-gray-900\/80,
body.light-theme .bg-gray-900\/90,
body.light-theme .bg-gray-900\/70,
body.light-theme .bg-gray-900\/50,
body.light-theme .bg-gray-900\/40 {
  background-color: #f8fafc !important;
}

/* Interactive Buttons */
body.light-theme .bg-gray-800 {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

body.light-theme .bg-gray-800:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

body.light-theme .border-gray-800,
body.light-theme .border-gray-700 {
  border-color: #cbd5e1 !important;
}

/* Form Controls, Inputs & Dropdowns */
body.light-theme input,
body.light-theme select,
body.light-theme textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

body.light-theme input::placeholder {
  color: #94a3b8 !important;
}

/* ==================================================== */
/* HIGH-CONTRAST PRIMARY ACTION BUTTONS (NO BLACK ON BLUE) */
/* ==================================================== */
body.light-theme .bg-blue-600,
body.light-theme .bg-blue-700,
body.light-theme .bg-blue-800,
body.light-theme .bg-indigo-600,
body.light-theme .bg-indigo-700,
body.light-theme .bg-indigo-800,
body.light-theme .bg-emerald-600,
body.light-theme .bg-emerald-700,
body.light-theme .bg-red-600,
body.light-theme .drr-filter-pill.active,
body.light-theme .agent-tab-btn.active,
body.light-theme .sec-filter-btn.active,
body.light-theme #btn-analyze-release,
body.light-theme .btn-analyze-release,
body.light-theme button[onclick*="runSequentialAgentAnalysis"],
body.light-theme button[onclick*="promoteLesson"] {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  border: 1px solid #1e40af !important;
  box-shadow: 0 2px 4px rgba(29, 78, 216, 0.25) !important;
}

body.light-theme .bg-blue-600 *,
body.light-theme .bg-blue-700 *,
body.light-theme .bg-blue-800 *,
body.light-theme .bg-indigo-600 *,
body.light-theme .bg-indigo-700 *,
body.light-theme .bg-indigo-800 *,
body.light-theme .bg-emerald-600 *,
body.light-theme .bg-emerald-700 *,
body.light-theme .bg-red-600 *,
body.light-theme .drr-filter-pill.active *,
body.light-theme .agent-tab-btn.active *,
body.light-theme .sec-filter-btn.active *,
body.light-theme #btn-analyze-release *,
body.light-theme .btn-analyze-release *,
body.light-theme button[onclick*="runSequentialAgentAnalysis"] *,
body.light-theme button[onclick*="promoteLesson"] * {
  color: #ffffff !important;
  fill: #ffffff !important;
}

body.light-theme #btn-analyze-release:hover,
body.light-theme .btn-analyze-release:hover,
body.light-theme button[onclick*="runSequentialAgentAnalysis"]:hover {
  background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%) !important;
  color: #ffffff !important;
}

/* Dark Tint Containers converted to soft light containers */
body.light-theme .bg-blue-950,
body.light-theme .bg-blue-900,
body.light-theme .bg-blue-950\/20,
body.light-theme .bg-blue-950\/40,
body.light-theme .bg-blue-950\/50,
body.light-theme .bg-blue-950\/60,
body.light-theme .bg-indigo-950,
body.light-theme .bg-indigo-950\/20,
body.light-theme .bg-indigo-950\/40,
body.light-theme .bg-indigo-950\/50,
body.light-theme .bg-indigo-950\/60,
body.light-theme .bg-purple-900\/30,
body.light-theme .bg-purple-950\/40 {
  background-color: #eff6ff !important;
  border-color: #bfdbfe !important;
}

/* ==================================================== */
/* HIGH-CONTRAST ACCENT TEXT (FIXES LIGHT BLUE ON GRAY) */
/* ==================================================== */
body.light-theme .text-blue-400,
body.light-theme .text-blue-300,
body.light-theme .text-sky-400,
body.light-theme .text-sky-300 {
  color: #1d4ed8 !important; /* WCAG AAA high contrast royal blue */
  font-weight: 600;
}

body.light-theme .text-blue-500 {
  color: #1e40af !important;
  font-weight: 600;
}

body.light-theme .text-cyan-400,
body.light-theme .text-cyan-300 {
  color: #0369a1 !important; /* Dark rich cyan */
  font-weight: 600;
}

body.light-theme .text-indigo-400,
body.light-theme .text-indigo-300,
body.light-theme .text-indigo-200 {
  color: #4338ca !important; /* Deep dark indigo */
  font-weight: 600;
}

body.light-theme .text-purple-400,
body.light-theme .text-purple-300,
body.light-theme .text-purple-200 {
  color: #6b21a8 !important; /* Deep violet */
  font-weight: 600;
}

body.light-theme .text-emerald-400,
body.light-theme .text-emerald-300 {
  color: #047857 !important; /* Deep emerald */
  font-weight: 600;
}

body.light-theme .text-amber-400,
body.light-theme .text-amber-300 {
  color: #b45309 !important; /* Deep amber */
  font-weight: 600;
}

body.light-theme .text-red-400,
body.light-theme .text-red-300 {
  color: #b91c1c !important; /* Deep crimson */
  font-weight: 600;
}

/* High-Contrast Tint Badges */
body.light-theme .bg-blue-500\/10,
body.light-theme .bg-blue-500\/20,
body.light-theme .bg-blue-600\/10,
body.light-theme .bg-blue-600\/20 {
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}

body.light-theme .bg-indigo-500\/10,
body.light-theme .bg-indigo-500\/20,
body.light-theme .bg-indigo-500\/30,
body.light-theme .bg-purple-500\/10,
body.light-theme .bg-purple-500\/20,
body.light-theme .badge-purple {
  background-color: #f3e8ff !important;
  color: #581c87 !important;
  border-color: #c084fc !important;
  font-weight: 700;
}

body.light-theme .bg-cyan-500\/20,
body.light-theme .bg-cyan-500\/10 {
  background-color: #ecfeff !important;
  color: #0e7490 !important;
  border-color: #a5f3fc !important;
}

/* High-Contrast Status Badges */
body.light-theme .badge-green {
  background-color: #ecfdf5 !important;
  color: #065f46 !important;
  border-color: #6ee7b7 !important;
  font-weight: 600;
}

body.light-theme .badge-yellow {
  background-color: #fffbeb !important;
  color: #92400e !important;
  border-color: #fcd34d !important;
  font-weight: 600;
}

body.light-theme .badge-red {
  background-color: #fef2f2 !important;
  color: #991b1b !important;
  border-color: #fca5a5 !important;
  font-weight: 600;
}

body.light-theme .badge-blue {
  background-color: #eff6ff !important;
  color: #1e40af !important;
  border-color: #93c5fd !important;
  font-weight: 600;
}

/* Modals & Popups */
body.light-theme .modal-content-card,
body.light-theme #domain-modal .bg-\[\#111827\],
body.light-theme #modal-release-detail .bg-\[\#111827\],
body.light-theme #modal-release-detail #modal-tab-content,
body.light-theme #modal-agent-analysis .bg-\[\#111827\],
body.light-theme #modal-agent-help .bg-\[\#111827\],
body.light-theme #demo-control-panel {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

/* Dependency Network in Light Mode */
body.light-theme #dependency-network {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

/* Table styling in Light Mode */
body.light-theme table thead tr {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

body.light-theme table tbody tr {
  border-color: #e2e8f0 !important;
}

body.light-theme table tbody tr:hover {
  background-color: #f8fafc !important;
}



/* ==================================================== */
/* SECTION 508 & WCAG 2.1 AA ACCESSIBILITY UTILITIES     */
/* ==================================================== */

/* Skip Link for Screen Readers and Keyboard Users (WCAG 2.4.1) */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: #2563eb;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  transition: top 0.15s ease-in-out;
}
.skip-to-content:focus {
  top: 1rem;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* High-Contrast Visible Focus Rings (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #3b82f6 !important;
  outline-offset: 2px !important;
}

body.light-theme a:focus-visible,
body.light-theme button:focus-visible,
body.light-theme input:focus-visible,
body.light-theme select:focus-visible,
body.light-theme textarea:focus-visible,
body.light-theme [tabindex]:focus-visible {
  outline: 2px solid #1d4ed8 !important;
  outline-offset: 2px !important;
}

/* ==================================================== */
/* COLLAPSIBLE SIDEBAR & COMPACT ICON MODE               */
/* ==================================================== */
#main-sidebar {
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-sidebar.sidebar-collapsed {
  width: 4.5rem !important; /* 72px */
}

#main-sidebar.sidebar-collapsed .sidebar-label,
#main-sidebar.sidebar-collapsed .sidebar-header-text,
#main-sidebar.sidebar-collapsed .sidebar-footer-text,
#main-sidebar.sidebar-collapsed #nav-releases-count,
#main-sidebar.sidebar-collapsed #nav-notifs-badge {
  display: none !important;
}

#main-sidebar.sidebar-collapsed .nav-item {
  justify-content: center !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

#main-sidebar.sidebar-collapsed .nav-item i {
  margin-right: 0 !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
}

/* ==================================================== */
/* STICKY MODAL HEADER & 10-TAB NAVIGATION               */
/* ==================================================== */
.sticky-modal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(17, 24, 39, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sticky-modal-tabs {
  position: sticky;
  top: 73px;
  z-index: 25;
  background: rgba(17, 24, 39, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.light-theme .sticky-modal-header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: #cbd5e1 !important;
}

body.light-theme .sticky-modal-tabs {
  background: rgba(248, 250, 252, 0.98) !important;
  border-color: #cbd5e1 !important;
}

/* ==================================================== */
/* FLOATING GRAPH NAVIGATION CONTROLS                    */
/* ==================================================== */
.graph-floating-controls {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  z-index: 15;
}

.graph-control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(17, 24, 39, 0.9);
  color: #e2e8f0;
  border: 1px solid rgba(75, 85, 99, 0.7);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

.graph-control-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

body.light-theme .graph-control-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-color: #cbd5e1;
}

body.light-theme .graph-control-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
}

/* ==================================================== */
/* DRR FILTER PILLS & CHIPS                              */
/* ==================================================== */
.drr-filter-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.drr-filter-pill.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.drr-filter-pill:not(.active) {
  background: rgba(31, 41, 55, 0.7);
  color: #9ca3af;
  border-color: #374151;
}

.drr-filter-pill:not(.active):hover {
  background: rgba(55, 65, 81, 0.8);
  color: #ffffff;
}

body.light-theme .drr-filter-pill:not(.active) {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

body.light-theme .drr-filter-pill:not(.active):hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* ==================================================== */
/* EMPTY STATE CONTAINER                                 */
/* ==================================================== */
.empty-state-card {
  padding: 3.5rem 1.5rem;
  text-align: center;
  border-radius: 0.75rem;
  border: 1px dashed #374151;
  background: rgba(17, 24, 39, 0.4);
}

body.light-theme .empty-state-card {
  border-color: #cbd5e1;
  background: #f8fafc;
}

/* ==================================================== */
/* AGENT HELP (?) TRIGGER & INTELLIGENCE MODAL          */
/* ==================================================== */
.agent-help-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  vertical-align: middle;
  margin-left: 0.35rem;
  padding: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.agent-help-trigger-btn:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.agent-help-trigger-btn:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

body.light-theme .agent-help-trigger-btn {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
  color: #1d4ed8;
}

body.light-theme .agent-help-trigger-btn:hover {
  background: #1d4ed8;
  border-color: #1e40af;
  color: #ffffff;
}

.agent-tab-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.agent-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.agent-tab-btn:not(.active) {
  background: rgba(31, 41, 55, 0.6);
  color: #9ca3af;
  border-color: #374151;
}

.agent-tab-btn:not(.active):hover {
  background: rgba(55, 65, 81, 0.8);
  color: #ffffff;
}

body.light-theme .agent-tab-btn:not(.active) {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

body.light-theme .agent-tab-btn:not(.active):hover {
  background: #e2e8f0;
  color: #0f172a;
}

.agent-tool-card {
  border-radius: 0.625rem;
  padding: 0.75rem;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(55, 65, 81, 0.8);
  transition: border-color 0.15s ease;
}

.agent-tool-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

body.light-theme .agent-tool-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.light-theme .agent-tool-card:hover {
  border-color: #93c5fd;
}

/* ==================================================== */
/* ANCHORE SCAN & CVE ADJUDICATION STYLES               */
/* ==================================================== */
.cve-card {
  border-radius: 0.625rem;
  padding: 0.875rem;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(55, 65, 81, 0.8);
  transition: all 0.15s ease;
}

.cve-card.blocker {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(127, 29, 29, 0.15);
}

.cve-card.adjudicated {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(120, 53, 15, 0.12);
}

.cve-badge-high {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-weight: 700;
}

.cve-badge-medium {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-weight: 700;
}

.cve-badge-low {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
  font-weight: 700;
}

body.light-theme .cve-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.light-theme .cve-card.blocker {
  background: #fef2f2;
  border-color: #fca5a5;
}

body.light-theme .cve-card.adjudicated {
  background: #fffbeb;
  border-color: #fde68a;
}

body.light-theme .cve-badge-high {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fca5a5 !important;
  font-weight: 700;
}

body.light-theme .cve-badge-medium {
  background-color: #fef3c7 !important;
  color: #92400e !important;
  border-color: #fcd34d !important;
  font-weight: 700;
}

body.light-theme .cve-badge-low {
  background-color: #eff6ff !important;
  color: #1e40af !important;
  border-color: #bfdbfe !important;
  font-weight: 700;
}

/* ==================================================== */
/* SECURITY EXCEPTIONS LEDGER VIEW & SIDE LEDGE         */
/* ==================================================== */
.sec-ledge-item {
  border-radius: 0.625rem;
  padding: 0.875rem;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(55, 65, 81, 0.8);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.sec-ledge-item:hover {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(31, 41, 55, 0.8);
}

.sec-ledge-item.active {
  border-color: #3b82f6 !important;
  background: rgba(37, 99, 235, 0.15) !important;
  box-shadow: 0 0 0 1px #3b82f6;
}

.sec-ledge-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  background: #3b82f6;
  border-radius: 0 4px 4px 0;
}

body.light-theme .sec-ledge-item {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.light-theme .sec-ledge-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body.light-theme .sec-ledge-item.active {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 1px #3b82f6;
}

body.light-theme .sec-ledge-item.active::before {
  background: #2563eb;
}

/* ==================================================== */
/* RELEASE CALENDAR GANTT CHART STYLES                  */
/* ==================================================== */
.gantt-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 #111827;
  border-radius: 0.5rem;
  scroll-behavior: smooth;
}

.gantt-container::-webkit-scrollbar {
  height: 10px;
}

.gantt-container::-webkit-scrollbar-track {
  background: #111827;
  border-radius: 6px;
}

.gantt-container::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 6px;
  border: 2px solid #111827;
}

.gantt-container::-webkit-scrollbar-thumb:hover {
  background: #60a5fa;
}

.gantt-table-header {
  display: flex;
  border-bottom: 1px solid rgba(55, 65, 81, 0.8);
  padding-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  position: sticky;
  top: 0;
  background: #0f172a;
  z-index: 25;
}

.gantt-header-label-cell {
  width: 290px;
  min-width: 290px;
  max-width: 290px;
  flex-shrink: 0;
  position: sticky;
  left: 0;
  background: #0f172a;
  z-index: 30;
  padding-right: 0.75rem;
  border-right: 1px solid rgba(55, 65, 81, 0.6);
}

.gantt-header-track {
  display: flex;
  flex: 1;
}

.gantt-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(31, 41, 55, 0.7);
  padding: 0.5rem 0;
  transition: background-color 0.15s ease;
  position: relative;
}

.gantt-row:hover {
  background: rgba(31, 41, 55, 0.4);
}

.gantt-label-cell {
  width: 290px;
  min-width: 290px;
  max-width: 290px;
  flex-shrink: 0;
  padding-right: 0.75rem;
  position: sticky;
  left: 0;
  background: #0e1424;
  z-index: 20;
  border-right: 1px solid rgba(55, 65, 81, 0.6);
}

.gantt-row:hover .gantt-label-cell {
  background: #131b2e;
}

.gantt-track-cell {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  flex: 1;
}

.gantt-grid-lines {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
  z-index: 1;
}

.gantt-grid-col {
  border-right: 1px dashed rgba(55, 65, 81, 0.35);
  height: 100%;
  flex-shrink: 0;
}

.gantt-grid-col.today-col {
  background: rgba(59, 130, 246, 0.07);
  border-right: 1.5px solid rgba(59, 130, 246, 0.5);
}

.gantt-bar {
  position: absolute;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  white-space: nowrap;
}

.gantt-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  z-index: 25;
}

.gantt-bar-stripe {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.08) 8px,
    transparent 8px,
    transparent 16px
  );
}

.gantt-collision-glow {
  animation: ganttCollisionPulse 2s infinite ease-in-out;
}

@keyframes ganttCollisionPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.8), 0 4px 12px rgba(239, 68, 68, 0.4);
  }
}

/* Light Mode Theme Adjustments for Gantt Chart */
body.light-theme .gantt-container {
  scrollbar-color: #2563eb #e2e8f0;
}

body.light-theme .gantt-container::-webkit-scrollbar-track {
  background: #e2e8f0;
}

body.light-theme .gantt-container::-webkit-scrollbar-thumb {
  background: #2563eb;
  border: 2px solid #e2e8f0;
}

body.light-theme .gantt-table-header {
  border-color: #cbd5e1;
  color: #475569;
  background: #ffffff;
}

body.light-theme .gantt-header-label-cell {
  background: #ffffff;
  border-right-color: #cbd5e1;
}

body.light-theme .gantt-row {
  border-color: #e2e8f0;
}

body.light-theme .gantt-row:hover {
  background: #f8fafc;
}

body.light-theme .gantt-label-cell {
  background: #ffffff;
  border-right-color: #e2e8f0;
}

body.light-theme .gantt-row:hover .gantt-label-cell {
  background: #f1f5f9;
}

body.light-theme .gantt-grid-col {
  border-right: 1px dashed #cbd5e1;
}

body.light-theme .gantt-grid-col.today-col {
  background: rgba(37, 99, 235, 0.08);
  border-right: 1.5px solid rgba(37, 99, 235, 0.5);
}

body.light-theme .gantt-bar {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body.light-theme .gantt-bar:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* ==================================================== */
/* DEPLOYMENT COLLISION ALERT BANNER & DISMISS BUTTON   */
/* ==================================================== */
.btn-dismiss-collision {
  background-color: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

.btn-dismiss-collision:hover {
  background-color: rgba(245, 158, 11, 0.35);
  color: #ffffff;
}

body.light-theme #calendar-collision-banner {
  background-color: #fffbeb !important;
  border: 1.5px solid #f59e0b !important;
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.12) !important;
}

body.light-theme #calendar-collision-banner h3 {
  color: #78350f !important;
}

body.light-theme #calendar-collision-banner p {
  color: #92400e !important;
}

body.light-theme #calendar-collision-banner div {
  color: #92400e !important;
}

body.light-theme #calendar-collision-banner strong,
body.light-theme #calendar-collision-banner span.font-mono {
  color: #78350f !important;
}

body.light-theme #calendar-collision-banner .btn-dismiss-collision,
body.light-theme #btn-dismiss-collision,
body.light-theme button[onclick*="dismissCollisionBanner"] {
  background-color: #fef3c7 !important;
  border: 1.5px solid #d97706 !important;
  color: #92400e !important;
  box-shadow: 0 1px 2px rgba(180, 83, 9, 0.15) !important;
}

body.light-theme #calendar-collision-banner .btn-dismiss-collision:hover,
body.light-theme #btn-dismiss-collision:hover,
body.light-theme button[onclick*="dismissCollisionBanner"]:hover {
  background-color: #fde68a !important;
  border-color: #b45309 !important;
  color: #78350f !important;
}

body.light-theme #calendar-collision-banner .btn-dismiss-collision *,
body.light-theme #btn-dismiss-collision *,
body.light-theme button[onclick*="dismissCollisionBanner"] * {
  color: #92400e !important;
  stroke: #92400e !important;
}

body.light-theme #calendar-collision-banner .btn-dismiss-collision:hover *,
body.light-theme #btn-dismiss-collision:hover *,
body.light-theme button[onclick*="dismissCollisionBanner"]:hover * {
  color: #78350f !important;
  stroke: #78350f !important;
}

/* ====================================================
   Deployment Risk Alerts (T-Minus Escalation Protocol)
   ==================================================== */
.risk-alert-ribbon {
  transition: all 0.25s ease-in-out;
}

.risk-tier-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.risk-tier-card:hover {
  transform: translateY(-2px);
}

.badge-risk-critical {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.badge-risk-high {
  background-color: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #fdba74;
}

.badge-risk-advisory {
  background-color: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #fde047;
}

.badge-risk-info {
  background-color: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

/* Light Theme High-Contrast Overrides */
body.light-theme .badge-risk-critical {
  background-color: #fee2e2 !important;
  border: 1.5px solid #dc2626 !important;
  color: #991b1b !important;
  font-weight: 700 !important;
}

body.light-theme .badge-risk-high {
  background-color: #ffedd5 !important;
  border: 1.5px solid #ea580c !important;
  color: #9a3412 !important;
  font-weight: 700 !important;
}

body.light-theme .badge-risk-advisory {
  background-color: #fef9c3 !important;
  border: 1.5px solid #ca8a04 !important;
  color: #854d0e !important;
  font-weight: 700 !important;
}

body.light-theme .badge-risk-info {
  background-color: #dbeafe !important;
  border: 1.5px solid #2563eb !important;
  color: #1e40af !important;
  font-weight: 700 !important;
}

body.light-theme .risk-tier-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.light-theme .risk-tier-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}






