/* OASIS CDG Dashboard - Harmony Style */
:root {
  --accent: #ff9900;
  --accent-dark: #ec7211;
  --primary: #146eb4;
  --bg: #f0f2f5;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-sec: #6b7280;
  --border: #e5e7eb;
  --red: #d13212;
  --teal: #0d9488;
  --green: #16a34a;
  --orange: #ea580c;
  --purple: #7c3aed;
  --blue: #2563eb;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

body {
  font-family: 'Amazon Ember', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* === BANNER === */
#banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  position: relative;
  overflow: hidden;
  padding: 0;
}

#sinewave-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}

#banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M0 50h100M50 0v100' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1;
}

.logo-badge {
  background: linear-gradient(90deg, #002395 0%, #002395 33%, #ffffff 33%, #ffffff 66%, #ed2939 66%, #ed2939 100%);
  color: white;
  font-weight: 900;
  font-size: 20px;
  padding: 10px 16px;
  border-radius: 8px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.banner-title {
  color: var(--accent);
  font-size: 28px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  letter-spacing: -0.5px;
}

.banner-title-group {
  display: flex;
  flex-direction: column;
}

.banner-subtitle {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.banner-aws .aws-logo {
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
  padding: 4px 8px;
}

.banner-right {
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 1;
}

.aws-logo {
  opacity: 0.9;
}

.banner-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: 'Courier New', monospace;
  color: #4ade80;
  font-size: 14px;
  font-weight: 600;
}

.banner-region {
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: 1px;
}

/* === TAB NAVIGATION === */
#tab-nav {
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#tab-nav::-webkit-scrollbar { height: 0; }

.tab-btn {
  border: none;
  background: none;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.15s;
}

.tab-btn:hover {
  color: var(--primary);
  background: #f8fafc;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* === MAIN CONTENT === */
#content-area {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 200px);
}

/* === FOOTER === */
#footer {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: var(--text-sec);
  border-top: 1px solid var(--border);
}

#footer a {
  color: var(--primary);
  text-decoration: none;
}

/* === FABs === */
.fab-top-right {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 999;
}

.fab-bottom-right {
  position: fixed;
  bottom: 36px;
  right: 20px;
  z-index: 999;
}

.fab-bottom-left {
  position: fixed;
  bottom: 36px;
  left: 20px;
  z-index: 999;
}

.fab {
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fabPulse 3s ease-in-out infinite, fabBounce 2.5s ease-in-out infinite;
}

.fab:hover { transform: translateY(-6px) scale(1.1); box-shadow: 0 8px 32px rgba(0,0,0,0.35); animation: none; }

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
  50% { box-shadow: 0 4px 24px rgba(255,153,0,0.5); }
}

@keyframes fabBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.fab-escalation {
  background: linear-gradient(135deg, #ff9900, #e07c00);
  width: 64px;
  height: 74px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  flex-direction: column;
  gap: 2px;
}

.fab-lse {
  background: linear-gradient(135deg, #d13212, #a61d00);
  width: 64px;
  height: 74px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  flex-direction: column;
  gap: 2px;
  animation: fabPulse 3s ease-in-out infinite, lseFlash 2s ease-in-out infinite;
}

@keyframes lseFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; box-shadow: 0 0 20px rgba(209,50,18,0.6); }
}

.fab-chat {
  background: linear-gradient(135deg, #146eb4, #2196f3);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  animation: fabPulse 3s ease-in-out infinite, fabBounce 2.5s ease-in-out infinite;
}

.fab-chat-icon { font-size: 24px; }
.fab-icon { font-size: 16px; }
.fab-label { font-size: 7.5px; color: white; font-weight: 600; text-align: center; line-height: 1.2; }

/* Small screens - prevent overlap */
@media (max-width: 768px) {
  .fab-top-right { top: 80px; right: 8px; }
  .fab-bottom-right { bottom: 12px; right: 8px; }
  .fab-bottom-left { bottom: 12px; left: 8px; }
  .fab-escalation, .fab-lse { width: 52px; height: 60px; }
  .fab-chat { width: 44px; height: 44px; }
  .fab-label { font-size: 6.5px; }
  .fab-icon { font-size: 13px; }
  .fab-chat-icon { font-size: 20px; }
}

/* === METRIC STRIP (top colored cards row) === */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.metric-card {
  background: white;
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  border-top: 4px solid var(--border);
  box-shadow: var(--shadow);
}

.metric-card.red { border-top-color: var(--red); }
.metric-card.teal { border-top-color: var(--teal); }
.metric-card.green { border-top-color: var(--green); }
.metric-card.orange { border-top-color: var(--orange); }
.metric-card.purple { border-top-color: var(--purple); }
.metric-card.blue { border-top-color: var(--blue); }

.metric-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.metric-card.red .metric-value { color: var(--red); }
.metric-card.teal .metric-value { color: var(--teal); }
.metric-card.green .metric-value { color: var(--green); }
.metric-card.orange .metric-value { color: var(--orange); }
.metric-card.purple .metric-value { color: var(--purple); }
.metric-card.blue .metric-value { color: var(--blue); }

.metric-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-sec);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* === SECTION TITLE === */
.section-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

