/* ==========================================================================
   DRIZA Proposal — Base Styles v8.0
   PromptWatch-inspired grid with bordered cards and inline nav.
   Requires: design-tokens.css
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-snap-type: y mandatory; overflow-y: scroll; scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text-primary); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* ========== SLIDE ========== */
.slide {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--bg);
  position: relative;
}

/* ========== PROGRESS BAR (opaque white track, blue fill) ========== */
#progress-track { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--card-bg); z-index: 10000; }
#progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--blue), #4FC3F7); width: 0%; z-index: 10001; transition: width 0.15s; }

/* ========== PDF EXPORT BUTTON ========== */
#pdf-btn { position: fixed; bottom: 24px; right: 24px; z-index: 200; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 8px; padding: 10px 18px; font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--text-secondary); cursor: pointer; box-shadow: var(--card-shadow); display: flex; align-items: center; gap: 6px; transition: all 0.15s; }
#pdf-btn:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-1px); }
#pdf-btn svg { width: 14px; height: 14px; }

/* ========== GLOBAL FIXED HEADER ========== */
#global-header {
  position: fixed;
  top: 3px;
  left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--slide-pad-x);
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  z-index: 9998;
}
#global-header img { height: 16px; opacity: 0.8; }
#global-header .header-client { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); }
#global-header .header-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }
#global-header .header-service { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-faint); }
#global-header .header-year { font-size: 10px; font-weight: 500; color: var(--text-faint); margin-left: auto; }

/* ========== PER-SLIDE HEADER (hidden by default when global exists) ========== */
.header-bar {
  height: var(--header-h);
  display: none; /* hidden when #global-header exists */
  align-items: center;
  gap: 16px;
  padding: 0 var(--slide-pad-x);
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  flex-shrink: 0;
  z-index: 10;
}

/* Slides need top padding to account for fixed header */
.slide { padding-top: calc(var(--header-h) + 3px); }
.header-bar img { height: 16px; opacity: 0.8; }
.header-client { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); }
.header-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }
.header-service { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-faint); }
.header-year { font-size: 10px; font-weight: 500; color: var(--text-faint); margin-left: auto; }

/* Dark header variant */
.header-bar--dark { background: transparent; border-bottom-color: rgba(255,255,255,0.1); }
.header-bar--dark .header-client,
.header-bar--dark .header-service,
.header-bar--dark .header-year { color: rgba(255,255,255,0.5); }
.header-bar--dark .header-sep { background: rgba(255,255,255,0.2); }

/* ========== SLIDE BODY ========== */
.slide-body {
  flex: 1;
  display: flex;
  padding: var(--slide-pad-y) var(--slide-pad-x);
  gap: 0;
  min-height: 0;
}

/* ========== CONTENT AREA ========== */
.slide-content {
  flex: 1;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* ========== NAV SIDEBAR (fixed right) ========== */
#global-nav {
  position: fixed;
  right: 0;
  top: calc(var(--header-h) + 3px);
  bottom: 0;
  width: var(--nav-w);
  border-left: 1px solid var(--card-border);
  padding: 16px 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--card-bg);
  z-index: 9997;
  overflow-y: auto;
}

/* Per-slide navs hidden when global exists */
.slide-nav { display: none; }

/* Body needs right margin for fixed nav */
body { margin-right: var(--nav-w); }
.slide-nav-title { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin-bottom: 8px; }
.nav-link { font-size: 11px; font-weight: 500; color: var(--text-muted); padding: 5px 10px; border-radius: 5px; text-decoration: none; transition: all 0.15s; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.nav-link:hover { background: #F3F4F6; color: var(--text-primary); }
.nav-link.active { background: #EEF2FF; color: var(--blue); font-weight: 600; }
.nav-link .nav-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; }
.nav-link.active .nav-dot { background: var(--blue); }
.nav-link--indent { padding-left: 23px; }
.nav-link--indent .nav-dot { width: 4px; height: 4px; }

/* ========== FOOTER (FIXED BOTTOM) ========== */
#global-footer {
  position: fixed;
  bottom: 0; left: 0;
  right: var(--nav-w);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--slide-pad-x);
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--divider);
  background: var(--card-bg);
  z-index: 9997;
}
#global-footer .page-num { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Per-slide footers hidden when global exists */
.slide-footer { display: none; }

