/* 
  =========================================
  SEVERANCE PATHWAY & SABBATICAL PLANNER
  Design System & Stylesheet
  =========================================
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Font Families */
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;

  /* Theme: Dark Mode (Default) */
  --bg-app: #0f172a;
  --bg-gradient: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%);
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: rgba(59, 130, 246, 0.15);
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);

  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --success-border: rgba(16, 185, 129, 0.2);

  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --warning-border: rgba(245, 158, 11, 0.2);

  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --danger-border: rgba(239, 68, 68, 0.2);

  --accent-blue: #0ea5e9;

  --input-bg: rgba(15, 23, 42, 0.5);
  --input-border: rgba(255, 255, 255, 0.1);
  --input-focus: #3b82f6;
  --input-focus-shadow: rgba(59, 130, 246, 0.35);

  --sidebar-width: 380px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-app: #f8fafc;
  --bg-gradient: radial-gradient(circle at top right, #f1f5f9 0%, #cbd5e1 100%);
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: rgba(15, 23, 42, 0.08);
  --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.08);
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #6d28d9 100%);

  --success: #059669;
  --success-bg: rgba(5, 150, 105, 0.08);
  --success-border: rgba(5, 150, 105, 0.15);

  --warning: #d97706;
  --warning-bg: rgba(217, 119, 6, 0.08);
  --warning-border: rgba(217, 119, 6, 0.15);

  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.08);
  --danger-border: rgba(220, 38, 38, 0.15);

  --input-bg: rgba(255, 255, 255, 0.9);
  --input-border: rgba(0, 0, 0, 0.1);
  --input-focus: #2563eb;
  --input-focus-shadow: rgba(37, 99, 235, 0.2);
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-app);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition-smooth);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--primary-hover);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-app);
}

::-webkit-scrollbar-thumb {
  background: var(--input-border);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

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

/* Navigation Header */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(17, 24, 39, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  transition: var(--transition-smooth);
}

[data-theme="light"] .app-header {
  background: rgba(255, 255, 255, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  -webkit-text-fill-color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

/* Layout Split */
.main-layout {
  display: flex;
  width: 100%;
  padding-top: 70px;
}

/* Left Sidebar (Inputs) */
.sidebar-inputs {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: calc(100vh - 70px);
  position: sticky;
  top: 70px;
  overflow-y: auto;
  border-right: 1px solid var(--card-border);
  padding: 2rem 1.5rem;
  background: rgba(17, 24, 39, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

[data-theme="light"] .sidebar-inputs {
  background: rgba(255, 255, 255, 0.2);
}

/* Right Dashboard */
.dashboard-content {
  flex-grow: 1;
  padding: 2rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
}

/* Inputs styling */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

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

.form-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label-info {
  font-weight: 400;
  color: var(--text-muted);
}

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

.input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.2rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px var(--input-focus-shadow);
}

/* Slider Design */
.range-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--input-border);
  outline: none;
  margin: 10px 0;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-gradient);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
  transition: var(--transition-smooth);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Navigation Link */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  background: var(--card-border);
  color: var(--primary);
  border-color: var(--primary);
}

/* Segmented Buttons for Risk Appetite */
.risk-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

.risk-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.6rem 0;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.risk-btn:hover {
  color: var(--text-primary);
}

.risk-btn.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
}

/* Expandable Options */
.accordion {
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(17, 24, 39, 0.1);
}

