@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color System */
  --bg-dark: #080b11;
  --bg-panel: var(--bg-panel);
  --bg-card: var(--bg-card);
  --border-glow: var(--glass-8);
  --border-active: rgba(99, 102, 241, 0.4);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #4b5563;
  
  --glass-2: rgba(255, 255, 255, 0.02);
  --glass-3: rgba(255, 255, 255, 0.03);
  --glass-5: rgba(255, 255, 255, 0.05);
  --glass-6: rgba(255, 255, 255, 0.06);
  --glass-8: rgba(255, 255, 255, 0.08);
  --glass-10: rgba(255, 255, 255, 0.1);
  --glass-15: rgba(255, 255, 255, 0.15);
  --glass-20: rgba(255, 255, 255, 0.2);
  --glass-30: rgba(255, 255, 255, 0.3);
  
  /* Primary HSL Accents */
  --cyan: hsl(185, 100%, 50%);
  --cyan-glow: rgba(6, 182, 212, 0.3);
  --indigo: hsl(250, 95%, 65%);
  --indigo-glow: rgba(99, 102, 241, 0.35);
  --teal: hsl(165, 80%, 45%);
  --teal-glow: rgba(20, 184, 166, 0.2);
  --yellow: hsl(42, 90%, 50%);
  --yellow-glow: rgba(245, 158, 11, 0.25);
  --rose: hsl(350, 85%, 55%);
  --rose-glow: rgba(239, 68, 68, 0.3);
  
  /* Theme Text Gradients & Backgrounds */
  --title-gradient: linear-gradient(135deg, #fff, #a5b4fc);
  --section-gradient: linear-gradient(135deg, #fff, #cbd5e1);
  --progress-gradient: linear-gradient(135deg, #fff 50%, var(--cyan) 100%);
  --bg-radial-1: rgba(99, 102, 241, 0.1);
  --bg-radial-2: rgba(6, 182, 212, 0.08);
  
  /* Spacing & Layout */
  --font-body: 'Inter', system-ui, sans-serif;
  --font-header: 'Outfit', sans-serif;
  --sidebar-width: 280px;
  --border-radius: 16px;
  
  /* Animation Speeds */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* HSL Rating Fills */
  --rate-1: #ef4444;
  --rate-2: #f59e0b;
  --rate-3: #eab308;
  --rate-4: #10b981;
  --rate-5: #06b6d4;
}

[data-theme="light"] {
  --bg-dark: #f0f4f8; /* Soft light background */
  --bg-panel: rgba(255, 255, 255, 0.85); /* Frosty white glass */
  --bg-card: rgba(255, 255, 255, 0.65);
  --border-glow: rgba(0, 0, 0, 0.08); /* Dark subtle border instead of light */
  --border-active: rgba(99, 102, 241, 0.6);
  
  --text-main: #1f2937; /* Dark text */
  --text-muted: #6b7280; /* Gray text */
  --text-dark: #e5e7eb; /* Inverted for light mode headers if any */
  
  --glass-2: rgba(0, 0, 0, 0.02);
  --glass-3: rgba(0, 0, 0, 0.03);
  --glass-5: rgba(0, 0, 0, 0.05);
  --glass-6: rgba(0, 0, 0, 0.06);
  --glass-8: rgba(0, 0, 0, 0.08);
  --glass-10: rgba(0, 0, 0, 0.1);
  --glass-15: rgba(0, 0, 0, 0.15);
  --glass-20: rgba(0, 0, 0, 0.2);
  --glass-30: rgba(0, 0, 0, 0.3);
  
  /* Orange Theme Overrides for Light Mode */
  --cyan: hsl(25, 95%, 55%);
  --cyan-glow: rgba(249, 115, 22, 0.4);
  --indigo: hsl(15, 95%, 50%);
  --indigo-glow: rgba(234, 88, 12, 0.4);
  --border-active: rgba(249, 115, 22, 0.6);
  
  --title-gradient: linear-gradient(135deg, #111, #ea580c);
  --section-gradient: linear-gradient(135deg, #111, #f97316);
  --progress-gradient: linear-gradient(135deg, #111 50%, var(--cyan) 100%);
  --bg-radial-1: rgba(234, 88, 12, 0.1);
  --bg-radial-2: rgba(249, 115, 22, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  background-image: 
    radial-gradient(circle at 10% 20%, var(--bg-radial-1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, var(--bg-radial-2) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--glass-10);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--glass-20);
}

/* App Containers */
.app-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Navigation */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-panel);
  border-right: 1px solid var(--border-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition-normal);
  overflow-y: auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding: 0 0.5rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--text-main);
}

.logo-text h1 {
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.7rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-top: 1px;
}

/* Nav Menu */
.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.nav-item {
  width: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-link svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--glass-3);
}

.nav-link:hover svg {
  transform: translateX(3px);
}

.nav-item.active .nav-link {
  color: var(--text-main);
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--border-active);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.nav-item.active .nav-link svg {
  stroke: var(--cyan);
  color: var(--cyan);
}

/* Sidebar Footer (Profile / Controls) */
.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-5);
}

.footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  background: var(--glass-2);
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.footer-btn:hover {
  background: var(--glass-5);
  border-color: var(--border-active);
}

.footer-btn svg {
  width: 16px;
  height: 16px;
}

.footer-btn.btn-reset {
  color: var(--rose);
  border-color: rgba(239, 68, 68, 0.2);
}

.footer-btn.btn-reset:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--rose);
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  min-height: 100vh;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: margin-left var(--transition-normal);
}

