/* 
 * Zero@City - Sustainability Intelligence Platform for Cities
 * Core Stylesheet (zero-city.css)
 */

/* @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 {
  /* Core Colors */
  --navy-dark: #010c2c;
  --navy-primary: #02154e;
  --navy-medium: #0d2873;
  --navy-light: #eaedf6;
  --navy-glass: rgba(2, 21, 78, 0.03);
  --green-primary: #005530;
  --green-light: #e6f2ec;
  --orange-primary: #f9ba00;
  --orange-light: #fff8e6;
  --red-primary: #d51635;
  --red-light: #fbecee;
  --bg-primary: #f5f7fb;
  --bg-card: #ffffff;
  --border-color: rgba(2, 21, 78, 0.08);
  --border-radius: 12px;
  --border-radius-sm: 8px;
  
  /* Synapse Glow Colors */
  --synapse-glow: linear-gradient(135deg, #0d2873 0%, #02154e 100%);
  --synapse-purple: var(--orange-primary);
  --synapse-purple-light: var(--orange-light);

  /* Typography */
  --font-header: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --sidebar-width: 260px;
  --header-height: 70px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(2, 21, 78, 0.05);
  --shadow-lg: 0 10px 30px rgba(2, 21, 78, 0.08);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: #334155;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Base Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Header */
.top-header {
  background-color: var(--navy-primary);
  color: #ffffff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  font-family: var(--font-header);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-logo span {
  color: var(--orange-primary);
}

.brand-subtitle {
  font-size: 13px;
  color: #94a3b8;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 12px;
  margin-left: 4px;
  font-weight: 300;
}

.status-pills {
  display: flex;
  gap: 8px;
}

.status-pill {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-pill.active::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--green-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-primary);
}

.status-pill.ai-active::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--orange-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--orange-primary);
}

.status-pill.pending::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--orange-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--orange-primary);
}

.status-pill.error::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--red-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red-primary);
}

.db-status-pill {
  position: relative;
}

.db-status-tooltip {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--navy-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
  min-width: 200px;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
}

.db-status-pill:hover .db-status-tooltip {
  display: block;
}

/* Tab Navigation */
.nav-container {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  position: sticky;
  top: 59px;
  z-index: 90;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
  margin-right: 16px;
}

.nav-tab {
  background: none;
  border: none;
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 400;
  color: #64748b;
  padding: 16px 12px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.nav-tab:hover {
  color: var(--navy-primary);
}

.nav-tab.active {
  color: var(--navy-primary);
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background-color: var(--navy-primary);
  border-radius: 3px 3px 0 0;
}

/* Simulation Controls */
.scenario-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

.scenario-select {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-primary);
  background-color: var(--bg-primary);
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
}

.scenario-select:focus {
  border-color: var(--navy-medium);
}

/* Main Dashboard Area */
.main-content {
  flex-grow: 1;
  padding: 24px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn var(--transition-fast);
}

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

/* Typography elements */
h1 {
  font-family: var(--font-header);
  font-weight: 300;
  color: var(--navy-primary);
  font-size: 28px;
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}