/* === PANEL GRID === */
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.panel-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

/* === DONUT CHART === */
.donut-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 220px;
}

.donut-center {
  position: absolute;
  text-align: center;
}

.donut-center-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.donut-center-label {
  font-size: 11px;
  color: var(--text-sec);
  text-transform: uppercase;
}

.donut-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-sec);
}

.donut-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* === BAR CHART === */
.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  height: 180px;
  padding: 0 12px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  max-width: 50px;
}

.bar-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #1e3a5f, #2d5a87);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.5s ease;
}

.bar-label {
  font-size: 9px;
  color: var(--text-sec);
  text-align: center;
  word-break: break-all;
}

/* === HORIZONTAL BAR (EAM) === */
.hbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hbar-label {
  width: 60px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.hbar-track {
  flex: 1;
  height: 28px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.hbar-fill {
  height: 100%;
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.hbar-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255,255,255,0.8);
  padding: 2px 8px;
  border-radius: 4px;
}

/* === ALARM PYRAMID === */
.alarm-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
}

.pyramid-level {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 8px;
  padding: 12px;
  color: white;
  font-weight: 700;
  text-align: center;
}

.pyramid-level.critical { background: #9f1853; }
.pyramid-level.high { background: #ea580c; }
.pyramid-level.medium { background: #eab308; color: var(--text); }

.pyramid-label { font-size: 11px; font-weight: 600; }
.pyramid-value { font-size: 28px; font-weight: 800; }
.pyramid-sublabel { font-size: 10px; opacity: 0.8; }

/* === MCM SITE GRID === */
.mcm-site-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.mcm-site-card {
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  color: white;
  border-radius: 10px;
  padding: 16px 24px;
  text-align: center;
  min-width: 100px;
}

.mcm-site-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mcm-site-value {
  font-size: 28px;
  font-weight: 800;
}

.mcm-site-label {
  font-size: 10px;
  opacity: 0.8;
}

/* === QUICK ACCESS === */
.quick-access-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.quick-access-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  text-align: center;
}

.quick-access-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s;
}

.quick-access-item:hover { transform: translateY(-4px); }
.quick-access-item:hover .quick-access-icon { transform: scale(1.25) rotate(5deg); border-color: var(--accent); box-shadow: 0 6px 16px rgba(255,153,0,0.3); }
.quick-access-item:active .quick-access-icon { transform: scale(0.95); }

.quick-access-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: #f8f9fa;
  border: 2px solid var(--border);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.quick-access-item:hover .quick-access-icon {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(255,153,0,0.2);
}

.quick-access-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* === TABLE === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead { background: #f8f9fa; }

.data-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-sec);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
}

