/* ==========================================================================
   서울시 따릉이 인터랙티브 대시보드 Modern Design System
   ========================================================================== */

:root {
  /* Color Palette - Modern Dark Slate & Seoul Bike Vivid Emerald */
  --bg-primary: #0a0f1d;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(24, 32, 53, 0.9);
  --bg-elevated: #1f293d;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(16, 185, 129, 0.5);

  /* Brand & Accent Colors */
  --bike-green: #10b981;
  --bike-green-glow: rgba(16, 185, 129, 0.25);
  --bike-emerald: #059669;
  --bike-light-green: #34d399;
  --bike-blue: #38bdf8;
  --bike-blue-glow: rgba(56, 189, 248, 0.25);
  --accent-orange: #f59e0b;
  --accent-purple: #818cf8;
  --accent-rose: #f43f5e;
  
  /* Text Colors */
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-light: #e5e7eb;

  /* Typography */
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Shadows & Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.55);
  --shadow-glow-green: 0 0 35px rgba(16, 185, 129, 0.25);
  --shadow-glow-blue: 0 0 35px rgba(56, 189, 248, 0.25);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  background-image: 
    radial-gradient(at 15% 15%, rgba(16, 185, 129, 0.09) 0px, transparent 45%),
    radial-gradient(at 85% 20%, rgba(56, 189, 248, 0.09) 0px, transparent 45%),
    radial-gradient(at 50% 85%, rgba(129, 140, 248, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* App Container */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 16px;
  z-index: 50;
  transition: all var(--transition-normal);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.4));
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bike-light-green);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
  flex-shrink: 0;
}

.bike-svg {
  width: 30px;
  height: 30px;
}

.title-with-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.title-with-pill h1 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #ffffff, #e5e7eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  font-size: 0.78rem;
  font-weight: 600;
  color: #34d399;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.header-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.quick-status-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #38bdf8;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

/* ==========================================================================
   Section: 기간별 인터랙티브 필터 컨트롤
   ========================================================================== */
.filter-control-section {
  width: 100%;
}

.filter-bar-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.filter-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-main-icon {
  font-size: 1.4rem;
}

.filter-text-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.filter-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.period-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.period-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.period-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.period-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.4));
  border-color: var(--bike-green);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.p-icon {
  font-size: 0.95rem;
}

/* ==========================================================================
   Station Focus Banner (활성화 시 대여소 상세 표시)
   ========================================================================== */
.station-focus-banner {
  width: 100%;
  animation: slideDown 0.3s ease-out;
}

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

.focus-card {
  background: linear-gradient(135deg, rgba(31, 41, 61, 0.9) 0%, rgba(17, 24, 39, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.15);
}

.focus-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.focus-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.04em;
}

.focus-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.focus-tags {
  display: flex;
  gap: 8px;
}

.tag-pill {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
}

.tag-id {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.tag-rank {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-orange);
}

.tag-type {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.focus-stats {
  display: flex;
  gap: 24px;
}

.focus-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.f-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.f-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #38bdf8;
}

.btn-reset {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-reset:hover {
  background: rgba(244, 63, 94, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero KPI Section (총 이용건수 & 운영 대여소 수)
   ========================================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hero-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-rentals:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-lg), var(--shadow-glow-green);
}

.card-stations:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}

.hero-card-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-card-glow.blue-glow {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
}

.card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.green-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.blue-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
}