/* Main Hero Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* Cards Design */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-title {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 400;
  color: var(--navy-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* KPI Cards Row */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-family: var(--font-header);
  font-size: 24px;
  font-weight: 300;
  color: var(--navy-primary);
  margin: 6px 0;
}

.kpi-meta {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kpi-trend-up {
  color: var(--red-primary);
}

.kpi-trend-down {
  color: var(--green-primary);
}

/* Risk Alerts Sidebar Panel */
.risk-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-item {
  border-left: 4px solid var(--border-color);
  background-color: var(--bg-primary);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  padding: 12px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition-fast);
}

.alert-item.High {
  border-left-color: var(--red-primary);
  background-color: var(--red-light);
}

.alert-item.Medium {
  border-left-color: var(--orange-primary);
  background-color: var(--orange-light);
}

.alert-item.Low {
  border-left-color: var(--navy-medium);
  background-color: var(--navy-light);
}

.alert-title {
  font-weight: 700;
  color: var(--navy-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

.alert-badge.High {
  background-color: var(--red-primary);
  color: white;
}

.alert-badge.Medium {
  background-color: var(--orange-primary);
  color: #000000;
}

.alert-badge.Low {
  background-color: var(--navy-medium);
  color: white;
}

.alert-desc {
  color: #475569;
}

.alert-asset {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 4px;
}

/* Synapse AI Briefing Card */
.synapse-briefing-card {
  background: var(--synapse-glow);
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.synapse-briefing-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.synapse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 12px;
}

.synapse-title {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 8px;
}

.synapse-pill {
  background-color: var(--synapse-purple);
  color: #000000;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(249, 186, 0, 0.4);
}

.synapse-text {
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
}

.synapse-recommendations {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.synapse-rec-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 12px;
}

.synapse-rec-box h4 {
  font-size: 12px;
  font-weight: 400;
  color: var(--orange-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.synapse-rec-box p {
  font-size: 12px;
  color: #cbd5e1;
}

/* Map Placeholder Styling */
.map-placeholder {
  background-color: #e2e8f0;
  border: 1px dashed rgba(2, 21, 78, 0.2);
  border-radius: var(--border-radius);
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(rgba(2, 21, 78, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
}

.map-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(1, 12, 44, 0.85);
  color: white;
  padding: 6px 12px;
  font-size: 10px;
  border-radius: 4px;
  font-family: monospace;
}

.map-marker {
  width: 10px;
  height: 10px;
  background-color: var(--red-primary);
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 10px var(--red-primary);
}

.map-marker.AS1 { top: 40%; left: 30%; background-color: var(--orange-primary); box-shadow: 0 0 8px var(--orange-primary); }
.map-marker.AS3 { top: 55%; left: 60%; background-color: var(--orange-primary); box-shadow: 0 0 8px var(--orange-primary); }
.map-marker.AS9 { top: 25%; left: 80%; background-color: var(--red-primary); box-shadow: 0 0 8px var(--red-primary); }
.map-marker.generic { top: 70%; left: 45%; background-color: var(--green-primary); box-shadow: 0 0 8px var(--green-primary); }

.map-icon {
  font-size: 32px;
  color: var(--navy-medium);
  margin-bottom: 8px;
  opacity: 0.6;
}

/* Progress Bars & Metas */
.secap-progress-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--navy-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--green-primary);
  border-radius: 4px;
  transition: width var(--transition-normal);
}

/* Action Items list */
.action-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.action-item:hover {
  border-color: var(--navy-medium);
  transform: translateX(4px);
}

.action-info h4 {
  font-size: 13px;
  font-weight: 400;
  color: var(--navy-primary);
}

.action-info p {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.action-stats {
  text-align: right;
  font-size: 12px;
}

.action-savings {
  font-weight: 700;
  color: var(--green-primary);
}

.action-priority-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 6px;
}

.action-priority-badge.Critical {
  background-color: var(--red-light);
  color: var(--red-primary);
}

.action-priority-badge.High {
  background-color: var(--orange-light);
  color: var(--orange-primary);
}

/* Table Style for Asset Inventory */
.table-wrapper {
  overflow-x: auto;
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

th {
  background-color: var(--navy-light);
  color: var(--navy-primary);
  font-weight: 700;
  padding: 12px 16px;
  font-family: var(--font-header);
  border-bottom: 2px solid var(--border-color);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: #475569;
}

tr:hover td {
  background-color: rgba(2, 21, 78, 0.02);
}

.badge-risk {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  display: inline-block;
}

.badge-risk.High {
  background-color: var(--red-light);
  color: var(--red-primary);
}

.badge-risk.Medium {
  background-color: var(--orange-light);
  color: var(--orange-primary);
}

.badge-risk.Low {
  background-color: var(--green-light);
  color: var(--green-primary);
}

.score-cell {
  font-weight: 700;
}

.score-cell.high {
  color: var(--red-primary);
}

.score-cell.medium {
  color: var(--orange-primary);
}

.score-cell.low {
  color: var(--green-primary);
}

/* Pilot & Strategy Panels styling */
.pilot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}

.pilot-stat-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  text-align: center;
}

.pilot-stat-value {
  font-family: var(--font-header);
  font-size: 32px;
  font-weight: 300;
  color: var(--navy-primary);
}

.pilot-stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

/* Timeline/Roadmap styling */
.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 20px;
  margin-top: 16px;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 2px;
  background-color: var(--navy-light);
}

.roadmap-node {
  position: relative;
}

.roadmap-node::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 6px;
  width: 12px;
  height: 12px;
  background-color: #ffffff;
  border: 3px solid var(--navy-primary);
  border-radius: 50%;
  z-index: 2;
}

.roadmap-node.active::before {
  background-color: var(--orange-primary);
  border-color: var(--navy-primary);
  box-shadow: 0 0 8px var(--orange-primary);
}

.roadmap-node-year {
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 14px;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.roadmap-node-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--navy-medium);
}