/* Top Navigation Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-title h2 {
  font-family: var(--font-header);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--section-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top-bar-title p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.top-bar-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.control-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border-glow);
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.control-btn:hover {
  background: var(--glass-6);
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.control-btn svg {
  width: 18px;
  height: 18px;
}

.control-btn-primary {
  background: linear-gradient(135deg, var(--indigo), rgba(99, 102, 241, 0.7));
  border: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.control-btn-primary:hover {
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}

/* Glassmorphic Panel Wrapper */
.app-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.app-panel.active {
  display: flex;
  animation: panelEntrance 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes panelEntrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.993);
    filter: brightness(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
}

/* PANEL: COVER DESIGN */
.cover-hero {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 2rem 0;
}

.cover-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 20px;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.cover-hero-content {
  flex: 1;
}

.cover-hero-content h1 {
  font-family: var(--font-header);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  background: var(--progress-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.cover-hero-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.cover-visual {
  width: 320px;
  height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-circle-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--indigo-glow) 0%, transparent 70%);
  filter: blur(20px);
  animation: pulse 4s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 1; }
}

.cover-logo-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.5);
  border: 1px solid var(--glass-20);
  z-index: 2;
}

.cover-logo-icon svg {
  width: 64px;
  height: 64px;
  fill: var(--text-main);
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.cover-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--border-radius);
  padding: 1.8rem;
  transition: all var(--transition-fast);
}

.cover-card:hover {
  border-color: var(--indigo);
  transform: translateY(-3px);
  background: var(--glass-2);
}

.cover-card-icon {
  color: var(--cyan);
  margin-bottom: 1rem;
}

.cover-card-icon svg {
  width: 32px;
  height: 32px;
}

.cover-card h3 {
  font-family: var(--font-header);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cover-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* PANEL: DASHBOARD DESIGN */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.dashboard-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Score Cards */
.score-hud-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.score-hud-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.score-hud-card:hover {
  transform: translateY(-3px);
}

.score-hud-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
}

.hud-index {
  border-color: var(--indigo);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), inset 0 0 15px rgba(99, 102, 241, 0.1);
}
.hud-index::before { background: var(--indigo); }

.hud-level {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), inset 0 0 15px rgba(6, 182, 212, 0.1);
}
.hud-level::before { background: var(--cyan); }

.hud-progress {
  border-color: var(--teal);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.3), inset 0 0 15px rgba(20, 184, 166, 0.1);
}
.hud-progress::before { background: var(--teal); }

.hud-strategy {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3), inset 0 0 15px rgba(245, 158, 11, 0.1);
}
.hud-strategy::before { background: #f59e0b; }

.hud-operation {
  border-color: #8b5cf6;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), inset 0 0 15px rgba(139, 92, 246, 0.1);
}
.hud-operation::before { background: #8b5cf6; }

.hud-innovation {
  border-color: #ec4899;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.3), inset 0 0 15px rgba(236, 72, 153, 0.1);
}
.hud-innovation::before { background: #ec4899; }

/* Macro Mini Bar Charts */
.macro-bar-container {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.macro-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.macro-bar-label {
  width: 180px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.macro-bar-track {
  flex-grow: 1;
  height: 6px;
  background: var(--glass-10);
  border-radius: 3px;
  overflow: hidden;
}
.macro-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.macro-bar-value {
  width: 25px;
  text-align: right;
  font-weight: 700;
  color: var(--text-main);
}

/* Macro Bar Chart Fill Colors */
.hud-strategy .macro-bar-fill { background: #f59e0b; }
.hud-operation .macro-bar-fill { background: #8b5cf6; }
.hud-innovation .macro-bar-fill { background: #ec4899; }

/* Roadmap Grid Styles */
.roadmap-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.roadmap-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-10);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.roadmap-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--glass-20);
}
.roadmap-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.roadmap-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.3;
}
.roadmap-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}
.roadmap-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-status-completed { background: rgba(20, 184, 166, 0.2); color: var(--teal); border: 1px solid var(--teal); }
.badge-status-inprogress { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid #f59e0b; }
.badge-status-notstarted { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid #ef4444; }

.badge-timeline {
  background: rgba(99, 102, 241, 0.15);
  color: var(--indigo);
  border: 1px solid rgba(99, 102, 241, 0.5);
}

.roadmap-content {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.hud-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.hud-value {
  font-family: var(--font-header);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
}

.hud-value-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Circular Dashboard Charts */
.radial-progress-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.radial-svg {
  width: 60px;
  height: 60px;
  transform: rotate(-90deg);
}

.radial-bg {
  fill: none;
  stroke: var(--glass-5);
  stroke-width: 6;
}

.radial-bar {
  fill: none;
  stroke: var(--teal);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

/* Radar Chart Card */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 430px;
}

.radar-chart-svg {
  width: 320px;
  height: 320px;
}

.chart-card h3 {
  font-family: var(--font-header);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  align-self: flex-start;
}

.chart-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.legend-current { background: var(--indigo); border: 1px solid rgba(99, 102, 241, 0.8); }
.legend-target { background: transparent; border: 2px dashed var(--cyan); }

/* Table of Competencies & Gaps */
.dashboard-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--border-radius);
  padding: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dashboard-table-card h3 {
  font-family: var(--font-header);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

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

.assessment-table th {
  padding: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--glass-5);
}

.assessment-table td {
  padding: 1rem;
  font-size: 0.9rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--glass-3);
}

.assessment-table tr:last-child td {
  border-bottom: none;
}

.td-ka-name {
  font-weight: 600;
  color: var(--text-main);
  width: 25%;
}

.td-ka-frameworks {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  width: 35%;
}

.td-score-val {
  font-family: var(--font-header);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.td-level-label {
  font-size: 0.8rem;
  font-weight: 500;
}

.td-target-select select {
  background: var(--bg-panel);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-family: var(--font-header);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.td-target-select select:hover {
  border-color: var(--cyan);
}

.td-gap-val {
  font-family: var(--font-header);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.gap-negative { color: var(--rose); }
.gap-met { color: var(--teal); }

/* Outcome cards */
.outcome-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* PANEL: SELF-ASSESSMENT */
.assessment-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-2);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.filter-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-select-wrapper label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-select-wrapper select {
  background: var(--bg-panel);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
}

.progress-info {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
}

/* Assessment Card Items */
.questionnaire-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ka-group-header {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 2px solid var(--border-glow);
  padding-bottom: 0.5rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ka-group-frameworks {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.assessment-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--border-radius);
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: 50px 1fr;
  grid-template-rows: auto auto auto;
  gap: 0.75rem 1.5rem;
  transition: all var(--transition-fast);
}

.assessment-item .q-number { grid-column: 1; grid-row: 1; }
.assessment-item .q-text { grid-column: 2; grid-row: 1; align-self: center; }
.assessment-item .rubric-table { grid-column: 1 / -1; grid-row: 2; }
.assessment-item .notes-input { grid-column: 1 / -1; grid-row: 3; }

.assessment-item:hover {
  border-color: var(--glass-15);
  background: rgba(255, 255, 255, 0.01);
}

.q-number {
  font-family: var(--font-header);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--glass-15);
}

.q-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
}


/* Rubric Table */
.rubric-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--glass-8);
  margin-top: 0.75rem;
}

.rubric-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--glass-5);
  background: var(--glass-2);
}

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