.card-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.green-icon {
  background: rgba(16, 185, 129, 0.12);
  color: var(--bike-light-green);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.blue-icon {
  background: rgba(56, 189, 248, 0.12);
  color: var(--bike-blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* Metric Display Numbers */
.hero-metric-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.hero-number {
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  transition: all 0.3s ease;
}

.card-rentals .hero-number {
  background: linear-gradient(135deg, #ffffff 30%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-stations .hero-number {
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-unit {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  min-height: 22px;
}

/* Breakdown Row */
.metric-breakdown-row {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  gap: 16px;
  margin-bottom: 16px;
}

.breakdown-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.breakdown-divider {
  width: 1px;
  height: 34px;
  background: var(--border-subtle);
}

.sub-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

.sub-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sub-ratio {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-left: 3px;
}

/* Progress Bar */
.progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
}

.progress-bar {
  height: 100%;
  transition: width 0.6s ease-in-out;
}

.weekday-bar {
  background: linear-gradient(90deg, #059669, #10b981);
}

.progress-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
}

.weekday-dot { background: #10b981; }

/* Station Meta Pills */
.station-meta-pill-box {
  display: flex;
  gap: 12px;
}

.meta-pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pill-title {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pill-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bike-blue);
}

/* ==========================================================================
   Analytics Explorer Grid (Chart & Top Stations)
   ========================================================================== */
.analytics-grid {
  display: grid;
  grid-template-columns: 1.65fr 1.35fr;
  gap: 24px;
}

.chart-panel, .stations-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title-group h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.panel-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.panel-sub strong {
  color: #38bdf8;
}

.chart-tag-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* SVG Chart */
.chart-wrapper {
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svg-chart-container {
  width: 100%;
  height: 250px;
  position: relative;
}

.svg-chart-container svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-bar {
  cursor: pointer;
  transition: fill var(--transition-fast), filter var(--transition-fast), transform var(--transition-fast);
}

.chart-bar:hover {
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.8)) brightness(1.2);
}

.chart-labels-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0 8px;
}

.peak-label {
  color: #34d399;
  font-weight: 700;
}

.chart-insight-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.45;
}

/* Stations Rank List (Interactive & Clickable) */
.station-list-container {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 4px;
}

.station-list-container::-webkit-scrollbar {
  width: 6px;
}

.station-list-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}

.station-rank-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.rank-item:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateX(4px);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.15);
}

.rank-item.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.rank-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rank-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.rank-item:nth-child(1) .rank-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.rank-item:nth-child(2) .rank-badge {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #ffffff;
}

.rank-item:nth-child(3) .rank-badge {
  background: linear-gradient(135deg, #b45309, #78350f);
  color: #ffffff;
}

.rank-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rank-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.rank-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.rank-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
}

.rank-action-hint {
  font-size: 0.68rem;
  color: #10b981;
  font-weight: 600;
}

/* ==========================================================================
   Section 3: Search & Station Table
   ========================================================================== */
.search-summary-section {
  width: 100%;
}

.search-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.search-header-row h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.search-header-row p {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.search-input-wrap {
  position: relative;
  width: 340px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--text-muted);
}

#station-search-input {
  width: 100%;
  padding: 10px 36px 10px 36px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-fast);
}

#station-search-input:focus {
  border-color: var(--bike-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px;
}

.clear-btn:hover {
  color: #ffffff;
}

/* Data Table */
.search-results-table-wrap {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
}

.search-results-table-wrap::-webkit-scrollbar {
  width: 6px;
}

.search-results-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.data-table th {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-light);
}

.table-row-clickable {
  cursor: pointer;
  transition: background var(--transition-fast);
}

.table-row-clickable:hover td {
  background: rgba(56, 189, 248, 0.08);
}

.table-row-clickable.selected td {
  background: rgba(56, 189, 248, 0.16);
}

.table-rank {
  font-weight: 700;
  color: var(--text-muted);
}

.table-num {
  font-family: monospace;
  font-weight: 600;
  color: var(--bike-blue);
}

.table-val-bold {
  font-weight: 700;
  color: #34d399;
}

.btn-table-view {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-table-view:hover {
  background: var(--bike-green);
  color: #ffffff;
}

/* Tooltip */
.chart-tooltip {
  position: absolute;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 0.8rem;
  color: #ffffff;
  pointer-events: none;
  transform: translate(-50%, -100%);
  margin-top: -10px;
  z-index: 100;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.dashboard-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  margin-top: 12px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-separator {
  color: var(--border-subtle);
}

.footer-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #6ee7b7;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-container {
    padding: 16px;
  }
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .focus-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .focus-stats {
    flex-wrap: wrap;
  }
  .hero-number {
    font-size: 2.6rem;
  }
  .search-input-wrap {
    width: 100%;
  }
}
