/* === IGNITE LMS – Full Themed Redesign (CLEANED) === */

/* ---------- CORE THEME VARIABLES ---------- */

:root {
  --ignite-coral: #ff6b7a;
  --ignite-amber: #ffb341;
  --ignite-teal:  #00c4b3;
  --ignite-deep:  #050812;

  --bg: #050609;
  --bg-soft: #0b1018;
  --surface: rgba(13, 18, 30, 0.96);
  --surface-soft: rgba(18, 24, 39, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.16);
  --muted: #9ca5bc;
  --text: #f5f7ff;

  --topbar-h: 48px;

  /* ✅ add these for fixed hero + fixed sidebar + scroll main */
  --hero-h: 260px;               /* height of IGNITE banner area */
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 74px;

  --accent:   var(--ignite-teal);
  --accent-2: var(--ignite-coral);
  --accent-3: var(--ignite-amber);

  --radius-lg:   20px;
  --radius-md:   14px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.6);
}

:root[data-theme="light"],
html[data-theme="light"] {
  --bg: #f7f8fc;
  --bg-soft: #eef1fb;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.9);
  --border-subtle: rgba(15, 23, 42, 0.06);
  --border-strong: rgba(15, 23, 42, 0.14);
  --muted: #5e6476;
  --text: #070b18;

  --topbar-h: 48px;

  /* keep same layout sizes in light theme */
  --hero-h: 260px;
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 74px;

  --accent:   #00a7a0;
  --accent-2: #ff5f7c;
  --accent-3: #ff9e38;
}

/* ---------- GLOBAL RESET & BODY ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, Poppins, system-ui, -apple-system, "Segoe UI", Roboto,
    Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(950px 600px at 5% -10%, rgba(255, 107, 122, 0.15), transparent),
    radial-gradient(900px 600px at 110% 20%, rgba(0, 196, 179, 0.18), transparent),
    radial-gradient(900px 600px at 50% 100%, rgba(255, 179, 65, 0.12), transparent),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  animation: bodyFadeIn 0.6s ease-out;

  /* ✅ important: prevent page scroll; only .main will scroll */
  overflow: hidden;
}

@keyframes bodyFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes topbarGlow {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes neonSpin{
  0%{ transform: rotate(0deg); }
  100%{ transform: rotate(360deg); }
}

@keyframes btnGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes igniteFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- HERO / TOP BAR ---------- */

/* ✅ FIXED HERO (BANNER) — stays on screen */
.hero{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--hero-h);
  padding-top: var(--topbar-h);
  overflow: hidden;
  isolation: isolate;
  z-index: 950;
}

/* Glow blobs behind hero */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  background: radial-gradient(circle at 30% 0%, var(--ignite-coral), transparent);
  top: -120px;
  left: -60px;
}

.hero::after {
  background: radial-gradient(circle at 70% 0%, var(--ignite-teal), transparent);
  top: -160px;
  right: -40px;
}

/* Topbar stays fixed at top */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  padding: 0 22px;

  background:
    radial-gradient(900px 400px at 0% 0%, rgba(255, 107, 122, 0.20), transparent),
    radial-gradient(900px 400px at 100% 0%, rgba(0, 196, 179, 0.22), transparent),
    rgba(5, 7, 16, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);

  overflow: hidden;
  transition:
    background 0.6s ease,
    box-shadow 0.5s ease,
    border-color 0.5s ease,
    transform 0.25s ease;
}

/* animated galaxy / lighting layer */
.topbar::before{
  content:"";
  position:absolute;
  inset:-140% -60%;
  background: conic-gradient(
    from 0deg,
    rgba(255,107,122,0),
    rgba(255,107,122,.55),
    rgba(255,179,65,.65),
    rgba(0,196,179,.65),
    rgba(0,196,179,0)
  );
  filter: blur(32px);
  opacity:.55;
  animation: neonSpin 12s linear infinite;
  pointer-events:none;
  z-index:-1;
}

/* subtle glass highlight strip */
.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.10),
    transparent 40%,
    rgba(0, 0, 0, 0.35)
  );
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: -1;
}