.rubric-row:hover {
  background: var(--glass-6);
}

.rubric-row.rubric-selected {
  background: var(--glass-10);
  border-left: 3px solid var(--level-color);
}

.rubric-level-badge {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.rubric-level-label {
  min-width: 120px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.rubric-row.rubric-selected .rubric-level-label {
  color: var(--text-main);
}

.rubric-level-desc {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.rubric-row.rubric-selected .rubric-level-desc {
  color: var(--text-main);
}

/* Supporting notes */
.notes-input {
  width: 100%;
}

.notes-input textarea {
  width: 100%;
  height: 50px;
  background: var(--bg-panel);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  resize: none;
  transition: all var(--transition-fast);
}

.notes-input textarea:focus {
  border-color: var(--border-active);
  background: var(--bg-panel);
  height: 80px;
  outline: none;
}

/* PANEL: LEVEL DESCRIPTORS */
.descriptors-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.descriptors-ka-select {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.descriptors-ka-select h4 {
  font-family: var(--font-header);
  font-size: 1rem;
  color: var(--text-muted);
}

.ka-pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ka-pill {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--glass-2);
  border: 1px solid var(--border-glow);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ka-pill:hover {
  background: var(--glass-5);
  color: var(--text-main);
}

.ka-pill.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--border-active);
  color: var(--text-main);
}

.descriptor-anchors-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.descriptor-ka-title {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 2px solid var(--border-glow);
  padding-bottom: 0.5rem;
  margin-top: 1rem;
}

.descriptor-ka-frameworks {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.descriptor-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

.descriptor-level-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition-fast);
  min-height: 250px;
}

.descriptor-level-card.active-calibrated {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
  background: rgba(6, 182, 212, 0.02);
}

.desc-level-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-header);
  text-transform: uppercase;
  align-self: flex-start;
}

.lv-1 .desc-level-badge { background: rgba(239, 68, 68, 0.15); color: var(--rate-1); }
.lv-2 .desc-level-badge { background: rgba(245, 158, 11, 0.15); color: var(--rate-2); }
.lv-3 .desc-level-badge { background: rgba(234, 179, 8, 0.15); color: var(--rate-3); }
.lv-4 .desc-level-badge { background: rgba(16, 185, 129, 0.15); color: var(--rate-4); }
.lv-5 .desc-level-badge { background: rgba(6, 182, 212, 0.15); color: var(--rate-5); }

.desc-level-title {
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 600;
}

.desc-level-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.descriptor-level-card.active-calibrated .desc-level-text {
  color: var(--text-main);
}

/* PANEL: DEVELOPMENT ACTION PLAN */
.plan-intro-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--border-radius);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.plan-intro-card svg {
  width: 48px;
  height: 48px;
  color: var(--yellow);
}

.plan-intro-text h3 {
  font-family: var(--font-header);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.plan-intro-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.action-plan-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.plan-ka-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all var(--transition-fast);
}

.plan-ka-card.has-gap {
  border-left: 4px solid var(--yellow);
}

.plan-ka-card.no-gap {
  border-left: 4px solid var(--teal);
  opacity: 0.7;
}

.plan-ka-card:hover {
  opacity: 1;
}

.plan-ka-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.plan-ka-title h3 {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 700;
}

.plan-ka-title p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.plan-ka-metrics {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.plan-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plan-metric-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
}

.plan-metric-val {
  font-family: var(--font-header);
  font-size: 1.2rem;
  font-weight: 800;
}

.plan-gap-pill {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-header);
}

.plan-gap-pill.gap-positive {
  background: rgba(245, 158, 11, 0.15);
  color: var(--yellow);
}

.plan-gap-pill.gap-met {
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal);
}

.plan-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--glass-5);
  padding-top: 1.5rem;
}

.plan-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-field-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
}

.plan-static-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-glow);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-main);
}

.plan-static-box a {
  color: var(--cyan);
  text-decoration: none;
}

.plan-static-box a:hover {
  text-decoration: underline;
}

