/* === Base Reset & Typography === */
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: #0b1120; /* deep navy */
  color: #e2e8f0;      /* light gray text */
  line-height: 1.6;
}


    .filter-box {
      margin-bottom: 16px;
    }

    .filter-box input {
      padding: 8px 12px;
      border-radius: 6px;
      border: 1px solid #334155;
      background: #1e293b;
      color: #f8fafc;
      width: 100%;
      max-width: 300px;
    }

    .table-container {
      overflow-x: auto;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      background: #1e293b;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }

    thead {
      background: #0f172a;
    }

    th {
      text-align: left;
      padding: 12px 16px;
      font-size: 0.95rem;
      color: #93c5fd;
      cursor: pointer;
      border-bottom: 1px solid #334155;
    }

    td {
      padding: 10px 16px;
      font-size: 0.95rem;
      border-bottom: 1px solid #334155;
    }



    tbody tr:nth-child(even) {
      background: #27364a;
    }

    tbody tr:hover {
      background: #334155;
    }




h1, h2, h3, h4 {
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.5em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

/* === Header Bar === */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #1e293b, #0f172a);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.header-bar .logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #60a5fa;
}
.header-bar .controls input {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f8fafc;
  margin-right: 8px;
}
.header-bar .controls button {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.header-bar .controls button:hover {
  background: #3b82f6;
}

/* === Sidebar === */
.sidebar {
  background: #111827;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.sidebar h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: #94a3b8;
}
.sidebar button {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  cursor: pointer;
  transition: background .2s;
}
.sidebar button:hover {
  background: #334155;
}
.sidebar button.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
}

/* === Profile Cards === */
.profile-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.profile-card {
  flex: 1;
  min-width: 220px;
  background: #1e293b;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform .2s;
}
.profile-card:hover {
  transform: translateY(-3px);
}
.profile-card h4 {
  margin-bottom: 8px;
  color: #60a5fa;
}

/* === Chart Cards === */
.chart-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.chart-card {
  background: #1e293b;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.chart-card.full {
  grid-column: 1 / -1;
}
.chart-card h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: #f1f5f9;
}

/* === Buttons & Interactions === */
button {
  font-family: inherit;
  font-size: 0.95rem;
}
button:focus {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}
/* === Light Mode Overrides === */
body.light-mode {
  background: #f9fafb; /* light gray background */
  color: #1e293b;      /* dark text */
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4 {
  color: #111827;
}

body.light-mode .header-bar {
  background: linear-gradient(90deg, #f3f4f6, #e5e7eb);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
body.light-mode .header-bar .logo {
  color: #2563eb;
}
body.light-mode .header-bar .controls input {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #111827;
}
body.light-mode .header-bar .controls button {
  background: #2563eb;
  color: #fff;
}

body.light-mode .sidebar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
body.light-mode .sidebar h3 {
  color: #475569;
}
body.light-mode .sidebar button {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
}
body.light-mode .sidebar button:hover {
  background: #e2e8f0;
}
body.light-mode .sidebar button.active {
  background: #2563eb;
  color: #fff;
}

body.light-mode .profile-card,
body.light-mode .chart-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
body.light-mode .profile-card h4 {
  color: #2563eb;
}
body.light-mode .chart-card h3 {
  color: #111827;
}

.table-wrap { display:flex; justify-content:center; width:100%; }
.table-wrap table {
  border-collapse: collapse;
  width: 360px;
  max-width: 100%;
  background: rgba(15, 23, 42, 0.6);
  color: #f0f4f8;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.table-wrap th {
  background: rgba(30, 41, 59, 0.8);
  padding:12px;
  font-weight:700;
  color:#ffffff;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.table-wrap td {
  padding:10px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 14px;
}

/* Base link style */
a {
  color: #60a5fa;              /* bright blue accent */
  text-decoration: none;
  font-weight: 500;
  transition: color .2s, border-bottom .2s;
  border-bottom: 1px solid transparent;
}

/* Hover state */
a:hover {
  color: #93c5fd;              /* lighter blue */
  border-bottom: 1px solid #93c5fd;
}

/* Focus state (keyboard navigation) */
a:focus {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

/* Visited links */
a:visited {
  color: #818cf8;              /* purple‑blue for visited */
}
