/* terminal_theme.css - Institutional Terminal Dark Theme */
:root {
  --bg-base: #06090e;
  --bg-surface: #0b0f17;
  --bg-card: #111722;
  --bg-card-hover: #161e2c;
  --bg-input: #0e141f;
  
  --border-subtle: #192233;
  --border-focus: #00e5ff;
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Gainers / Bullish / Calls (Green) */
  --green-main: #00e676;
  --green-glow: rgba(0, 230, 118, 0.25);
  --green-bg: rgba(0, 230, 118, 0.1);
  --green-border: rgba(0, 230, 118, 0.35);

  /* Losers / Bearish / Puts (Red) */
  --red-main: #ff1744;
  --red-glow: rgba(255, 23, 68, 0.25);
  --red-bg: rgba(255, 23, 68, 0.1);
  --red-border: rgba(255, 23, 68, 0.35);

  /* Aqua / Cyan Accents (Options Flow & Time Machine) */
  --aqua-main: #00e5ff;
  --aqua-glow: rgba(0, 229, 255, 0.3);
  --aqua-bg: rgba(0, 229, 255, 0.08);
  --aqua-border: rgba(0, 229, 255, 0.3);

  /* Neutrals & Warnings */
  --yellow-main: #ffb703;
  --yellow-bg: rgba(255, 183, 3, 0.1);
  --orange-main: #fb8500;
  --blue-main: #38bdf8;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.45);
}

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

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

/* Typography & Colors */
.text-green { color: var(--green-main) !important; }
.text-red { color: var(--red-main) !important; }
.text-aqua { color: var(--aqua-main) !important; }
.text-yellow { color: var(--yellow-main) !important; }
.text-white { color: #ffffff !important; }
.text-muted { color: var(--text-muted) !important; }
.font-mono { font-family: var(--font-mono); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-green {
  background: var(--green-bg);
  color: var(--green-main);
  border: 1px solid var(--green-border);
}
.badge-red {
  background: var(--red-bg);
  color: var(--red-main);
  border: 1px solid var(--red-border);
}
.badge-aqua {
  background: var(--aqua-bg);
  color: var(--aqua-main);
  border: 1px solid var(--aqua-border);
}
.badge-yellow {
  background: var(--yellow-bg);
  color: var(--yellow-main);
  border: 1px solid rgba(255, 183, 3, 0.3);
}
.badge-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}
.badge-orange {
  background: rgba(251, 133, 0, 0.15);
  color: #fb8500;
  border: 1px solid rgba(251, 133, 0, 0.35);
}

/* Option Chain Visual Depth Bars & Surprise Badges */
.oi-cell-wrap {
  position: relative;
  width: 100%;
  min-width: 90px;
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  overflow: hidden;
  border-radius: 3px;
}
.oi-depth-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
  transition: width 0.3s ease;
  border-radius: 2px;
}
.oi-depth-call {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 59, 105, 0.75), rgba(255, 23, 68, 0.08));
}
.oi-depth-put {
  left: 0;
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.75), rgba(0, 230, 118, 0.08));
}
.oi-num {
  position: relative;
  z-index: 2;
  font-weight: 700;
}

/* Surprise Strike Glowing Badges */
.strike-badge-ce {
  background: rgba(255, 23, 68, 0.2);
  color: #ff5252;
  border: 1px solid rgba(255, 23, 68, 0.5);
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.3);
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  animation: pulseCeGlow 2s infinite ease-in-out;
}
.strike-badge-pe {
  background: rgba(0, 230, 118, 0.2);
  color: #69f0ae;
  border: 1px solid rgba(0, 230, 118, 0.5);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  animation: pulsePeGlow 2s infinite ease-in-out;
}
.strike-badge-atm {
  background: rgba(255, 183, 3, 0.2);
  color: #ffd166;
  border: 1px solid rgba(255, 183, 3, 0.6);
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.35);
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 3px;
}

@keyframes pulseCeGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 23, 68, 0.2); border-color: rgba(255, 23, 68, 0.4); }
  50% { box-shadow: 0 0 14px rgba(255, 23, 68, 0.6); border-color: rgba(255, 23, 68, 0.9); }
}
@keyframes pulsePeGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 230, 118, 0.2); border-color: rgba(0, 230, 118, 0.4); }
  50% { box-shadow: 0 0 14px rgba(0, 230, 118, 0.6); border-color: rgba(0, 230, 118, 0.9); }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