.plan-input-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.plan-field-group input, .plan-field-group select {
  background: var(--bg-panel);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.plan-field-group input:focus, .plan-field-group select:focus {
  border-color: var(--cyan);
  outline: none;
}

.plan-status-select select {
  font-weight: 600;
}

.status-not-started { color: var(--rose) !important; }
.status-in-progress { color: var(--yellow) !important; }
.status-completed { color: var(--teal) !important; }

/* MODAL DESIGN */
.app-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.app-modal {
  background: var(--bg-panel);
  border: 1px solid var(--border-active);
  border-radius: 20px;
  width: 500px;
  max-width: 90%;
  padding: 2.5rem;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: modalIn var(--transition-normal);
}

@keyframes modalIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header h3 {
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: 700;
}

.modal-body {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.modal-body select, .modal-body input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  margin-top: 0.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.modal-btn {
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-btn-cancel {
  background: var(--glass-5);
  color: var(--text-main);
  border: 1px solid var(--border-glow);
}

.modal-btn-cancel:hover {
  background: var(--glass-10);
}

.modal-btn-action {
  background: var(--indigo);
  color: var(--text-main);
}

.modal-btn-action:hover {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .assessment-item {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
  }
  .q-number { grid-row: 1; grid-column: 1; }
  .q-text { grid-row: 1; grid-column: 2; }
  .rating-selector { grid-row: 2; grid-column: 1 / span 2; justify-content: flex-start; margin-top: 0.5rem; }
  .notes-input { grid-row: 3; grid-column: 1 / span 2; }
}

@media (max-width: 900px) {
  body {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border-glow);
  }
  
  .logo-container {
    margin-bottom: 1.5rem;
    justify-content: center;
  }
  
  .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
  
  .nav-link {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .sidebar-profile {
    margin: 1.25rem 0 0.5rem 0;
    width: 100%;
  }
  
  .sidebar-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.25rem;
    border-top: 1px dashed var(--glass-8);
    padding-top: 1.25rem;
  }
  
  .footer-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    font-size: 0.78rem;
    padding: 0.55rem 0.85rem;
  }
  
  .main-content {
    margin-left: 0;
    padding: 2rem 1.5rem;
  }
  
  .descriptor-grid {
    grid-template-columns: 1fr;
  }
  
  .plan-form-grid {
    grid-template-columns: 1fr;
  }
  
  .score-hud-container {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  
  .cover-hero {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .cover-visual {
    width: 240px;
    height: 240px;
    margin: 0 auto;
  }
  
  .cover-logo-icon {
    width: 100px;
    height: 100px;
  }
  
  .cover-grid {
    grid-template-columns: 1fr;
  }
  
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  
  .top-bar-controls {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .top-bar-sync-indicator {
    width: auto;
  }
}

@media (max-width: 600px) {
  .logo-text h1 {
    font-size: 1.2rem;
  }
  
  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
  }
  
  .sidebar-profile {
    padding: 0.75rem;
  }
  
  .profile-name {
    font-size: 0.78rem;
  }
  
  .profile-status {
    font-size: 0.65rem;
  }
  
  .main-content {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }
  
  .top-bar-title h2 {
    font-size: 1.4rem;
  }
  
  .top-bar-title p {
    font-size: 0.8rem;
  }
  
  .top-bar-controls button {
    flex-grow: 1;
    font-size: 0.78rem;
    padding: 0.55rem 0.85rem;
    justify-content: center;
  }
  
  .top-bar-sync-indicator {
    width: 100%;
    justify-content: center;
  }
  
  .cover-hero-content h1 {
    font-size: 2rem;
  }
  
  .cover-hero-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  
  .cover-visual {
    width: 180px;
    height: 180px;
  }
  
  .cover-logo-icon {
    width: 80px;
    height: 80px;
  }
  
  .cover-card {
    padding: 1.5rem 1.25rem;
  }
  
  .score-hud-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .score-hud-card {
    padding: 1.25rem;
  }
  
  .dashboard-table-card,
  .chart-card {
    padding: 1.25rem 1rem;
  }
  
  .radar-chart-svg {
    width: 100%;
    max-width: 280px;
    height: auto;
  }
  
  .assessment-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .filter-select-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  
  .progress-info {
    text-align: center;
    font-size: 0.8rem;
  }
  
  .notes-input textarea {
    padding: 0.6rem !important;
    font-size: 0.8rem !important;
  }
  
  .plan-ka-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .plan-ka-metrics {
    width: 100%;
    justify-content: space-between;
  }
  
  .plan-ladder-step {
    padding: 0.85rem 1rem;
  }
  
  .plan-ladder-outcome-block {
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
  }
  
  .plan-ladder-evidence-box {
    padding: 0.6rem 0.75rem;
  }
  
  .auth-card {
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
  }
  
  .auth-header h2 {
    font-size: 1.2rem;
  }
}

/* PRINT MEDIA OPTIMIZATIONS (For Board Report PDFs) */
/* PRINT MEDIA OPTIMIZATIONS (For Full Graphics Score Dashboard) */
@media print {
  /* Force exact colors so backgrounds, SVG, and neon borders print correctly */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  /* Keep the dark body background to preserve full graphics feel */
  body {
    background: #0B1120 !important;
    color: #f8fafc !important;
    background-image: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 20%), 
                      radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 20%) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Hide navigation, controls, and overlays */
  .sidebar, .top-bar, .modal-overlay, #radar-tooltip {
    display: none !important;
  }

  /* Main content should take full width */
  .main-content {
    margin-left: 0 !important;
    padding: 10mm !important;
    width: 100% !important;
  }

  /* Hide ALL app panels by default */
  .app-panel {
    display: none !important;
  }

  /* ONLY show the dashboard panel */
  #panel-dashboard {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    transform: none !important;
    padding: 0 !important;
  }

  /* Prevent page breaks inside important dashboard components */
  .score-hud-container, .profile-setup-card, .dashboard-grid {
    page-break-inside: avoid !important;
  }
  
  /* Make sure the grid fits A4 portrait */
  .dashboard-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  
  .dashboard-left, .dashboard-right {
    width: 100% !important;
  }
  
  /* Resize radar chart svg slightly to guarantee it fits on paper */
  #radar-svg {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* MATURITY LADDER STYLES */
.plan-ladder-section {
  margin-top: 1.5rem;
  border-top: 1px dashed var(--glass-8);
  padding-top: 1.5rem;
  width: 100%;
}

.plan-ladder-section h4 {
  font-family: var(--font-header);
  font-size: 1.05rem;
  color: var(--cyan);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.5px;
}

.plan-ladder-steps {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  padding-left: 2rem;
  margin-top: 0.5rem;
}

.plan-ladder-steps::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 2px;
  height: calc(100% - 20px);
  background: linear-gradient(to bottom, var(--indigo), var(--cyan));
  opacity: 0.3;
}

