/*==============================================
  STREAMZONE PORTAL — DASHBOARD CSS
  Responsive: Mobile / Tablet / Desktop
================================================*/

:root {
  --bg: #050816;
  --card: #0F1729;
  --primary: #00E5FF;
  --muted: #98A2B3;
  --border: rgba(255,255,255,.06);
  --success: #22c55e;
  --danger: #ef4444;
  --sidebar-w: 260px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: white;
  overflow-x: hidden;
  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;
}

/* ── CONTENT ─────────────────────────────── */
.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;
}

.welcomeBox { display: flex; flex-direction: column; }
.welcomeBox h1 { font-size: 28px; font-weight: 700; }
.welcomeBox p { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* ── STATS GRID ─────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.card-stat {
  background: rgba(15,23,41,.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 18px;
  transition: .3s;
}
.card-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(0,229,255,.07);
}
.card-stat h3 { font-size: 13px; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.card-stat h2 { font-size: 30px; font-weight: 700; }

/* ── 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; }

/* ── SERVICES GRID ──────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.service-card {
  background: rgba(15,23,41,.9);
  backdrop-filter: blur(16px);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  transition: .3s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(0,229,255,.08);
}
.service-card h3 { margin-bottom: 16px; font-size: 17px; }
.service-card p { margin-bottom: 8px; font-size: 14px; color: var(--muted); }

/* ── TABLE ──────────────────────────────── */
.history-card {
  background: rgba(15,23,41,.9);
  backdrop-filter: blur(16px);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow-x: auto;
}

table { width: 100%; border-collapse: collapse; min-width: 400px; }
thead { background: #0d1528; }
th { padding: 14px 16px; text-align: left; font-size: 13px; color: var(--muted); font-weight: 500; }
td { padding: 14px 16px; font-size: 14px; border-top: 1px solid rgba(255,255,255,.04); }
tbody tr:hover { background: rgba(255,255,255,.02); }

/* ── MOBILE ─────────────────────────────── */
.mobile-menu { display: none; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .content { margin-left: 0; padding: 20px 16px 30px; }
  .topbar { margin-bottom: 22px; }
  .welcomeBox h1 { font-size: 22px; }
  .welcomeBox p { font-size: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-stat { padding: 16px; }
  .card-stat h2 { font-size: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 17px; }
  .mobile-menu { display: flex; }
}

@media (max-width: 480px) {
  .content { padding: 14px 10px 28px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-stat { padding: 14px; }
  .card-stat h2 { font-size: 22px; }
  .card-stat h3 { font-size: 11px; }
}