/* small lift when hovered */
.topbar:hover {
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Inline navigation */
.inline-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.inline-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.18s ease-out, transform 0.18s ease-out;
}

.inline-nav a::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ignite-coral), var(--ignite-teal));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease-out;
}

.inline-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.inline-nav a:hover::after {
  transform: scaleX(1);
}

/* Buttons */
.icon-btn,
.btn,
.chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), transparent),
    rgba(7, 10, 18, 0.9);
  color: var(--text);
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.2s ease-out,
    background 0.2s ease-out;
  backdrop-filter: blur(12px);
}

.icon-btn:hover,
.btn:hover,
.chip-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  border-color: var(--border-strong);
}

/* Primary CTA */
.btn.primary {
  border-color: transparent;
  background: linear-gradient(
    130deg,
    var(--ignite-teal),
    var(--ignite-amber),
    var(--ignite-coral)
  );
  background-size: 200% 200%;
  animation: btnGradient 6s ease infinite;
  color: #05060a;
  font-weight: 600;
}

.btn.ghost {
  background: rgba(5, 7, 15, 0.75);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Hero content */
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 64px 22px 72px;
  text-align: center;
}

/* single unified hero title block (no duplicates) */
.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: clamp(30px, 4.8vw, 50px);
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-title .hero-logo {
  height: 1em;
  width: auto;
  object-fit: contain;
  display: inline-block;
  transform: translateY(3px);
}

/* gradient text for any span inside hero-title */
.hero-title span {
  background: linear-gradient(
    90deg,
    var(--ignite-coral),
    var(--ignite-amber),
    var(--ignite-teal),
    var(--ignite-coral)
  );
  background-size: 300% 300%;
  animation: igniteFlow 6s ease infinite;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero background image & overlay */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: center/cover no-repeat;
  filter: saturate(0.9) contrast(0.95) brightness(0.6);
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
      circle at 50% 0,
      rgba(3, 7, 18, 0.4),
      rgba(3, 7, 18, 0.95)
    ),
    linear-gradient(180deg, rgba(5, 7, 16, 0.8), rgba(5, 7, 16, 0.96));
}

/* ---------- APP LAYOUT / SIDEBAR ---------- */

/* ✅ App area sits UNDER fixed hero; does NOT scroll */
.app{
  position: fixed;
  top: var(--hero-h);
  left: 0; right: 0; bottom: 0;
  padding-left: var(--sidebar-w);
}

/* ✅ Sidebar fixed (below hero) */
.sidebar{
  position: fixed;
  top: var(--hero-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--hero-h));
  padding: 18px 14px;
  overflow-y: auto;

  background: linear-gradient(
      180deg,
      rgba(3, 7, 18, 0.96),
      rgba(3, 7, 18, 0.98)
    );
  border-right: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.75);
  z-index: 900;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition:
    border-color 0.2s ease-out,
    background 0.2s ease-out,
    color 0.2s ease-out,
    transform 0.18s ease-out;
  text-align: left;
}

.nav-item .icon {
  width: 22px;
  text-align: center;
}

.nav-item:hover {
  border-color: var(--border-subtle);
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), transparent);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-item.active {
  background: radial-gradient(circle at 0 0, rgba(255, 107, 122, 0.22), transparent),
    radial-gradient(circle at 100% 100%, rgba(0, 196, 179, 0.25), transparent),
    rgba(10, 12, 20, 0.95);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
}

.divider {
  height: 1px;
  margin: 12px 0;
  background: radial-gradient(circle at 50% 50%, var(--border-subtle), transparent);
}

.sidebar.collapsed {
  width: var(--sidebar-w-collapsed);
}

.sidebar.collapsed .nav-item {
  justify-content: center;
}

.sidebar.collapsed .nav-item span {
  display: none;
}

.sidebar.collapsed .nav-item .icon {
  display: block;
}

/* ✅ if your JS toggles "collapsed", main should shift too */
.app.sidebar-collapsed{
  padding-left: var(--sidebar-w-collapsed);
}

/* ---------- MAIN CONTENT & SECTIONS ---------- */