.data-table tbody tr:hover { background: #f8fafc; }

/* === BADGES === */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge-critical { background: #fce4ec; color: #9f1853; }
.badge-high { background: #fef2f2; color: var(--red); }
.badge-medium { background: #fef9c3; color: #92400e; }
.badge-low { background: #f0fdf4; color: var(--green); }
.badge-sev1 { background: #fce4ec; color: #9f1853; }
.badge-sev2 { background: #fef2f2; color: var(--red); }
.badge-sev3 { background: #fff7ed; color: var(--orange); }
.badge-sev4 { background: #f0fdf4; color: var(--green); }
.badge-sev5 { background: #eff6ff; color: var(--blue); }

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 48px;
  color: var(--text-sec);
}

.empty-state-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state-text { font-size: 15px; font-weight: 500; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .panel-grid { grid-template-columns: 1fr 1fr; }
  .panel-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .panel-grid, .panel-grid-2 { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: repeat(3, 1fr); }
  #banner { padding: 12px 16px; }
  .banner-title { font-size: 18px; }
  #content-area { padding: 16px; }
}

/* === WEATHER WIDGET === */
.weather-widget {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 16px;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.2s;
}

.weather-widget:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.weather-current {
  display: flex;
  align-items: center;
  gap: 8px;
}

.weather-icon {
  font-size: 28px;
  animation: weatherBounce 3s ease-in-out infinite;
}

@keyframes weatherBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.weather-temp {
  font-size: 22px;
  font-weight: 800;
  color: #4ade80;
  font-family: 'Courier New', monospace;
}

.weather-forecast {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weather-day {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.weather-day-label {
  font-size: 9px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weather-day-range {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  font-family: 'Courier New', monospace;
}

.weather-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.2);
}

.weather-desc {
  font-size: 10px;
  color: #94a3b8;
  max-width: 80px;
  line-height: 1.3;
  text-align: center;
}

/* Weather tooltip on hover */
.weather-widget[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.weather-widget:hover[data-tooltip]::after {
  opacity: 1;
}

/* === CLICKABLE ELEMENTS === */
.clickable { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.clickable:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.clickable:active { transform: scale(0.98); }

.clickable-panel { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.clickable-panel:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

/* === FILTER CARDS === */
.filter-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.filter-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 100px;
  position: relative;
}

.filter-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.filter-card.active {
  border-width: 3px;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.filter-card-value { font-size: 24px; font-weight: 800; }
.filter-card-label { font-size: 11px; color: var(--text-sec); font-weight: 600; text-transform: uppercase; margin-top: 4px; }

.filter-active-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--green);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

.filter-alert {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  color: #1e40af;
  margin-top: 8px;
}

.filter-alert a { color: #1e40af; font-weight: 600; }

/* === CLUSTER MENU === */
.banner-logo { position: relative; cursor: pointer; }

.cluster-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a2332;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 8px;
  min-width: 180px;
  z-index: 200;
  margin-top: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

.cluster-option {
  padding: 8px 12px;
  border-radius: 4px;
  color: #e2e8f0;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.cluster-option:hover { background: rgba(255,255,255,0.1); }
.cluster-option.active { background: rgba(255,153,0,0.2); color: var(--accent); }

.coming-soon {
  background: #374151;
  color: #9ca3af;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 8px;
}

/* === ONCALL DROPDOWN === */
.quick-access-item { position: relative; }

.oncall-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  min-width: 200px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  animation: fadeInDown 0.2s ease;
}

.oncall-dropdown a {
  display: block;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  border-radius: 4px;
}

.oncall-dropdown a:hover { background: #f0f7ff; color: var(--primary); }

/* === MODAL === */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s;
}

@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

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

.modal-header h3 { margin: 0; font-size: 18px; }

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-sec);
  padding: 4px 8px;
  border-radius: 4px;
}

.modal-close:hover { background: #f0f0f0; }

.modal-body { padding: 20px; }

.site-btn {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
}

.site-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* === TABLE ROW HOVER (enhanced) === */
.data-table tbody tr:hover {
  background: linear-gradient(135deg, #e5f2ff 0%, #f0f7ff 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,115,187,0.1);
}

/* === TAB HOVER EFFECTS === */
.tab-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.tab-btn.active { animation: tabSelect 0.3s ease; }
@keyframes tabSelect { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* === NEON BORDER on header === */
#banner { border-bottom: 2px solid var(--accent); animation: neonPulse 3s ease-in-out infinite; }
@keyframes neonPulse {
  0%, 100% { border-bottom-color: var(--accent); box-shadow: 0 2px 8px rgba(255,153,0,0.3); }
  50% { border-bottom-color: #ffb84d; box-shadow: 0 2px 16px rgba(255,153,0,0.6); }
}

/* === LSE Modal Tabs === */
.lse-tab {
  padding: 12px 20px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.15s;
}
.lse-tab:hover { color: var(--text); background: #f8f9fa; }
.lse-tab.active { color: #0073bb; border-bottom-color: #0073bb; font-weight: 600; }

.lse-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec);
  display: block;
  margin-bottom: 4px;
}
.lse-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.15s;
}
.lse-input:focus { outline: none; border-color: #0073bb; box-shadow: 0 0 0 3px rgba(0,115,187,0.1); }

/* LSE modal wider */
.modal-content { max-height: 85vh; }

/* === Colo Escalation Site Buttons === */
.colo-site-btn {
  background: rgba(255,153,0,0.1);
  border: 2px solid rgba(255,153,0,0.3);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.colo-site-btn:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255,153,0,0.2);
  border-color: #ff9900;
  box-shadow: 0 6px 20px rgba(255,153,0,0.3);
}
.colo-site-btn:active { transform: scale(0.95); }

/* === SIMULATOR STYLES === */
.sim-card {
  background: white;
  border: 2px solid;
  border-radius: 16px;
  padding: 32px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.sim-card:hover { transform: translateY(-8px) scale(1.03); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
.sim-card .sim-icon { font-size: 48px; margin-bottom: 12px; }
.sim-card h3 { margin: 0 0 8px; font-size: 18px; }
.sim-card p { color: var(--text-sec); font-size: 13px; margin: 0 0 16px; }
.sim-card .sim-footer { font-size: 12px; font-weight: 600; }
.sim-card .sim-launch { margin-top: 16px; color: var(--primary); font-weight: 600; font-size: 14px; }

.sim-modal-content {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #0a0a0a;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  flex-shrink: 0;
}
.sim-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #ff9900; background: none; color: white;
  font-size: 16px; cursor: pointer; transition: transform 0.2s;
}
.sim-close:hover { transform: rotate(90deg); }
.sim-body { flex: 1; overflow-y: auto; padding: 12px; }
.sim-grid-3col { display: grid; grid-template-columns: 260px 1fr 320px; gap: 12px; height: 100%; }
.sim-panel { background: #111; border: 1px solid #333; border-radius: 8px; padding: 12px; overflow-y: auto; max-height: calc(100vh - 120px); }
.sim-panel h4 { margin: 0 0 12px; font-size: 14px; }
.sim-panel h5 { margin: 8px 0 6px; font-size: 11px; color: #888; text-transform: uppercase; }
.sim-section { margin-bottom: 12px; border-bottom: 1px solid #222; padding-bottom: 8px; }
.sim-btn { display: block; width: 100%; padding: 6px 10px; margin: 4px 0; border: none; border-radius: 4px; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.15s; text-align: left; }
.sim-btn:hover { transform: translateX(2px); opacity: 0.9; }
.sim-btn-green { background: #27ae6022; color: #27ae60; border: 1px solid #27ae60; }
.sim-btn-red { background: #e74c3c22; color: #e74c3c; border: 1px solid #e74c3c; }
.sim-btn-teal { background: #16a08522; color: #16a085; border: 1px solid #16a085; }
.sim-btn-sm { display: inline-block; width: auto; padding: 4px 8px; font-size: 10px; margin: 2px; }
.sim-btn-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.sim-log { font-size: 11px; color: #ccc; max-height: 200px; overflow-y: auto; font-family: monospace; line-height: 1.6; padding: 8px; background: #0a0a0a; border-radius: 4px; border: 1px solid #222; }
.lineup-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.lineup-card { border: 2px solid; border-radius: 8px; padding: 12px; text-align: center; }

@keyframes ledBlink { 0%,100%{opacity:1} 50%{opacity:0.3} }

@media (max-width: 1024px) {
  .sim-grid-3col { grid-template-columns: 1fr; }
  .sim-panel { max-height: none; }
}

/* Sim modal overlay should be transparent since content is full-screen */
#sim-modal.modal-overlay { background: none; padding: 0; }
#sim-modal .sim-body { flex: 1; overflow-y: auto; padding: 12px; }

/* === SLD Tab === */
.sld-toggle {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.sld-toggle.active { background: var(--primary); color: white; border-color: var(--primary); }
.sld-toggle:hover:not(.active) { background: #f0f7ff; border-color: var(--primary); }

.sld-drawing-btn {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.sld-drawing-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.sld-drawing-btn:hover:not(.active) { background: #f0f7ff; }

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
