/*==============================================
  STREAMZONE PORTAL — SIDEBAR RESPONSIVE
  Full mobile/tablet/desktop support
================================================*/

:root {
  --bg: #050816;
  --card: #0F1729;
  --primary: #00E5FF;
  --primaryHover: #00C8E0;
  --text: #FFFFFF;
  --muted: #98A2B3;
  --border: rgba(255,255,255,.06);
  --sidebar-w: 260px;
  --topbar-h: 64px;
  --radius: 16px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: -250px; left: -250px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,.1), transparent 70%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

/* ── SIDEBAR ─────────────────────────────── */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  padding: 28px 18px;
  background: rgba(9,16,36,.97);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(0,229,255,.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2000;
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}

.sidebar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  text-decoration: none;
  color: white;
  letter-spacing: -.5px;
}
.logo span { color: var(--primary); }

.close-sidebar {
  display: none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: white;
  font-size: 18px;
  width: 36px; height: 36px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: .2s;
}
.close-sidebar:hover { background: rgba(239,68,68,.2); color: #f87171; }

/* ── MENU ───────────────────────────────── */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: .2s;
}
.menu-item:hover {
  background: rgba(0,229,255,.08);
  color: white;
}
.menu-item.active {
  background: rgba(0,229,255,.12);
  border: 1px solid rgba(0,229,255,.22);
  color: white;
}
.menu-item span { font-size: 18px; flex-shrink: 0; }

/* ── FOOTER ─────────────────────────────── */
.sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.05);
  margin-top: 20px;
}

.logout-btn {
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(239,68,68,.25);
  cursor: pointer;
  border-radius: 12px;
  background: rgba(239,68,68,.06);
  color: #f87171;
  font-size: 14px;
  font-weight: 600;
  transition: .2s;
  font-family: inherit;
}
.logout-btn:hover {
  background: rgba(239,68,68,.15);
  border-color: rgba(239,68,68,.5);
}

/* ── OVERLAY ────────────────────────────── */
.sidebar-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 1990;
}
.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ── MOBILE MENU BUTTON ─────────────────── */
.mobile-menu {
  display: none;
  background: var(--primary);
  width: 44px; height: 44px;
  border: none;
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
  color: black;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(0,229,255,.3);
  transition: .2s;
}
.mobile-menu:hover { transform: scale(1.05); }

/* ── CONTENT AREA ───────────────────────── */
.content {
  margin-left: var(--sidebar-w);
  padding: 40px;
  min-height: 100vh;
}

/* ── TOPBAR ─────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.topbar h1 { font-size: 28px; font-weight: 700; }
.topbar p { margin-top: 4px; color: var(--muted); font-size: 14px; }

/* ── SECTION TITLE ──────────────────────── */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  margin-top: 32px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-title h2 { font-size: 20px; font-weight: 700; }

/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .content { padding: 30px; }
  .topbar h1 { font-size: 24px; }
}

/* Mobile */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .close-sidebar { display: flex; }
  .mobile-menu { display: flex; }

  .content {
    margin-left: 0;
    padding: 20px 16px 30px;
  }

  .topbar {
    margin-bottom: 24px;
  }
  .topbar h1 { font-size: 20px; }
  .topbar p { font-size: 12px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .content { padding: 16px 12px 28px; }
}