.plan-ladder-step {
  position: relative;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--glass-3);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.plan-ladder-step:hover {
  border-color: var(--border-active);
  background: var(--glass-3);
  transform: translateX(3px);
}

.plan-ladder-step::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--indigo);
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 8px var(--indigo-glow);
  transition: all var(--transition-fast);
}

.plan-ladder-step.active::before {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
  transform: scale(1.2);
}

.plan-ladder-step-title {
  font-family: var(--font-header);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.plan-ladder-step-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.plan-ladder-met {
  background: rgba(20, 184, 166, 0.06);
  border: 1px solid rgba(20, 184, 166, 0.2);
  padding: 1.25rem;
  border-radius: 12px;
  color: var(--text-main);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.45;
}

.plan-ladder-met svg {
  width: 24px;
  height: 24px;
  color: var(--teal);
  flex-shrink: 0;
}

.plan-ladder-unrated {
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--glass-10);
  padding: 1.5rem;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

/* PREMIUM COMPETENCY CLIMB LADDER ELEMENTS */
.plan-ladder-step-outcomes {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-ladder-outcome-block {
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  transition: all var(--transition-fast) ease-in-out;
}

.plan-ladder-outcome-block:hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(0, 245, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.plan-ladder-outcome-title {
  font-family: var(--font-header);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.3px;
}

.plan-ladder-criteria-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 1rem 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.plan-ladder-criteria-item {
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.45;
  padding-left: 1.4rem;
  position: relative;
}

.plan-ladder-criteria-item::before {
  content: "⚡";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.72rem;
  color: var(--cyan);
  opacity: 0.85;
}

.plan-ladder-evidence-box {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-top: 0.75rem;
  transition: all var(--transition-fast);
}

.plan-ladder-outcome-block:hover .plan-ladder-evidence-box {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

.plan-ladder-evidence-header {
  font-family: var(--font-header);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.plan-ladder-evidence-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.plan-ladder-evidence-text:last-child {
  margin-bottom: 0;
}

.plan-ladder-evidence-text::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 1rem;
  color: var(--indigo);
}

/* SIDEBAR PROFILE WIDGET STYLES */
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--glass-3);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 1.25rem;
  position: relative;
  transition: all var(--transition-fast);
}

.sidebar-profile:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--glass-8);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass-5);
  border: 1px solid var(--glass-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.sidebar-profile:hover .profile-avatar {
  color: var(--cyan);
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.15);
}

.profile-avatar svg {
  width: 16px;
  height: 16px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0; /* truncate text if needed */
  flex-grow: 1;
}

.profile-name {
  font-family: var(--font-header);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-status {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-login-btn,
.profile-logout-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.profile-login-btn:hover {
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.08);
}

.profile-logout-btn:hover {
  color: var(--rose);
  background: rgba(244, 63, 94, 0.08);
}

.profile-login-btn svg,
.profile-logout-btn svg {
  width: 16px;
  height: 16px;
}


/* TOP BAR SYNC STATE BADGE */
.top-bar-sync-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-2);
  border: 1px solid var(--glass-5);
  border-radius: 20px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.top-bar-sync-indicator:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-10);
  transform: translateY(-1px);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px currentColor;
}

.dot-offline {
  background: var(--text-muted);
  color: var(--glass-20);
}

.dot-syncing {
  background: var(--indigo);
  color: var(--indigo-glow);
  animation: sync-pulse 1.2s infinite ease-in-out;
}

.dot-online {
  background: var(--teal);
  color: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

.sync-text {
  font-family: var(--font-header);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
}

@keyframes sync-pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}


/* FULL SCREEN AUTH OVERLAY SCREEN */
.auth-overlay-container {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-panel);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fade-in-overlay 0.3s ease-out;
}