/* ✅ ONLY MAIN SCROLLS */
.main{
  height: 100%;
  overflow-y: auto;
  padding: 26px 22px 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

/* Search + Filters */
.search input {
  background: rgba(13, 18, 30, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  min-width: 260px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s;
}

.search input::placeholder {
  color: rgba(149, 157, 181, 0.9);
}

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 196, 179, 0.45), 0 6px 20px rgba(0, 196, 179, 0.2);
  background: rgba(10, 16, 28, 0.92);
}

.filters select {
  background: rgba(13, 18, 30, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  font-size: 0.9rem;
  outline: none;
}

/* Grids */
.grid {
  display: grid;
  gap: 18px;
  margin: 16px 0 24px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cards */
.card {
  position: relative;
  padding: 16px 16px 18px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), transparent),
    var(--surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.2s ease-out,
    border-color 0.2s ease-out,
    background 0.2s ease-out;
  backdrop-filter: blur(18px);
}

.card h3 {
  margin: 6px 0 12px;
  font-size: 1rem;
}

.card.thin {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.14);
}

/* News feed inside the dashboard card */
#newsCard .content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-feed {
  margin-top: 10px;
  max-height: calc((0.72rem * 3) + (8px * 3) + 30px);
  overflow-y: auto;
  padding-right: 4px;
}

.news-item {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.news-item a {
  display: block;
  text-decoration: none;
  color: var(--ignite-teal);
  font-weight: 500;
  font-size: 0.75rem;
}

.news-item p {
  font-size: 0.65rem;
  opacity: 0.75;
  margin: 3px 0 0;
}

/* Cover style cards */
#badgeSlider {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cover {
  color: #f4f6ff;
  background-size: cover;
  background-position: center;
}

.cover .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 7, 18, 0.15),
    rgba(3, 7, 18, 0.85)
  );
}

.cover .content {
  position: relative;
  z-index: 1;
}

.cover.sm {
  min-height: 200px;
}

.welcome {
  min-height: 230px;
  display: flex;
  align-items: flex-end;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Chips & badges */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at 0 0, rgba(0, 196, 179, 0.22), transparent),
    rgba(8, 13, 22, 0.9);
  border: 1px solid rgba(0, 196, 179, 0.45);
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 196, 179, 0.35);
  border-color: rgba(0, 196, 179, 0.8);
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(6, 10, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}

/* Lists */
.list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.list li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.list li:last-child {
  border-bottom: none;
}

/* Subject / Activity cards */
.subject-card,
.activity-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0, rgba(255, 179, 65, 0.18), transparent),
    radial-gradient(circle at 100% 100%, rgba(0, 196, 179, 0.18), transparent),
    var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.thumb {
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.04) center/cover no-repeat;
}

.subject-card .body,
.activity-card .body {
  padding: 14px;
}

.subject-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Progress bars */
.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--ignite-coral),
    var(--ignite-amber),
    var(--ignite-teal)
  );
}

.bars {
  display: grid;
  gap: 10px;
}

.bar {
  display: grid;
  gap: 6px;
}

.bar .label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- DIALOGS & MODULE TABS ---------- */

dialog::backdrop {
  background: radial-gradient(circle at 50% 0, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.95));
}

.project-dialog,
.settings-dialog {
  max-width: min(960px, 92vw);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(
    160deg,
    rgba(7, 11, 22, 0.98),
    rgba(7, 11, 22, 0.94)
  );
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  padding: 0;
  backdrop-filter: blur(24px);
}