.roadmap-node-desc {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

/* Mini-Modules Dashboard (Campus & Hospital) */
.mini-module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.mini-module-title {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-primary);
}

.mini-module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Footer & Compliance */
.footer {
  background-color: var(--navy-dark);
  color: #94a3b8;
  padding: 24px;
  text-align: center;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
  font-weight: 300;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 300;
}

.footer-links a:hover {
  color: white;
}

/* Future Integration Banner */
.integration-banner {
  background-color: var(--navy-glass);
  border: 1px dashed var(--border-color);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  font-size: 11px;
  color: #64748b;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.integration-banner svg {
  color: var(--navy-medium);
}

/* Responsive Overrides for iPad Safari */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .synapse-recommendations {
    grid-template-columns: 1fr;
  }
  
  .pilot-grid {
    grid-template-columns: 1fr;
  }
  
  .mini-module-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  
  .status-pills {
    flex-wrap: wrap;
  }
  
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    top: 0;
  }
  
  .kpi-row {
    grid-template-columns: 1fr;
  }
  
  .mini-module-grid {
    grid-template-columns: 1fr;
  }
}

.quick-question-btn:hover {
  background-color: var(--navy-medium) !important;
  color: white !important;
  border-color: var(--navy-medium) !important;
}

/* =====================================================================
 * Phase v0.5 - Guided Tour & Investor Pitch Deck Styles
 * ===================================================================== */

/* Header Tour Button */
.tour-btn {
  background-color: var(--green-primary) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 10px rgba(0, 85, 48, 0.4);
}

.tour-btn:hover {
  background-color: #ffffff !important;
  color: var(--navy-primary) !important;
  border-color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Tour Onboarding Overlays */
.tour-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(2, 12, 44, 0.3); /* Let the focus-box shadow do the heavy dimming */
  z-index: 9998;
  pointer-events: auto;
}

.tour-focus-box {
  position: fixed;
  z-index: 9999;
  border: 3px solid var(--orange-primary);
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(2, 12, 44, 0.7), 0 0 20px var(--orange-primary);
  pointer-events: none;
  transition: all var(--transition-normal);
}

