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

body {
  font-family: system-ui, sans-serif;
  background: #0f0f13;
  color: #e2e8f0;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ── App header ── */
header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.75rem 0 0.5rem;
  border-bottom: 1px solid #1e1e2e;
  font-size: 0.9rem;
  color: #94a3b8;
}

#tab-nav {
  display: flex;
  gap: 0;
}

.tab-btn {
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #64748b;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}

.tab-btn:hover { color: #94a3b8; }

.tab-btn.active {
  color: #e2e8f0;
  border-bottom-color: #6366f1;
}

/* ── Hamburger button ── */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.4rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #64748b;
  border-radius: 1px;
  transition: background 0.15s;
}
.hamburger-btn:hover { border-color: #2d2d3a; }
.hamburger-btn:hover span { background: #e2e8f0; }

/* ── Side drawer ── */
.side-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
}

.side-drawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 220px;
  background: #1a1a24;
  border-right: 1px solid #2d2d3a;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

.side-drawer a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s, background 0.15s;
}
.side-drawer a:hover {
  color: #e2e8f0;
  background: #22223a;
}

/* ── Main / tab panels ── */
main {
  padding: 2rem 1.5rem;
  min-height: calc(100vh - 57px);
}

#main-tabs, #main-lists-page { height: 100%; }

.tab-panel h1 { font-size: 2rem; font-weight: 700; letter-spacing: 0.05em; }

/* ── Mobile Drawer Navigation Styling ── */
.drawer-tabs {
  display: flex;
  flex-direction: column;
}

.drawer-tab-btn {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s, background 0.15s;
}

.drawer-tab-btn:hover {
  color: #e2e8f0;
  background: #22223a;
}

.drawer-tab-btn.active {
  color: #e2e8f0;
  background: #22223a;
  border-left: 3px solid #6366f1;
  padding-left: calc(1.25rem - 3px);
}

.drawer-divider {
  border: 0;
  height: 1px;
  background: #2d2d3a;
  margin: 0.5rem 0;
}

/* ── Responsive media queries ── */
@media (max-width: 768px) {
  #tab-nav {
    display: none !important;
  }
  .drawer-tabs {
    display: block !important;
  }
}

@media (min-width: 769px) {
  .drawer-tabs {
    display: none !important;
  }
}
