/* ----------------------------------------------------------
   GLOBAL BASE
---------------------------------------------------------- */
:root {
  --bg: #f5f5f5;
  --fg: #1e1e1e;
  --card-bg: #ffffff;
  --accent: #4aa3ff;
  --accent-hover: #2e8ae6;
  --border: #cccccc;
  --nav-bg: #ffffffaa;
}

:root.dark {
  --bg: #121212;
  --fg: #e8e8e8;
  --card-bg: #1e1e1e;
  --accent: #5bb9ff;
  --accent-hover: #3da4e8;
  --border: #333333;
  --nav-bg: #000000aa;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  transition: background 0.25s, color 0.25s;
}

/* ----------------------------------------------------------
   NAVBAR
---------------------------------------------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  background: var(--nav-bg);
  padding: 12px 18px;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--border);
}

.nav-left a {
  margin-right: 18px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
}

.nav-left a:hover {
  color: var(--accent);
}

.nav-left .active {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

#theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.25s;
}

#theme-toggle:hover {
  background: var(--accent);
  color: black;
}

/* ----------------------------------------------------------
   LAYOUT + CONTENT
---------------------------------------------------------- */
.hero {
  padding: 40px 25px;
  text-align: center;
}

.content {
  max-width: 900px;
  margin: auto;
  padding: 25px;
}

h1, h2 {
  margin-top: 0;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  background: var(--accent);
  color: black;
  border-radius: 8px;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
}

/* ----------------------------------------------------------
   DASHBOARD CONTROLS
---------------------------------------------------------- */
#controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

#controls input,
#controls select,
#controls button {
  padding: 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--fg);
  border-radius: 6px;
}

#controls button {
  cursor: pointer;
  background: var(--accent);
  color: black;
}

#controls button:hover {
  background: var(--accent-hover);
}

/* ----------------------------------------------------------
   RESULTS
---------------------------------------------------------- */
#results {
  margin-top: 20px;
}

.event-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

.event-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}

/* ----------------------------------------------------------
   MOBILE
---------------------------------------------------------- */
@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-left a {
    margin-right: 10px;
  }
}

/* ----------------------------------------------------------
    TABLE BASE
---------------------------------------------------------- */
#events-table {
  width: 100%;
  border-collapse: collapse;
  background: #1a1a1a;
  color: #eaeaea;
  font-size: 15px;
  border-radius: 8px;
  overflow: hidden;
}

#events-table th {
  background: #222;
  text-align: left;
  padding: 12px;
  font-weight: 600;
  border-bottom: 2px solid #333;
}

#events-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #2e2e2e;
}

#events-table tr:hover {
  background: rgba(255,255,255,0.05);
}

/* ----------------------------------------------------------
    DETAILS ROW
---------------------------------------------------------- */
.details-row {
  background: #111;
}

.details-cell {
  padding: 15px;
  border-left: 3px solid #444;
  font-size: 14px;
}

/* ----------------------------------------------------------
    CHIPS
---------------------------------------------------------- */
.chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.chip-streamer {
  background: #444;
}

.chip-location {
  background: #555;
}

/* ----------------------------------------------------------
    COLOR OVERRIDES (test examples to change)
---------------------------------------------------------- */
.streamer-Wubby { background: #ff9c44; }
.streamer-Goosey { background: #3cd6c6; }
.streamer-GEEGA { background: #d63e3e; }

.location-BGHQ { background: #7a5e3a; }
.location-Wilderness { background: #2f6d2f; }
.location-Snow { background: #555555; }

/* ----------------------------------------------------------
    DETAILS BUTTON
---------------------------------------------------------- */
.details-btn {
  cursor: pointer;
  padding: 4px 10px;
  background: #333;
  border: 1px solid #555;
  border-radius: 6px;
  color: #f2f2f2;
}

.details-btn:hover {
  background: #444;
}

/* ----------------------------------------------------------
    FREEZE SEARCH PANE
---------------------------------------------------------- */
.dashboard-controls {
    position: sticky;
    max-width: 1200px;
    top: 60px; /* below navbar */
    background: var(--bg);
    padding: 1rem 0;
    z-index: 5;
}

/* ----------------------------------------------------------
    DASH LAYOUT CONTAINER
---------------------------------------------------------- */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* ----------------------------------------------------------
    DASH LAYOUT SETTINGS
---------------------------------------------------------- */
#eventsTable {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#eventsTable th,
#eventsTable td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    word-wrap: break-word;
}

#eventsTable th:nth-child(1) { width: 70px; }  /* date 80px; */
#eventsTable th:nth-child(2) { width: 100px; }  /* category 120px; */
#eventsTable th:nth-child(3) { width: auto; }  /* activity 180px; */
#eventsTable th:nth-child(4) { width: 100px; }  /* streamer perspective 120px; */
#eventsTable th:nth-child(5) { width: auto; }  /* location 150px; */
#eventsTable th:nth-child(6) { width: auto; }  /* summary auto; */