.dialog-body {
  padding: 14px 14px 18px;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Settings items */
.settings-item {
  padding: 10px 4px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

.switch input {
  accent-color: var(--accent);
}

/* Project meta & tabs */
.project-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  padding: 10px 4px 6px;
  font-size: 0.86rem;
}

.project-modules {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 10px;
}

.module-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab {
  padding: 8px 10px;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.86rem;
  background: transparent;
  color: var(--muted);
  transition:
    border-color 0.18s ease-out,
    background 0.18s ease-out,
    color 0.18s ease-out;
}

.tab.active {
  border-color: rgba(255, 255, 255, 0.18);
  border-bottom-color: transparent;
  background: radial-gradient(circle at 0 0, rgba(0, 196, 179, 0.22), transparent);
  color: var(--text);
}

.tabpanel {
  padding: 12px 4px 6px;
  font-size: 0.9rem;
}

/* Visual asset placeholder */
.asset {
  width: 100%;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.asset img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.asset .placeholder {
  color: var(--muted);
}

.asset-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ---------- VIEW TRANSITION HOOK ---------- */

.view.fade-in {
  animation: viewFadeIn 0.45s ease-out;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- UTILITIES & RESPONSIVE ---------- */

.hidden {
  display: none;
}

@media (max-width: 1180px) {
  .inline-nav {
    display: none;
  }
}

@media (max-width: 1000px) {
  .grid.three {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .grid,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  /* keep fixed layout but smaller sidebar spacing */
  :root{
    --sidebar-w: 72px;
    --sidebar-w-collapsed: 72px;
  }

  .sidebar .nav-item {
    justify-content: center;
  }

  .nav-item span {
    display: none;
  }

  .nav-item .icon {
    display: block;
  }

  .hero-inner {
    padding-inline: 16px;
  }

  .topbar {
    padding-inline: 14px;
  }
}

/* =========================================
   LIGHT THEME OVERRIDES – IGNITE DAY MODE
   ========================================= */

html[data-theme="light"] body {
  background:
    radial-gradient(1200px 800px at -10% -20%, rgba(255, 107, 122, 0.30), transparent),
    radial-gradient(1200px 800px at 110% -20%, rgba(0, 196, 179, 0.32), transparent),
    radial-gradient(900px 700px at 50% 120%, rgba(255, 179, 65, 0.24), transparent),
    #f7f8fc;
}

/* brighter blobs */
html[data-theme="light"] .hero::before,
html[data-theme="light"] .hero::after {
  opacity: 0.9;
  filter: blur(52px);
}

/* hero background */
html[data-theme="light"] .hero {
  background: radial-gradient(
      circle at 50% -40%,
      rgba(255, 255, 255, 0.96),
      rgba(247, 248, 252, 0.98)
    );
}

html[data-theme="light"] .hero-bg {
  filter: saturate(1.1) contrast(1.05) brightness(0.9);
  opacity: 0.35;
}

html[data-theme="light"] .hero-overlay {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.94), rgba(247, 248, 252, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.98));
}

/* Gradient title like logo */
html[data-theme="light"] .hero-title {
  background: linear-gradient(
    120deg,
    var(--ignite-coral),
    var(--ignite-amber),
    var(--ignite-teal)
  );
  -webkit-background-clip: text;
  color: transparent;
}

/* Topbar light */
html[data-theme="light"] .topbar {
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(255, 107, 122, 0.16), transparent),
    radial-gradient(800px 400px at 100% 0%, rgba(0, 196, 179, 0.18), transparent),
    rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .topbar::before {
  background: conic-gradient(
    from 0deg,
    rgba(255, 107, 122, 0.00),
    rgba(255, 107, 122, 0.28),
    rgba(255, 179, 65, 0.40),
    rgba(0, 196, 179, 0.40),
    rgba(0, 196, 179, 0.00)
  );
  opacity: 0.9;
  filter: blur(20px);
}

html[data-theme="light"] .topbar::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5),
    transparent 40%,
    rgba(255, 255, 255, 0.25)
  );
}

/* inline nav */
html[data-theme="light"] .inline-nav a {
  color: #4b5563;
}

html[data-theme="light"] .inline-nav a:hover {
  color: #111827;
}

html[data-theme="light"] .inline-nav a::after {
  background: linear-gradient(90deg, var(--ignite-coral), var(--ignite-teal));
}

/* icon buttons in day mode */
html[data-theme="light"] .icon-btn,
html[data-theme="light"] .btn,
html[data-theme="light"] .chip-btn {
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.8), transparent),
              #ffffff;
  border-color: var(--border-subtle);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .btn.ghost {
  background: #ffffff;
  border-color: var(--border-subtle);
}