@keyframes fade-in-overlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(20, 25, 38, 0.75);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px var(--glass-2);
  animation: slide-up-card 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-up-card {
  from { transform: translateY(30px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.auth-close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.auth-close-btn:hover {
  color: var(--text-main);
  background: var(--glass-5);
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo {
  width: 48px;
  height: 48px;
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.08);
}

.auth-logo svg {
  width: 24px;
  height: 24px;
}

.auth-header h2 {
  font-family: var(--font-header);
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 0.45rem;
  letter-spacing: 0.3px;
}

.auth-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-tab:hover {
  color: var(--text-main);
}

.auth-tab.active {
  color: var(--text-main);
  border-color: var(--cyan);
}

.input-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.3;
}

.password-toggle-btn:hover {
  color: var(--text-main);
}

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

.auth-btn.btn-primary:hover {
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.auth-btn.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: color var(--transition-fast);
}

.auth-btn.btn-link:hover {
  color: var(--text-main);
}

.setup-guide-content {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 1rem;
}

.setup-guide-content li {
  margin-bottom: 0.5rem;
}

.setup-guide-content li:last-child {
  margin-bottom: 0;
}

.setup-guide-content code {
  background: var(--glass-8);
  color: var(--cyan);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: Courier, monospace;
}

/* ==========================================================================
   PREMIUM HIGH-FIDELITY CSS ANIMATION ENGINE
   ========================================================================== */

/* 1. Self-Assessment Item Staggered Reveal */
.assessment-item {
  animation: itemReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(min(var(--item-index, 0) * 0.012s, 0.25s));
}

@keyframes itemReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. Rating Button Elastic Pop Feedback */
.rating-btn:active {
  transform: scale(0.82) !important;
  transition: transform 0.08s ease-out;
}

.rating-btn.selected {
  animation: ratePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes ratePop {
  0% { transform: scale(1.0); }
  50% { transform: scale(1.28); }
  100% { transform: scale(1.0); }
}

/* 3. Score HUD Cards Entrance and Neon Breathing Glow */
.score-hud-card {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
  animation: hudReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.score-hud-card:nth-child(1) { animation-delay: 0.05s; }
.score-hud-card:nth-child(2) { animation-delay: 0.12s; }
.score-hud-card:nth-child(3) { animation-delay: 0.2s; }

.score-hud-card:hover {
  transform: translateY(-2px);
}

.hud-index {
  animation: hudReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both, neonBreatheIndigo 6s infinite alternate ease-in-out;
}
.hud-level {
  animation: hudReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both, neonBreatheCyan 6s infinite alternate ease-in-out;
}
.hud-progress {
  animation: hudReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.20s both, neonBreatheTeal 6s infinite alternate ease-in-out;
}

@keyframes hudReveal {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes neonBreatheIndigo {
  0% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 5px rgba(99, 102, 241, 0.04);
    border-color: var(--border-glow);
  }
  100% {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.08), inset 0 0 12px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.25);
  }
}
@keyframes neonBreatheCyan {
  0% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 5px rgba(6, 182, 212, 0.04);
    border-color: var(--border-glow);
  }
  100% {
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.08), inset 0 0 12px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.25);
  }
}
@keyframes neonBreatheTeal {
  0% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 5px rgba(20, 184, 166, 0.04);
    border-color: var(--border-glow);
  }
  100% {
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.08), inset 0 0 12px rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.25);
  }
}

/* 4. Score Dashboard Sub-Cards Reveal */
.dashboard-table-card {
  animation: panelSubReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
.chart-card {
  animation: panelSubReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

@keyframes panelSubReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 5. SVG Radar Chart Dynamic Draw-In */
.radar-grid-circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: radarGridDraw 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--grid-index) * 0.08s);
}

@keyframes radarGridDraw {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.radar-axis-spoke {
  transform-box: fill-box;
  transform-origin: center;
  animation: radarSpokeDraw 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--spoke-index) * 0.04s + 0.3s);
}

@keyframes radarSpokeDraw {
  from {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    opacity: 0;
  }
  to {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.radar-poly-current {
  transform-box: fill-box;
  transform-origin: center;
  animation: radarPolyDraw 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.6s;
}

.radar-poly-target {
  transform-box: fill-box;
  transform-origin: center;
  animation: radarPolyDraw 1.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.75s;
}

@keyframes radarPolyDraw {
  from {
    transform: scale(0.1);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.radar-node-point {
  transform-box: fill-box;
  transform-origin: center;
  animation: radarNodeDraw 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--node-index) * 0.03s + 1s);
}

@keyframes radarNodeDraw {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 6. Developmental Knowledge Area Action Cards */
.plan-ka-card {
  animation: cardEntrance 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(min(var(--card-index, 0) * 0.08s, 0.4s));
  transition: all var(--transition-fast), transform var(--transition-normal);
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 7. Developmental Ladder Steps Sequential Reveal */
.plan-ladder-step {
  animation: ladderStepReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--step-index, 0) * 0.12s + 0.1s);
  transition: all var(--transition-fast), transform var(--transition-normal);
}

@keyframes ladderStepReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 8. Outcome Resources & YouTube Buttons styling */
.plan-ladder-resources {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.resources-title {
  font-family: var(--font-header);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.resources-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.resource-link-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.76rem;
  font-family: var(--font-body);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.resource-link-btn.learn-btn {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}

.resource-link-btn.learn-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--indigo);
  color: var(--text-main);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

.resource-link-btn.exam-btn {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: #8ae4f2;
}

.resource-link-btn.exam-btn:hover {
  background: rgba(6, 182, 212, 0.16);
  border-color: var(--cyan);
  color: var(--text-main);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
  transform: translateY(-1px);
}

/* 6. Interactive Radar Chart Tooltip */
.radar-tooltip {
  position: fixed;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glow);
  padding: 0.8rem 1.2rem;
  border-radius: var(--border-radius);
  color: var(--text-light);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.1s ease;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -10px);
}
.radar-tooltip.show {
  opacity: 1;
  transform: translate(-50%, 10px);
}
.radar-tooltip-title {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}
.radar-tooltip-score {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--indigo);
}
.radar-tooltip-score.target {
  color: var(--cyan);
}
.radar-node-point, .radar-node-target, .radar-axis-text {
  cursor: pointer;
  transition: r 0.2s ease, fill 0.2s ease, font-size 0.2s ease, stroke-width 0.2s ease;
}
.radar-node-point:hover {
  r: 6;
  fill: var(--text-main);
  stroke-width: 2;
}
.radar-node-target:hover {
  r: 6;
  fill: var(--text-main);
  stroke: var(--cyan);
  stroke-width: 2;
}
.radar-axis-text:hover {
  fill: var(--text-main);
  font-weight: 800;
}

