/* Affordability & Pricing Engine (APE) - Custom Stylesheet */

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

:root {
  --primary: #0f172a;
  --accent: #2563eb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0b0f19;
  color: #f1f5f9;
  margin: 0;
  padding: 0;
}

code, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Glassmorphism panels */
.glass-panel {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-subtle {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Heatmap cell highlights */
.cell-max-revenue {
  background: rgba(99, 102, 241, 0.25) !important;
  border: 2px solid #818cf8 !important;
  position: relative;
}
.cell-max-revenue::after {
  content: '★ Rev Max';
  position: absolute;
  top: -9px;
  right: 4px;
  font-size: 9px;
  font-weight: 700;
  background: #4f46e5;
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}

.cell-max-access {
  background: rgba(16, 185, 129, 0.22) !important;
  border: 2px solid #34d399 !important;
  position: relative;
}
.cell-max-access::after {
  content: '✦ Access Max';
  position: absolute;
  top: -9px;
  left: 4px;
  font-size: 9px;
  font-weight: 700;
  background: #059669;
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}

.cell-extrapolated {
  opacity: 0.55;
  background: repeating-linear-gradient(
    45deg,
    rgba(239, 68, 68, 0.05),
    rgba(239, 68, 68, 0.05) 10px,
    rgba(0, 0, 0, 0.2) 10px,
    rgba(0, 0, 0, 0.2) 20px
  ) !important;
}

/* Tab active styles */
.nav-tab.active {
  background: #1e293b;
  color: #38bdf8;
  border-bottom: 2px solid #38bdf8;
}

/* Range input styling */
input[type=range] {
  accent-color: #38bdf8;
}

/* Pulsing warning banner for >30% non-PMR */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.provenance-alert {
  animation: pulse-subtle 3s infinite ease-in-out;
}