/* Slides need bottom padding for fixed footer */
.slide { padding-bottom: 36px; }

/* ========== BREADCRUMB ========== */
.breadcrumb { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--blue); margin-bottom: 10px; }

/* ========== HEADLINE ========== */
.headline { font-family: var(--font-serif); font-size: 1.85rem; font-weight: 500; line-height: 1.3; margin-bottom: 20px; color: var(--text-primary); }

/* ========== CARD ========== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.card:hover { box-shadow: var(--card-shadow-hover); }
.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-header-title { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.card-body { padding: 20px; }
.card-body--flush { padding: 0; }

/* ========== KPI ROW ========== */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--divider);
}
.kpi-cell {
  padding: 16px 20px;
  border-right: 1px solid var(--divider);
}
.kpi-cell:last-child { border-right: none; }
.kpi-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.kpi-dot { width: 6px; height: 6px; border-radius: 50%; }
.kpi-value { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.kpi-change { font-size: 11px; font-weight: 600; margin-left: 6px; }
.kpi-change--up { color: var(--green); }
.kpi-change--down { color: var(--red); }

/* ========== DATA TABLE ========== */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead { background: var(--bg); }
.data-table th { text-align: left; padding: 10px 16px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 1px solid var(--divider); }
.data-table td { padding: 11px 16px; border-bottom: 1px solid var(--divider); color: var(--text-secondary); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #F9FAFB; }
.data-table .highlight-row { background: #EEF2FF; }
.data-table .highlight-row td { color: var(--text-primary); font-weight: 600; }
.badge { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.badge--green { background: #DCFCE7; color: #166534; }
.badge--red { background: #FEE2E2; color: #991B1B; }
.badge--gray { background: #F3F4F6; color: #6B7280; }
.badge--blue { background: #EEF2FF; color: var(--blue); }

/* ========== METRIC MINI CARDS ========== */
.metric-mini { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 8px; padding: 14px 16px; text-align: center; transition: all 0.15s; }
.metric-mini:hover { border-color: var(--blue); box-shadow: 0 2px 8px rgba(46,87,219,0.1); }
.metric-mini-value { font-size: 1.4rem; font-weight: 700; color: var(--blue); }
.metric-mini-label { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* ========== TWO-PANEL GRID ========== */
.two-panel { display: grid; grid-template-columns: 1fr 1fr; flex: 1; min-height: 0; }
.panel { padding: 0; display: flex; flex-direction: column; }
.panel + .panel { border-left: 1px solid var(--card-border); padding-left: 24px; }
.panel-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 12px; }

/* ========== THREE-PANEL GRID ========== */
.three-panel { display: grid; grid-template-columns: 1fr 1fr 1fr; flex: 1; min-height: 0; }
.three-panel .panel + .panel { border-left: 1px solid var(--card-border); padding-left: 24px; }

/* ========== BULLETS ========== */
.bullets { list-style: none; }
.bullets li { font-size: 14px; color: var(--text-secondary); padding: 5px 0 5px 14px; position: relative; line-height: 1.5; }
.bullets li::before { content: ''; position: absolute; left: 0; top: 11px; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.bullets li strong { color: var(--text-primary); font-weight: 600; }

/* ========== CALLOUT ========== */
.callout { background: #EEF2FF; border-left: 3px solid var(--blue); padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-top: 16px; transition: all 0.15s; }
.callout:hover { background: #E0E7FF; }
.callout strong { color: var(--blue); }

/* ========== ANNOTATION ========== */
.annotation { color: var(--red); font-style: italic; font-size: 11px; padding-left: 10px; border-left: 2px solid var(--red); margin-top: 12px; }

/* ========== NUMBERED CARDS ========== */
.numbered-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.numbered-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px 20px; transition: all 0.15s; }
.numbered-card:hover { border-color: var(--blue); box-shadow: var(--card-shadow-hover); }
.numbered-card-num { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.numbered-card-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.numbered-card-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.5; }

/* ========== CTA ========== */
.cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: white; font-family: var(--font-sans); font-size: 14px; font-weight: 600; padding: 14px 36px; border-radius: 8px; text-decoration: none; border: none; cursor: pointer; transition: all 0.15s; box-shadow: 0 2px 8px rgba(46,87,219,0.2); }
.cta-btn:hover { background: var(--blue-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(46,87,219,0.3); }

/* ========== GANTT ========== */
.gantt-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.gantt-table th { padding: 8px 4px; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; color: var(--text-muted); background: var(--bg); border-bottom: 1px solid var(--divider); text-align: center; white-space: nowrap; }
.gantt-table th:first-child { text-align: left; min-width: 140px; padding-left: 12px; }
.gantt-table td { padding: 7px 3px; border-bottom: 1px solid var(--divider); text-align: center; font-size: 9px; }
.gantt-table td:first-child { text-align: left; font-weight: 500; font-size: 11px; padding-left: 12px; }
.gantt-table tbody tr:hover { background: #F9FAFB; }
.gantt-cell--blue { background: rgba(46,87,219,0.12); color: var(--blue); font-weight: 600; }
.gantt-cell--green { background: rgba(34,197,94,0.12); color: #16a34a; font-weight: 600; }
.gantt-cell--red { background: rgba(232,74,63,0.12); color: var(--red); font-weight: 600; }
.gantt-cell--purple { background: rgba(147,51,234,0.12); color: var(--purple); font-weight: 600; }
.gantt-cell--orange { background: rgba(249,115,22,0.12); color: var(--orange); font-weight: 600; }
.gantt-row-subtotal { font-weight: 700; border-top: 2px solid var(--card-border); background: var(--bg); }
.gantt-row-subtotal td { font-weight: 700; }
.gantt-row-iva td { color: var(--text-muted); font-size: 9px; }
.gantt-row-total td { font-weight: 700; font-size: 11px; }
.gantt-row-total td:last-child { color: var(--blue); font-size: 13px; }
.gantt-bar { height: 22px; border-radius: 4px; min-width: 100%; }
.gantt-bar--blue { background: var(--blue); }
.gantt-bar--green { background: var(--green); }
.gantt-bar--red { background: var(--red); }
.gantt-bar--purple { background: var(--purple); }
.gantt-bar--orange { background: var(--orange); }

/* ========== PRICING 80/20 ========== */
.pricing-layout { display: grid; grid-template-columns: 4fr 1fr; gap: 20px; }
.sidebar-note { padding: 14px; border-radius: 8px; font-size: 11px; line-height: 1.4; margin-bottom: 12px; }
.sidebar-note strong { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 3px; }
.sidebar-note p { margin: 0; color: var(--text-secondary); }
.sidebar-note--blue { background: rgba(46,87,219,0.06); border-left: 3px solid var(--blue); }
.sidebar-note--blue strong { color: var(--blue); }
.sidebar-note--yellow { background: rgba(234,179,8,0.08); border-left: 3px solid #eab308; }
.sidebar-note--yellow strong { color: #a16207; }
.sidebar-note--green { background: rgba(34,197,94,0.08); border-left: 3px solid var(--green); }
.sidebar-note--green strong { color: #16a34a; }

/* ========== SCENARIOS ========== */
.scenarios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.scenario-box { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; }
.scenario-box--a { border-top: 3px solid var(--text-muted); }
.scenario-box--b { border-top: 3px solid var(--blue); }
.scenario-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.scenario-box--a .scenario-title { color: var(--text-secondary); }
.scenario-box--b .scenario-title { color: var(--blue); }
.scenario-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ========== COVER (creative, full bleed) ========== */
.slide-cover {
  background: var(--cover-bg);
  padding-top: 0; /* override fixed-header padding */
  overflow: hidden;
}
.slide-cover::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 70vw; height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,87,219,0.07) 0%, rgba(46,87,219,0.02) 50%, transparent 70%);
  pointer-events: none;
}
.slide-cover::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -15%;
  width: 50vw; height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,74,63,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.slide-cover .slide-body { flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 var(--slide-pad-x); position: relative; z-index: 1; }
.cover-logo { position: absolute; top: 40px; left: var(--slide-pad-x); z-index: 2; }
.cover-logo img { height: 28px; }
.cover-badge { position: absolute; top: 44px; right: var(--slide-pad-x); font-size: 11px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 2px; z-index: 2; }
.cover-eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--blue); margin-bottom: 16px; }
.cover-title { font-family: var(--font-sans); font-size: 5.5rem; font-weight: 200; line-height: 1.02; color: var(--text-primary); letter-spacing: -0.04em; margin-bottom: 20px; }
.cover-title em { font-style: italic; font-family: var(--font-serif); color: var(--blue); font-weight: 400; }
.cover-tagline { font-size: 1.4rem; font-weight: 300; color: var(--text-secondary); max-width: 540px; line-height: 1.6; }
.cover-meta { display: flex; gap: 32px; margin-top: 40px; }
.cover-meta-item { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.cover-meta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.cover-wave { position: absolute; bottom: 0; left: 0; right: 0; height: 100px; pointer-events: none; z-index: 0; }
.cover-footer { position: absolute; bottom: 24px; left: var(--slide-pad-x); right: var(--slide-pad-x); z-index: 2; }
.cover-footer-left { text-align: center; font-size: 9px; color: var(--text-faint); }

/* ========== SECTION DIVIDERS (full bleed) ========== */
.slide-divider { justify-content: flex-end; }
.slide-divider .slide-body { flex-direction: column; justify-content: flex-end; padding-bottom: 60px; }
.slide-divider--blue { background: var(--section-blue-bg); }
.slide-divider--red { background: var(--red); }
.section-title { font-family: var(--font-sans); font-size: 5.5rem; font-weight: 200; line-height: 1.05; letter-spacing: -0.03em; }
.slide-divider--blue .section-title { color: var(--blue); }
.slide-divider--red .section-title { color: white; }
.slide-divider--red .header-bar { background: transparent; border-bottom-color: rgba(255,255,255,0.15); }
.slide-divider--red .header-bar .header-client,
.slide-divider--red .header-bar .header-service,
.slide-divider--red .header-bar .header-year { color: rgba(255,255,255,0.6); }
.slide-divider--red .header-bar .header-sep { background: rgba(255,255,255,0.3); }
.section-num { font-family: var(--font-serif); font-style: italic; font-size: 2.5rem; font-weight: 400; margin-right: 16px; vertical-align: super; }
.slide-divider--red .section-num { font-size: 3.5rem; }

/* ========== DARK SLIDES (quotes, fear) ========== */
.slide-dark { background: var(--dark-bg); }
.slide-dark .slide-body { justify-content: center; align-items: center; }
.slide-dark .slide-nav { border-left-color: rgba(255,255,255,0.08); }
.slide-dark .nav-link { color: rgba(255,255,255,0.4); }
.slide-dark .nav-link:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); }
.slide-dark .nav-link.active { background: rgba(255,255,255,0.08); color: var(--blue-bright); }
.slide-dark .nav-link .nav-dot { background: rgba(255,255,255,0.2); }
.slide-dark .nav-link.active .nav-dot { background: var(--blue-bright); }
.slide-dark .slide-nav-title { color: rgba(255,255,255,0.2); }
.slide-dark .slide-footer { background: transparent; border-top-color: rgba(255,255,255,0.06); color: rgba(255,255,255,0.2); }

/* Renaissance frame for dark quotes */
.renaissance-frame { position: relative; border: 1px solid rgba(255,255,255,0.12); padding: 48px 56px; max-width: 750px; width: 100%; text-align: center; }
.renaissance-frame::before { content: ''; position: absolute; top: 8px; left: 8px; right: 8px; bottom: 8px; border: 1px solid rgba(255,255,255,0.06); pointer-events: none; }
.quote-text { font-family: var(--font-serif); font-style: italic; font-size: 2rem; font-weight: 400; line-height: 1.4; color: white; }
.quote-highlight { background: var(--blue); color: white; padding: 2px 8px; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.quote-attribution { display: block; margin-top: 16px; font-family: var(--font-sans); font-style: normal; font-size: 11px; color: rgba(255,255,255,0.4); font-weight: 500; }

/* ========== CLOSE SLIDE ========== */
.slide-close { background: var(--cover-bg); }
.slide-close .slide-body { flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.close-question { font-family: var(--font-serif); font-style: italic; font-size: 2.5rem; color: var(--blue); margin-bottom: 40px; }
.close-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 800px; width: 100%; }
.team-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px; text-align: left; transition: all 0.15s; }
.team-card:hover { border-color: var(--blue); box-shadow: var(--card-shadow-hover); }
.team-card strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.team-card .role { font-size: 10px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.team-card .contact { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.team-card a { color: var(--blue); text-decoration: none; }

/* ========== PASSWORD ========== */
.slide-password {
  background: #F8F9FB;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding-top: 0 !important;
  text-align: center;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
}
/* Decorative renaissance border frame */
.slide-password::before {
  content: '';
  position: absolute;
  top: 32px; left: 32px; right: 32px; bottom: 32px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  pointer-events: none;
}
.slide-password::after {
  content: '';
  position: absolute;
  top: 40px; left: 40px; right: 40px; bottom: 40px;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 2px;
  pointer-events: none;
}
.password-links { margin-top: 32px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.password-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.password-links a:hover { color: var(--blue); }
.password-input { width: 100%; padding: 14px 18px; border: 1px solid var(--card-border); border-radius: 8px; font-family: var(--font-sans); font-size: 15px; outline: none; text-align: center; transition: border-color 0.2s; }
.password-input:focus { border-color: var(--blue); }

/* ========== RED INDEX SLIDE ========== */
.slide-index-red {
  background: var(--red) !important;
  padding-top: calc(var(--header-h) + 3px);
}
.slide-index-red .header-bar { background: transparent; border-bottom-color: rgba(255,255,255,0.15); }
.slide-index-red .header-bar .header-client,
.slide-index-red .header-bar .header-service,
.slide-index-red .header-bar .header-year { color: rgba(255,255,255,0.6); }
.slide-index-red .header-bar .header-sep { background: rgba(255,255,255,0.3); }
.slide-index-red .slide-footer { background: transparent; border-top-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); }
.slide-index-red h2 { color: white; }
.slide-index-red .index-list { list-style: none; counter-reset: idx; max-width: 700px; }
.slide-index-red .index-list li {
  counter-increment: idx;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 2px;
}
.slide-index-red .index-list li:hover {
  background: rgba(255,255,255,0.12);
  padding-left: 28px;
  transform: translateX(4px);
}
.slide-index-red .index-list li:last-child { border-bottom: none; }
.slide-index-red .index-list a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.slide-index-red .index-list li::before {
  content: counter(idx, decimal-leading-zero);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  min-width: 24px;
}
.slide-index-red .index-time { margin-left: auto; font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 400; }
.slide-index-red .slide-nav { border-left-color: rgba(255,255,255,0.08); }
.slide-index-red .nav-link { color: rgba(255,255,255,0.4); }
.slide-index-red .nav-link:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }
.slide-index-red .nav-link.active { background: rgba(255,255,255,0.1); color: white; }
.slide-index-red .nav-link .nav-dot { background: rgba(255,255,255,0.2); }
.slide-index-red .nav-link.active .nav-dot { background: white; }
.slide-index-red .slide-nav-title { color: rgba(255,255,255,0.2); }

/* ========== GANTT CHART (proper bars) ========== */
.gantt-chart { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.gantt-chart thead th {
  padding: 10px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 2px solid var(--card-border);
  text-align: center;
  white-space: nowrap;
}
.gantt-chart thead th:first-child { text-align: left; min-width: 180px; padding-left: 16px; }
.gantt-chart tbody td {
  padding: 4px 2px;
  text-align: center;
  vertical-align: middle;
  height: 36px;
}
.gantt-chart tbody td:first-child {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  padding-left: 16px;
  color: var(--text-primary);
}
.gantt-chart tbody tr { transition: background 0.15s; }
.gantt-chart tbody tr:hover { background: #F9FAFB; }
.gantt-bar { height: 26px; border-radius: 6px; min-width: 100%; display: block; }
.gantt-bar--blue { background: var(--blue); }
.gantt-bar--green { background: var(--green); }
.gantt-bar--red { background: var(--red); }
.gantt-bar--purple { background: var(--purple); }
.gantt-bar--orange { background: var(--orange); }
.gantt-legend { display: flex; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.gantt-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.gantt-legend-dot { width: 12px; height: 12px; border-radius: 4px; }

/* ========== ANIMATIONS ========== */
.animate-in { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
.animate-in.visible { opacity: 1; transform: translateY(0); }