/* 7. Personal Profile Details Form */
.profile-setup-card {
  background: var(--bg-card);
  border: 2px solid var(--indigo);
  border-radius: var(--border-radius);
  padding: 3rem;
  margin: 0 2rem 3rem 2rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), inset 0 0 15px rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
}

.profile-setup-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
}

.profile-setup-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.profile-form-grid .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.profile-form-grid label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-form-grid input {
  background: var(--glass-5);
  border: 1px solid var(--glass-20);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.profile-form-grid input:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--glass-10);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.profile-form-grid .readonly-field {
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed var(--glass-15);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  color: var(--cyan);
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  cursor: default;
}




/* CIO PLAYBOOK STYLES */
.playbook-container {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  min-height: 700px;
}

.playbook-sidebar {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  position: relative;
  z-index: 100;
}

.playbook-ka-btn {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: var(--surface-1);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  font-size: 0.9rem;
  position: relative;
  z-index: 101;
  pointer-events: auto;
}

.playbook-ka-btn:hover {
  background: var(--surface-2);
  border-color: var(--cyan);
}

.playbook-ka-btn.active {
  background: var(--glass-surface);
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
  color: var(--cyan);
  font-weight: 600;
}

.playbook-content {
  flex: 1;
  width: calc(100% - 270px);
  background: var(--surface-1);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  padding: 2rem;
  overflow-y: auto;
  position: relative;
}

.playbook-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
}

.playbook-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.playbook-card {
  background: rgba(18, 25, 43, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.playbook-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.playbook-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 238, 255, 0.1);
  border-color: rgba(0, 238, 255, 0.2);
}

.playbook-card:hover::before {
  opacity: 1;
}

.playbook-card h3 {
  color: var(--cyan);
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 238, 255, 0.3);
}

.playbook-list {
  padding-left: 0;
  list-style: none;
}

.playbook-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  line-height: 1.6;
  transition: color 0.2s ease;
}

.playbook-list li:hover {
  color: var(--text-main);
}

.playbook-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: bold;
}

.playbook-card h3 svg {
  width: 20px;
  height: 20px;
}

.persona-box {
  border-left: 3px solid var(--primary-accent);
  padding-left: 1rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.6;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.skill-pill {
  background: var(--surface-1);
  border: 1px solid var(--border-light);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-main);
}

.skill-pill strong {
  color: var(--cyan);
  display: block;
  margin-bottom: 0.25rem;
}

.rel-group {
  margin-bottom: 1.5rem;
}

.rel-group:last-child {
  margin-bottom: 0;
}

.rel-group h4 {
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.rel-item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  line-height: 1.5;
  font-size: 0.95rem;
}

.rel-item::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.playbook-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--text-main);
  background: var(--primary-accent);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.playbook-link:hover {
  background: var(--hover-accent);
}

.playbook-main-tab {
  padding: 0.5rem 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-header);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px; /* Pull down to overlap the border */
}

.playbook-main-tab:hover {
  color: var(--text-main);
}

.playbook-main-tab.active {
  border-bottom: 2px solid var(--cyan);
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 238, 255, 0.3);
}

.playbook-sub-tab {
  padding: 0.3rem 1rem;
  color: var(--text-main);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: rgba(0,0,0,0.2);
}

.playbook-sub-tab:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

.playbook-sub-tab.active {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-glow));
  color: var(--bg-dark);
  border-color: transparent;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(0, 238, 255, 0.3);
}

.playbook-link {
  color: var(--indigo-glow);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  transition: all 0.2s ease;
}

.playbook-link:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: translateX(3px);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.info-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.info-block:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 238, 255, 0.2);
  transform: translateX(4px);
}

.info-block.url-block {
  background: transparent;
  border: none;
  padding: 0;
}

.info-block-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.info-icon {
  font-size: 1.2rem;
}