/* keep primary gradient */
html[data-theme="light"] .btn.primary {
  border-color: transparent;
  background: linear-gradient(
    130deg,
    var(--ignite-teal),
    var(--ignite-amber),
    var(--ignite-coral)
  );
  background-size: 200% 200%;
  animation: btnGradient 6s ease infinite;
  color: #05060a;
  font-weight: 600;
  box-shadow: 0 18px 42px rgba(255, 179, 65, 0.30);
}

/* Sidebar light */
html[data-theme="light"] .sidebar {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(255, 107, 122, 0.18), transparent),
    radial-gradient(900px 500px at 0% 100%, rgba(0, 196, 179, 0.22), transparent),
    #ffffff;
  border-right: 1px solid rgba(148, 163, 184, 0.30);
  box-shadow: 12px 0 34px rgba(15, 23, 42, 0.10);
}

html[data-theme="light"] .nav-item {
  color: #4b5563;
  background: transparent;
}

html[data-theme="light"] .nav-item:hover {
  background: radial-gradient(circle at 0 0, rgba(0, 196, 179, 0.10), transparent),
              #f9fafb;
  border-color: var(--border-subtle);
  color: #111827;
}

html[data-theme="light"] .nav-item.active {
  background:
    linear-gradient(
      120deg,
      rgba(255, 107, 122, 0.98),
      rgba(255, 179, 65, 0.96),
      rgba(0, 196, 179, 0.96)
    );
  color: #0f172a;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 40px rgba(255, 179, 65, 0.40);
}

/* Main cards & tiles */
html[data-theme="light"] .card {
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.60), transparent),
    radial-gradient(circle at 100% 0, rgba(0, 196, 179, 0.08), transparent),
    #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
  border-color: rgba(148, 163, 184, 0.30);
}

html[data-theme="light"] .card:hover {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  border-color: rgba(255, 255, 255, 0.8);
}

/* ensure dashboard welcome has wallpaper */
html[data-theme="light"] .card.welcome.cover {
  background-image: url("assets/dashboard-welcome.jpg") !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

html[data-theme="light"] .cover .veil {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.10),
    rgba(15, 23, 42, 0.75)
  );
}

html[data-theme="light"] .subject-card,
html[data-theme="light"] .activity-card {
  background:
    radial-gradient(circle at 0 0, rgba(0, 196, 179, 0.12), transparent),
    radial-gradient(circle at 100% 100%, rgba(255, 179, 65, 0.10), transparent),
    #ffffff;
  border-color: rgba(148, 163, 184, 0.40);
}

html[data-theme="light"] .subject-meta {
  color: #6b7280;
}

/* Inputs & filters light */
html[data-theme="light"] .search input {
  background: #ffffff;
  border-color: var(--border-subtle);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .search input::placeholder {
  color: #9ca3af;
}

html[data-theme="light"] .filters select {
  background: #ffffff;
  border-color: var(--border-subtle);
  color: #374151;
}

/* Dialogs & tabs */
html[data-theme="light"] .project-dialog,
html[data-theme="light"] .settings-dialog {
  background:
    radial-gradient(900px 600px at 0 0, rgba(255, 107, 122, 0.15), transparent),
    radial-gradient(900px 600px at 100% 0, rgba(0, 196, 179, 0.18), transparent),
    #ffffff;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] .dialog-header {
  border-bottom-color: rgba(148, 163, 184, 0.4);
}

html[data-theme="light"] .tab {
  color: #6b7280;
}

html[data-theme="light"] .tab.active {
  background: radial-gradient(circle at 0 0, rgba(0, 196, 179, 0.20), transparent),
              #ffffff;
  color: #111827;
  border-color: rgba(148, 163, 184, 0.60);
}

/* chips & badges */
html[data-theme="light"] .chip,
html[data-theme="light"] .chip-btn {
  background:
    radial-gradient(circle at 0 0, rgba(0, 196, 179, 0.22), transparent),
    rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 196, 179, 0.80);
  color: #0f172a;
}

html[data-theme="light"] .badge {
  background: #f3f4ff;
  border-color: rgba(148, 163, 184, 0.55);
  color: #111827;
}