.tour-card {
  position: fixed;
  z-index: 10000;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  width: 360px;
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(0, 0, 0, 0.25);
  border-left: 5px solid var(--orange-primary);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tour-card h3 {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 400;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-card p {
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}

.tour-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.tour-step-indicator {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.tour-actions {
  display: flex;
  gap: 8px;
}

.tour-btn-action {
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tour-btn-action.next {
  background-color: var(--navy-primary);
  color: #ffffff;
}

.tour-btn-action.next:hover {
  background-color: var(--navy-medium);
}

.tour-btn-action.prev {
  background-color: #f1f5f9;
  color: #475569;
}

.tour-btn-action.prev:hover {
  background-color: #e2e8f0;
}

.tour-btn-action.skip {
  background: none;
  color: var(--red-primary);
}

.tour-btn-action.skip:hover {
  text-decoration: underline;
}

/* Investor Pitch Presentation Slide Deck */
.pitch-deck-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.pitch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.pitch-title-container {
  display: flex;
  flex-direction: column;
}

.pitch-main-title {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pitch-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.pitch-tag {
  background-color: var(--orange-light);
  color: #d97706;
  border: 1px solid rgba(249, 186, 0, 0.2);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.pitch-slide-container {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pitch-slide {
  display: none;
  animation: slideFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pitch-slide.active {
  display: block;
}

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

.pitch-slide h3 {
  font-family: var(--font-header);
  font-size: 20px;
  font-weight: 300;
  color: var(--navy-medium);
  margin-bottom: 12px;
}

.pitch-slide p {
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 16px;
}

.pitch-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.pitch-metric-box {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pitch-metric-val {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-primary);
}

.pitch-metric-lbl {
  font-size: 11px;
  color: #64748b;
}

.pitch-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.pitch-bullets {
  display: flex;
  gap: 6px;
}

.pitch-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #cbd5e1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pitch-bullet.active {
  background-color: var(--navy-primary);
  transform: scale(1.25);
}

.pitch-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background-color: var(--navy-primary);
  transition: width 0.3s ease;
}

/* Pilot Readiness View Styles */
.readiness-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.readiness-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}
@media (max-width: 1024px) {
  .readiness-grid {
    grid-template-columns: 1fr;
  }
}
.readiness-table-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.readiness-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.readiness-table th, .readiness-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.readiness-table th {
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--navy-primary);
  font-size: 13px;
  background-color: var(--navy-glass);
}
.readiness-table td {
  font-size: 13px;
  color: #475569;
}
.readiness-table tr:hover {
  background-color: rgba(2, 21, 78, 0.01);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.pill-badge.ready {
  background-color: var(--green-light);
  color: var(--green-primary);
}
.pill-badge.pending {
  background-color: var(--orange-light);
  color: #b45309;
}
.pill-badge.demo {
  background-color: var(--navy-light);
  color: var(--navy-medium);
}
.pill-badge.next-phase {
  background-color: #f1f5f9;
  color: #64748b;
}

/* 90-Day Timeline Styles */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 24px;
  margin-top: 16px;
}
.timeline-container::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background-color: var(--navy-light);
}
.timeline-phase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.timeline-phase::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 4px;
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  border: 4px solid var(--navy-light);
  border-radius: 50%;
  z-index: 2;
  transition: all var(--transition-fast);
}
.timeline-phase.active::before {
  border-color: var(--orange-primary);
  background-color: var(--navy-primary);
  box-shadow: 0 0 0 4px rgba(249, 186, 0, 0.2);
}
.timeline-phase.completed::before {
  border-color: var(--green-primary);
  background-color: var(--green-light);
}
.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.timeline-title {
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 14px;
  color: var(--navy-primary);
}
.timeline-duration {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.timeline-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}

/* Export Cards Section */
.export-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .export-card-grid {
    grid-template-columns: 1fr;
  }
}
.export-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}
.export-item:hover {
  border-color: var(--navy-medium);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.export-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.export-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--navy-primary);
}
.export-meta {
  font-size: 11px;
  color: #64748b;
}
.export-btn {
  background-color: var(--navy-primary);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.export-btn:hover {
  background-color: var(--navy-medium);
}

/* Export Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(2, 12, 44, 0.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}
.modal-backdrop.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 28px;
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(2, 12, 44, 0.15);
  border-top: 5px solid var(--orange-primary);
  transform: scale(0.9);
  transition: transform var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-backdrop.show .modal-card {
  transform: scale(1);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.modal-close-btn:hover {
  color: var(--red-primary);
}
.modal-body {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.modal-btn {
  background-color: var(--navy-primary);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.modal-btn:hover {
  background-color: var(--navy-medium);
}

/* Demo Assistant Drawer */
.demo-drawer {
  position: fixed;
  top: 0;
  right: -350px;
  width: 340px;
  height: 100vh;
  background: rgba(2, 21, 78, 0.96);
  backdrop-filter: blur(10px);
  z-index: 10005;
  box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  transition: right var(--transition-normal);
  color: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 1px solid rgba(255,255,255,0.1);
  overflow-y: auto;
}
.demo-drawer.open {
  right: 0;
}
.demo-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
}
.demo-drawer-title {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 300;
  color: var(--orange-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}
.demo-drawer-close:hover {
  color: #ffffff;
}
.demo-step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}
.demo-step-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-fast);
}
.demo-step-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--orange-primary);
}
.demo-step-card.active {
  background: rgba(249, 186, 0, 0.08);
  border-color: var(--orange-primary);
  box-shadow: 0 0 10px rgba(249, 186, 0, 0.1);
}
.demo-step-num {
  font-size: 11px;
  font-weight: 400;
  color: var(--orange-primary);
  text-transform: uppercase;
}
.demo-step-name {
  font-weight: 300;
  font-size: 13px;
}
.demo-step-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}
.demo-step-action-btn {
  background: var(--orange-primary);
  color: #000000;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
  margin-top: 4px;
  align-self: flex-start;
  transition: opacity var(--transition-fast);
}
.demo-step-action-btn:hover {
  opacity: 0.9;
}

/* =====================================================================
 * Phase v1.5 - Admin Diagnostics Panel Styles
 * ===================================================================== */

.diagnostics-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background-color: var(--navy-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  box-shadow: var(--shadow-lg), 0 0 15px rgba(2, 21, 78, 0.3);
  transition: all var(--transition-fast);
}