.accordion-header {
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  user-select: none;
  transition: var(--transition-smooth);
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.accordion-icon {
  transition: var(--transition-smooth);
}

.accordion.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.accordion.open .accordion-content {
  max-height: 1000px;
  padding: 0.5rem 1rem 1.25rem 1rem;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Premium Card Components */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
}

/* Hero Cards */
.hero-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.hero-card.theme-success::before {
  background: var(--success);
}

.hero-card.theme-warning::before {
  background: var(--warning);
}

.hero-card.theme-danger::before {
  background: var(--danger);
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .hero-layout {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero-text {
  flex-grow: 1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.hero-card.theme-success .status-badge {
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
}

.hero-card.theme-warning .status-badge {
  color: var(--warning);
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
}

.hero-card.theme-danger .status-badge {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1rem;
}

.hero-action {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-illustration {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.circle-progress {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.circle-progress-bg {
  fill: none;
  stroke: var(--input-border);
  stroke-width: 10;
}

.circle-progress-bar {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease-in-out;
}

.hero-card.theme-success .circle-progress-bar {
  stroke: var(--success);
}

.hero-card.theme-warning .circle-progress-bar {
  stroke: var(--warning);
}

.hero-card.theme-danger .circle-progress-bar {
  stroke: var(--danger);
}

.circle-value {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.circle-subtext {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

/* KPI Dashboard Widgets */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

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

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

.kpi-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.kpi-label i {
  color: var(--text-muted);
}

.kpi-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.kpi-trend {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.kpi-trend.positive {
  color: var(--success);
}

.kpi-trend.neutral {
  color: var(--warning);
}

.kpi-trend.negative {
  color: var(--danger);
}

/* Tab Structure */
.tab-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--input-border);
  gap: 2rem;
}

.tab-trigger {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 0.25rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.tab-trigger:hover {
  color: var(--text-primary);
}

.tab-trigger.active {
  color: var(--text-primary);
}

.tab-trigger.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gradient);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Visualization Content */
.chart-container {
  position: relative;
  width: 100%;
  height: 380px;
}

.portfolio-layout {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .portfolio-layout {
    grid-template-columns: 1fr;
  }
}

.portfolio-chart-wrapper {
  max-width: 320px;
  margin: 0 auto;
  width: 100%;
}

.portfolio-legend {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.legend-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--card-border);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.legend-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.legend-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
}

.legend-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* Financial Instrument Suggestions */
.recommendation-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.allocation-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .allocation-matrix {
    grid-template-columns: 1fr;
  }
}

.instrument-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  transition: var(--transition-smooth);
}

.instrument-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.instrument-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.instrument-badge {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.instrument-badge.cash {
  color: var(--accent-blue);
  background: rgba(14, 165, 233, 0.1);
}

.instrument-badge.debt {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
}

.instrument-badge.equity {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.instrument-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.instrument-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.instrument-options {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  border-top: 1px dashed var(--card-border);
  padding-top: 0.75rem;
}

.instrument-option-item {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.instrument-option-item i {
  color: var(--primary);
  font-size: 0.85rem;
}

/* Checklist and Action Items */
.checklist-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .checklist-container {
    grid-template-columns: 1fr;
  }
}

.checklist-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checklist-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--card-border);
  cursor: pointer;
  user-select: none;
  transition: var(--transition-smooth);
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
  flex-shrink: 0;
  color: transparent;
  font-size: 0.7rem;
  transition: var(--transition-smooth);
}

.checklist-item.checked .checkbox-custom {
  border-color: var(--success);
  background: var(--success);
  color: white;
}

.checklist-content {
  display: flex;
  flex-direction: column;
}

.checklist-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.checklist-item.checked .checklist-label {
  text-decoration: line-through;
  color: var(--text-muted);
}

.checklist-subtext {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* Strategy Advisory Box */
.strategy-box {
  background: var(--primary-light);
  border: 1px solid var(--input-focus-shadow);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
}

.strategy-icon {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.strategy-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.strategy-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.strategy-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Theme Toggle Button */
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  background: var(--primary-light);
  border-color: var(--input-focus);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Primary Button Action */
.btn-primary {
  background: var(--primary-gradient);
  color: white;
  border: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

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

/* Info modal layout */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  background: var(--bg-app);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.modal.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Tooltip custom icon */
.info-tooltip-trigger {
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.9rem;
}

.info-tooltip-trigger:hover {
  color: var(--primary);
}

/* Footer layout */
.footer-text {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--card-border);
  margin-top: 1rem;
}

/* Responsive breakpoint for layout stack */
@media (max-width: 900px) {
  .main-layout {
    flex-direction: column;
  }

  .sidebar-inputs {
    width: 100%;
    min-width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--card-border);
    padding: 1.5rem;
  }

  .dashboard-content {
    padding: 1.5rem;
  }
}