html[data-theme="light"] .asset {
  background: #f9fafb;
  border-color: rgba(148, 163, 184, 0.7);
}

/* News card light theme clean fix */
html[data-theme="light"] #newsCard {
  background: #ffffff !important;
  color: #0a0a0a !important;
}

html[data-theme="light"] #newsCard h3 {
  color: #0a0a0a !important;
}

html[data-theme="light"] .news-feed {
  background: transparent !important;
}

html[data-theme="light"] .news-item {
  background: #f2f2f2 !important;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

html[data-theme="light"] .news-item a {
  color: #0066cc !important;
  font-weight: 600;
}

html[data-theme="light"] .news-item p {
  color: #4380f0 !important;
  opacity: 1;
}

html[data-theme="light"] .news-feed::-webkit-scrollbar {
  width: 6px;
}

html[data-theme="light"] .news-feed::-webkit-scrollbar-thumb {
  background: #adabab;
  border-radius: 8px;
}

/* ---------- THEME SWITCH (TOPBAR) ---------- */

.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* hide real checkbox but keep accessible */
.theme-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* pill track */
.theme-switch .switch-track {
  width: 52px;
  height: 26px;
  border-radius: 999px;
  padding: 3px;
  display: flex;
  align-items: center;
  background: linear-gradient(
    120deg,
    rgba(148, 163, 184, 0.7),
    rgba(37, 99, 235, 0.9)
  );
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
  transition:
    background 220ms ease-out,
    box-shadow 220ms ease-out;
}

/* thumb */
.theme-switch .switch-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.4);
  transform: translateX(0);
  transition:
    transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 180ms ease-out;
}

/* DARK mode ON – colourful like logo */
.theme-switch input:checked + .switch-track {
  background: linear-gradient(
    120deg,
    var(--ignite-coral),
    var(--ignite-amber),
    var(--ignite-teal)
  );
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6);
}

.theme-switch input:checked + .switch-track .switch-thumb {
  transform: translateX(24px);
}

/* press feedback */
.theme-switch:active .switch-thumb {
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.5);
}

/* smooth theme fade for main surfaces */
html,
body,
.hero,
.sidebar,
.topbar,
.card,
.project-dialog,
.settings-dialog {
  transition:
    background 320ms ease-out,
    background-color 320ms ease-out,
    color 220ms ease-out,
    box-shadow 280ms ease-out,
    border-color 220ms ease-out;
}

/* =======================================
   IGNITE LOGIN – VIDEO + POPUP
   ======================================= */

#loginScreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

#loginScreen.hidden {
  display: none !important;
}

.login-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05) brightness(0.9);
}

.login-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 500px at 0% 0%, rgba(255, 107, 122, 0.5), transparent),
    radial-gradient(800px 500px at 100% 0%, rgba(0, 196, 179, 0.5), transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  padding: 26px 24px 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.0), transparent),
    rgba(6, 9, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
}

.login-logo {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 10px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.75));
}

.login-title {
  text-align: center;
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.login-subtitle {
  text-align: center;
  margin: 4px 0 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

#loginForm label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

#loginForm label span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}

#loginForm input[type="text"],
#loginForm input[type="password"] {
  width: 100%;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(5, 8, 18, 0.85);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.18s ease-out,
    box-shadow 0.18s ease-out,
    background 0.18s ease-out;
}

#loginForm input[type="text"]:focus,
#loginForm input[type="password"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 196, 179, 0.45),
              0 10px 24px rgba(0, 0, 0, 0.65);
  background: rgba(6, 10, 22, 0.98);
}

.login-btn {
  width: 100%;
  margin-top: 6px;
}

.login-hint {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.login-error {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #feb2b2;
  text-align: center;
}

@media (max-width: 480px) {
  .login-card {
    margin: 0 16px;
    padding: 22px 18px 18px;
  }
}
.news-feed {
  position: relative;
  min-height: 70px;
  overflow: hidden;       /* ❌ no scroll */
}

.news-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.news-item.active {
  opacity: 1;
}
/* Hide top-left hamburger menu button */
#sidebarToggle {
  display: none !important;
}