.diagnostics-toggle-btn:hover {
  background-color: var(--synapse-purple);
  transform: rotate(30deg);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

.diagnostics-panel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  background: rgba(1, 12, 44, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: #cbd5e1;
  z-index: 10000;
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

.diagnostics-panel.open {
  display: flex;
  animation: slideUp var(--transition-fast) forwards;
}

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

.diagnostics-header {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.diagnostics-title {
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.diagnostics-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.diagnostics-close:hover {
  color: #ffffff;
}

.diagnostics-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.diag-section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.diag-btn-group {
  display: flex;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  padding: 2px;
  gap: 2px;
}

.diag-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.diag-btn:hover {
  color: #ffffff;
}

.diag-btn.active {
  background-color: var(--synapse-purple);
  color: #ffffff;
}

.diag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 4px 0;
}

.diag-label {
  color: #94a3b8;
}

.diag-val {
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.diag-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.diag-badge.green {
  background-color: rgba(0, 85, 48, 0.15);
  color: var(--green-primary);
}

.diag-badge.yellow {
  background-color: rgba(249, 186, 0, 0.15);
  color: var(--orange-primary);
}

.diag-badge.red {
  background-color: rgba(213, 22, 53, 0.15);
  color: var(--red-primary);
}

/* --- Phase v1.6: Pilot Report Preview Styles --- */
.report-preview-container {
  margin-top: 32px;
  grid-column: span 2;
}

.report-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.report-preview-header-title {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 300;
  color: var(--navy-primary);
}

.report-preview-actions {
  display: flex;
  gap: 8px;
}

.report-preview-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--navy-primary);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.report-preview-btn:hover {
  background-color: var(--navy-light);
  border-color: var(--navy-medium);
  transform: translateY(-1px);
}

.report-preview-btn.primary {
  background-color: var(--navy-primary);
  color: #ffffff;
  border: none;
}

.report-preview-btn.primary:hover {
  background-color: var(--navy-medium);
}

.report-preview-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--font-body);
  color: #334155;
  position: relative;
}

.report-header-accent {
  border-bottom: 3px double var(--navy-primary);
  padding-bottom: 24px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.report-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-header-title {
  font-family: var(--font-header);
  font-size: 24px;
  font-weight: 300;
  color: var(--navy-primary);
  letter-spacing: -0.5px;
}

.report-header-subtitle {
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.report-header-right {
  text-align: right;
}

.report-header-logo {
  font-size: 20px;
  font-weight: 300;
  color: var(--navy-primary);
}

.report-header-logo span {
  color: var(--orange-primary);
}

.report-header-date {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.report-section {
  margin-bottom: 28px;
}

.report-section-title {
  font-family: var(--font-header);
  font-size: 15px;
  font-weight: 400;
  color: var(--navy-medium);
  border-bottom: 1px solid var(--navy-light);
  padding-bottom: 6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-section-title svg {
  color: var(--navy-primary);
}

.report-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.report-meta-item {
  background-color: var(--bg-primary);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}

.report-meta-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.report-meta-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.report-score-pill {
  background-color: var(--green-light);
  color: var(--green-primary);
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
}

.report-score-pill.warning {
  background-color: var(--orange-light);
  color: var(--orange-primary);
}

.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.report-kpi-box {
  background-color: #fafbfc;
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.report-kpi-val {
  font-size: 16px;
  font-weight: 500;
  color: var(--navy-primary);
}

.report-kpi-lbl {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

.report-text {
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
}

.report-list {
  padding-left: 20px;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

.report-list li {
  margin-bottom: 6px;
}

.report-alert-box {
  background-color: var(--red-light);
  border-left: 4px solid var(--red-primary);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  color: var(--red-primary);
  margin-bottom: 12px;
}

.report-alert-box.info {
  background-color: var(--orange-light);
  border-left-color: var(--orange-primary);
  color: #b45309;
}

.report-alert-box.success {
  background-color: var(--green-light);
  border-left-color: var(--green-primary);
  color: var(--green-primary);
}

/* Specific styling to mock print/A4 in browser */
@media print {
  body * {
    visibility: hidden;
  }
  .report-preview-card, .report-preview-card * {
    visibility: visible;
  }
  .report-preview-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0;
  }
  .report-preview-header, #main-header, #main-nav, #main-footer, .demo-drawer, #diagnostics-toggle-btn, #diagnostics-panel {
    display: none !important;
  }
}