.info-title {
  color: var(--cyan);
  font-family: var(--font-header);
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.info-content {
  color: var(--text-main);
  line-height: 1.6;
  font-size: 0.95rem;
}

.section-divider {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  color: var(--indigo-glow);
  font-family: var(--font-header);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.level-header {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--cyan);
  font-family: var(--font-header);
  font-size: 1.4rem;
  text-shadow: 0 0 10px rgba(0, 238, 255, 0.2);
}

.standard-text {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}


/* Mermaid Interactions and Styling */
.mermaid {
  overflow-x: auto;
  padding: 1rem;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
}

.mermaid .node rect, .mermaid .node circle, .mermaid .node ellipse, .mermaid .node polygon {
  fill: rgba(18, 25, 43, 0.8) !important;
  stroke: var(--cyan) !important;
  stroke-width: 2px !important;
  transition: all 0.3s ease;
  rx: 8px !important;
  ry: 8px !important;
}

.mermaid .node:hover rect, .mermaid .node:hover circle, .mermaid .node:hover ellipse, .mermaid .node:hover polygon {
  fill: rgba(0, 238, 255, 0.1) !important;
  stroke: #fff !important;
  filter: drop-shadow(0 0 10px rgba(0,238,255,0.5));
  transform: translateY(-3px);
}

.mermaid .node .label {
  color: var(--text-main) !important;
  font-family: var(--font-main) !important;
  font-size: 14px !important;
}

.mermaid .node .label i {
  color: rgba(255,255,255,0.7) !important;
  font-size: 12px !important;
  display: block;
  margin-top: 4px;
}

.mermaid .edgePath .path {
  stroke: rgba(255,255,255,0.2) !important;
  stroke-width: 2px !important;
  transition: all 0.3s ease;
}

.mermaid .edgePath:hover .path {
  stroke: var(--cyan) !important;
  stroke-width: 3px !important;
}

.mermaid .marker {
  fill: rgba(255,255,255,0.2) !important;
}

.mermaid .edgePath:hover .marker {
  fill: var(--cyan) !important;
}
.mermaid .node .label {
  font-size: 16px !important;
  line-height: 1.4 !important;
}

.mermaid .node .label, 
.mermaid .node .label foreignObject div,
.mermaid .nodeLabel,
.mermaid span.nodeLabel,
.mermaid div.nodeLabel,
.mermaid .node p,
.mermaid .node span {
  color: #3399ff !important;
  fill: #3399ff !important;
  font-family: var(--font-main) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
}

/* =========================================
   CUSTOM EXECUTIVE REPORT EXPORT STYLES
   ========================================= */
#report-export-container {
  /* Document defaults */
  width: 1000px; /* Fixed width for consistent html2canvas rendering */
  background: #ffffff;
  color: #0f172a;
  font-family: 'Inter', system-ui, sans-serif;
  padding: 50px;
  box-sizing: border-box;
}

/* Header */
.report-header {
  display: flex;
  align-items: center;
  border-bottom: 3px solid #1e293b;
  padding-bottom: 25px;
  margin-bottom: 35px;
}

.report-logo {
  width: 50px;
  height: 50px;
  background: #1e293b;
  color: var(--text-main);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.report-logo svg {
  width: 30px;
  height: 30px;
}

.report-title-block h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  color: #0f172a;
  margin: 0 0 5px 0;
  letter-spacing: -0.5px;
}

.report-title-block p {
  color: #64748b;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.report-date {
  margin-left: auto;
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 500;
  background: #f1f5f9;
  padding: 8px 16px;
  border-radius: 20px;
}

/* Grid Layouts */
.report-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

/* Cards */
.report-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.report-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

/* Profile Grid */
.report-profile-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rpg-item label {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.rpg-item div {
  font-size: 1.05rem;
  color: #1e293b;
  font-weight: 500;
}

/* Score Grid */
.report-score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.rsg-label {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 8px;
}

.rsg-value {
  font-size: 2.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}

.rsg-progress-bar {
  background: #e2e8f0;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 10px;
}

.rsg-progress-fill {
  background: #3b82f6; /* Vibrant blue for progress */
  height: 100%;
  border-radius: 6px;
}

/* Chart Wrapper */
.report-chart-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.report-chart-wrapper svg {
  max-width: 700px;
  height: auto;
}

/* SVG Chart Overrides for Light Background in Report */
.report-chart-wrapper .radar-poly-bg { fill: #f8fafc !important; stroke: #000000 !important; stroke-width: 1.5 !important; }
.report-chart-wrapper .radar-grid-circle { stroke: #000000 !important; stroke-width: 1 !important; stroke-opacity: 0.5 !important; }
.report-chart-wrapper .radar-axis-spoke { stroke: #000000 !important; stroke-width: 1 !important; stroke-opacity: 0.5 !important; }
.report-chart-wrapper text { fill: #000000 !important; font-weight: 700 !important; font-family: 'Outfit', sans-serif !important; }
.report-chart-wrapper .radar-poly-current { fill: rgba(249, 115, 22, 0.25) !important; stroke: #ea580c !important; stroke-width: 3 !important; }
.report-chart-wrapper .radar-poly-target { fill: none !important; stroke: #000000 !important; stroke-dasharray: 4,4 !important; stroke-width: 2 !important; }
.report-chart-wrapper .radar-node-point { fill: #ea580c !important; stroke: #ffffff !important; stroke-width: 2 !important; }
.report-chart-wrapper .radar-node-target { fill: none !important; stroke: #000000 !important; stroke-width: 2 !important; }
  letter-spacing: 0.5px !important;
}

/* =========================================
   QUICK SCAN ASSESSMENT STYLES
   ========================================= */
.quickscan-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--glass-10);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.quickscan-card-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-10);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quickscan-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.quickscan-card-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0 0;
}

.quickscan-score-display {
  font-size: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--indigo);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.quickscan-levels-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.quickscan-level-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-10);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.quickscan-level-col:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-20);
  transform: translateY(-2px);
}

.quickscan-level-col.selected {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--indigo);
  box-shadow: 0 0 0 2px var(--indigo) inset;
}

.quickscan-lvl-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  text-align: center;
}

.quickscan-lvl-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
  flex-grow: 1;
}

.quickscan-level-col.selected .quickscan-lvl-num,
.quickscan-level-col.selected .quickscan-lvl-title {
  color: var(--indigo-light);
}

@media (max-width: 900px) {
  .quickscan-levels-grid {
    grid-template-columns: 1fr;
  }
  .quickscan-level-col {
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 1rem;
  }
  .quickscan-lvl-num {
    margin-bottom: 0;
    margin-right: 1rem;
    width: 30px;
  }
  .quickscan-lvl-title {
    text-align: left;
  }
}

.mermaid .node:hover .label, .mermaid .node:hover .label foreignObject div {
  color: var(--text-main) !important;
  fill: #ffffff !important;
}
