/* Header bar */
.dashboard-header {
  background-color: #111827;
  border-bottom: 1px solid #1F2937;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0.5rem;
}

/* Custom styles for MAGS Dashboard */
.score-gauge {
  position: relative;
  width: 180px;
  height: 100px;
  margin: 0 auto;
}

.gauge-svg {
  width: 100%;
  height: 100%;
}

.gauge-bg {
  fill: none;
  stroke: #374151;
  stroke-width: 12;
  stroke-linecap: round;
}

.gauge-fill {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-in-out;
}

.gauge-text {
  font-size: 2.5rem;
  font-weight: 700;
  text-anchor: middle;
}

.gauge-label {
  font-size: 1rem;
  text-anchor: middle;
  fill: #9CA3AF;
}

/* Heatmap cell animation */
.heatmap-cell {
  transition: transform 0.2s, box-shadow 0.2s;
}
.heatmap-cell:hover {
  transform: scale(1.02);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.4);
}

/* Heatmap popup overlay */
.heatmap-popup {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.15s ease;
}
.heatmap-popup.hidden {
  display: none;
}
.heatmap-popup-inner {
  animation: slideUp 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stock card */
.stock-card {
  transition: border-color 0.2s;
}
.stock-card:hover {
  border-color: #6B7280;
}

/* Stock card abbreviation tooltips */
.stock-abbr {
  text-decoration: none;
  border-bottom: 1px dotted #6B7280;
  cursor: help;
}

/* Return badge */
.return-positive { color: #10B981; }
.return-negative { color: #EF4444; }
.return-neutral { color: #9CA3AF; }

/* Scenario card */
.scenario-card {
  transition: border-color 0.2s;
}
.scenario-card:hover {
  border-color: #6B7280;
}

/* Guide toggle */
#guide-chevron.rotate-180 {
  transform: rotate(180deg);
}

#guide-body {
  transition: max-height 0.3s ease;
}

/* Direction arrows */
.arrow-up::before { content: "▲ "; color: #10B981; font-size: 0.75rem; }
.arrow-down::before { content: "▼ "; color: #EF4444; font-size: 0.75rem; }
.arrow-flat::before { content: "▬ "; color: #9CA3AF; font-size: 0.75rem; }
