/* WP Hockey Predictor - Admin Analysis Dashboard */
:root {
  --bg: #0d1117;
  --bg-sidebar: #0c0f14;
  --card-bg: #161b22;
  --card-hover: #1c2333;
  --border: #30363d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent: #F5B31B;
  --accent-dim: #c48f15;
  --success: #2ea043;
  --success-light: #3fb950;
  --danger: #da3633;
  --danger-light: #f85149;
  --warning: #d29922;
  --info: #58a6ff;
}

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

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

/* Sidebar */
.sidebar {
  width: 220px;
  min-height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.sidebar-brand {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-brand img { height: 28px; }
.sidebar-brand span {
  font-family: 'Anton', sans-serif;
  font-size: 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-nav { flex: 1; padding: 12px 0; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.sidebar-nav a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}
.sidebar-nav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(245,179,27,0.06);
}
.sidebar-nav .nav-icon { font-size: 16px; width: 20px; text-align: center; }
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

/* Main content */
.main {
  margin-left: 220px;
  flex: 1;
  min-height: 100vh;
}
.topbar {
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-title {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.topbar-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}
.content { padding: 28px 32px 60px; }

/* Page titles */
.page-heading {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.page-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* Stat cards grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
}
.stat-card.accent { border-color: var(--accent); }
.stat-card.success { border-color: var(--success); }
.stat-card.danger { border-color: var(--danger); }
.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.stat-value {
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  line-height: 1;
}
.stat-value.gold { color: var(--accent); }
.stat-value.green { color: var(--success-light); }
.stat-value.red { color: var(--danger-light); }
.stat-value.white { color: var(--text-primary); }
.stat-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Chart cards */
.chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.chart-row.single { grid-template-columns: 1fr; }
.chart-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.chart-title {
  font-family: 'Anton', sans-serif;
  font-size: 15px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.chart-wrap {
  position: relative;
  width: 100%;
  height: 280px;
}
.chart-wrap.tall { height: 360px; }
.chart-wrap.short { height: 220px; }

/* Highlight box */
.highlight-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}
.highlight-title {
  font-family: 'Anton', sans-serif;
  font-size: 15px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.highlight-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 13px;
}
.highlight-item .hl-label { color: var(--text-secondary); }
.highlight-item .hl-value { font-weight: 700; }
.highlight-item .hl-value.green { color: var(--success-light); }
.highlight-item .hl-value.gold { color: var(--accent); }
.highlight-item .hl-value.red { color: var(--danger-light); }

/* Data tables */
.data-table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}
.data-table-header {
  padding: 16px 20px 0;
}
.data-table-title {
  font-family: 'Anton', sans-serif;
  font-size: 15px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
table.dt {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.dt thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.dt thead th.right { text-align: right; }
table.dt tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
table.dt tbody td.right { text-align: right; }
table.dt tbody td.muted { color: var(--text-secondary); }
table.dt tbody tr:hover { background: rgba(255,255,255,0.02); }
table.dt tbody tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.badge.win { background: rgba(46,160,67,0.15); color: var(--success-light); }
.badge.loss { background: rgba(218,54,51,0.15); color: var(--danger-light); }

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
}
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
}

/* Responsive */
@media (max-width: 900px) {
  .chart-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .sidebar {
    left: -230px;
    transition: left 0.25s ease;
    z-index: 101;
  }
  .sidebar.open { left: 0; }
  .mobile-overlay.open { display: block; }
  .main { margin-left: 0; }
  .topbar { padding-left: 52px; }
  .content { padding: 20px 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
