/* SBB Healthcare Theme for Reveal.js */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* SBB Purple Palette */
  --sbb-purple-50: #F5F3FF;
  --sbb-purple-100: #EDE9FE;
  --sbb-purple-500: #8B5CF6;
  --sbb-purple-600: #7C3AED;
  --sbb-purple-700: #6D28D9;
  --sbb-purple-900: #4C1D95;

  /* SBB Navy Palette */
  --sbb-navy-50: #EFF6FF;
  --sbb-navy-100: #DBEAFE;
  --sbb-navy-600: #2563EB;
  --sbb-navy-700: #1D4ED8;
  --sbb-navy-900: #1E3A8A;

  /* Slate Grays */
  --sbb-slate-50: #F8FAFC;
  --sbb-slate-100: #F1F5F9;
  --sbb-slate-600: #475569;
  --sbb-slate-700: #334155;
  --sbb-slate-800: #1E293B;

  /* Status Colors */
  --status-complete: #10B981;
  --status-progress: #3B82F6;
  --status-future: #6B7280;
  --status-attention: #F59E0B;
}

/* Base Typography */
.reveal {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--sbb-slate-800);
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--sbb-purple-700);
  margin-bottom: 1rem;
}

.reveal h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

.reveal h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

.reveal h3 {
  font-size: 2rem;
  font-weight: 600;
}

.reveal p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Custom Slide Classes */
.slide-title {
  background: linear-gradient(135deg, var(--sbb-purple-600), var(--sbb-navy-700));
  color: white;
  padding: 4rem;
  border-radius: 1rem;
  text-align: center;
}

.slide-title h1,
.slide-title h2,
.slide-title h3 {
  color: white;
}

/* Card Component */
.card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Stat Card */
.stat-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: var(--sbb-purple-50);
  border-left: 4px solid var(--sbb-purple-600);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--sbb-purple-700);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--sbb-slate-600);
  font-weight: 500;
}

/* Package Card */
.package-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--sbb-purple-600);
  margin-bottom: 1rem;
}

.package-card h4 {
  color: var(--sbb-purple-700);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.package-card .badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-complete {
  background: #D1FAE5;
  color: #065F46;
}

.badge-progress {
  background: #DBEAFE;
  color: #1E40AF;
}

.badge-future {
  background: #E5E7EB;
  color: #374151;
}

/* Timeline */
.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.timeline-marker {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  background: var(--sbb-purple-100);
  color: var(--sbb-purple-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

/* Mermaid Diagram Container */
.mermaid {
  background: var(--sbb-slate-50);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--sbb-slate-100);
}

/* Table Styling */
.reveal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.reveal th {
  background: var(--sbb-purple-100);
  color: var(--sbb-purple-900);
  font-weight: 600;
  padding: 0.75rem;
  text-align: left;
  border-bottom: 2px solid var(--sbb-purple-600);
}

.reveal td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--sbb-slate-100);
}

.reveal tr:hover {
  background: var(--sbb-slate-50);
}

/* List Styling */
.reveal ul,
.reveal ol {
  margin-left: 1.5rem;
}

.reveal li {
  margin-bottom: 0.5rem;
}

/* Highlight Box */
.highlight {
  background: var(--sbb-purple-50);
  border-left: 4px solid var(--sbb-purple-600);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.highlight-success {
  background: #D1FAE5;
  border-left-color: var(--status-complete);
}

.highlight-warning {
  background: #FEF3C7;
  border-left-color: var(--status-attention);
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 0.75rem;
  background: var(--sbb-slate-100);
  border-radius: 9999px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sbb-purple-600), var(--sbb-navy-600));
  transition: width 0.3s ease;
}

/* Budget Grid */
.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.budget-item {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-top: 3px solid var(--sbb-purple-600);
}

.budget-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sbb-purple-700);
}

.budget-label {
  font-size: 0.875rem;
  color: var(--sbb-slate-600);
  margin-top: 0.25rem;
}

/* Controls Styling */
.reveal .controls {
  color: var(--sbb-purple-600);
}

.reveal .progress {
  background: rgba(124, 58, 237, 0.2);
}

.reveal .progress span {
  background: var(--sbb-purple-600);
}

/* Slide Number */
.reveal .slide-number {
  background: var(--sbb-purple-600);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

/* Speaker Notes Styling */
.reveal aside.notes {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .reveal {
    font-size: 24px;
  }

  .reveal h1 {
    font-size: 2.5rem;
  }

  .reveal h2 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .card {
    padding: 1.5rem;
  }
}

/* Print Styles (PDF Export) */
@media print {
  .reveal {
    background: white;
  }

  .card,
  .package-card {
    box-shadow: none;
    border: 1px solid var(--sbb-slate-200);
  }

  .mermaid {
    background: white;
    border: 1px solid var(--sbb-slate-200);
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal .slide-fade-in {
  animation: fadeInUp 0.5s ease-out;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--sbb-purple-600), var(--sbb-navy-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
