/* === IGNITE LMS – Full Themed Redesign ===
   Drop this in as your entire styles.css
   Colours inspired by your IGNITE logo
*/

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

  --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;

  --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;
}

@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);
  }
}



/* ---------- HERO / TOP BAR ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 70px;   /* roughly the height of the topbar */
}


/* 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 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;          /* stay above everything */

  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;

  /* glassy / galaxy base */
  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; /* keep glow inside */
  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: -40px;
  background: conic-gradient(
    from 0deg,
    rgba(255, 107, 122, 0.00),
    rgba(255, 107, 122, 0.35),
    rgba(255, 179, 65, 0.50),
    rgba(0, 196, 179, 0.50),
    rgba(0, 196, 179, 0.00)
  );
  opacity: 0.7;
  filter: blur(28px);
  mix-blend-mode: screen;
  animation: topbarGlow 16s 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;
}

/* Logo */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}

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

@keyframes btnGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.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;
}

.hero-title {
  display: flex;
  align-items: center;
    justify-content: center;   /* <-- center horizontally */
  gap: 12px;
  font-weight: 700;
  font-size: 3rem;   /* same as original heading size */
  line-height: 1.1;
  margin: 0;
}

.hero-title .hero-logo {
  height: 40px;     /* auto-scales to match text height */
  width: auto;
  object-fit: contain;
  display: inline-block;
  margin-bottom: 5px;  /* perfect vertical alignment */
}







.hero-title {
  display: flex;
  align-items: 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;        /* same height as the text */
  width: auto;
  object-fit: contain;
  display: inline-block;
  transform: translateY(3px); /* small vertical tweak so it sits nicely */
}

.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;
}
@keyframes igniteFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.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 {
  margin-left: 260px;   /* shift content right */
  display: block;       /* no more grid needed */
  min-height: calc(100vh - 260px);
}

.sidebar {
  position: fixed;
  top: 10;
  left: 0;
  width: 260px;           /* keep your layout */
  height: 100vh;          /* full screen height */
  padding: 18px 14px;
  overflow-y: auto;       /* scroll inside if content gets long */

  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;           /* under topbar but above content */
}


.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: 74px;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
}

.sidebar.collapsed .nav-item span {
  display: none;
}

.sidebar.collapsed .nav-item .icon {
  display: block;
}

/* ---------- MAIN CONTENT & SECTIONS ---------- */

.main {
  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,
#afterCategory {
  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-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.news-list li a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 0.82rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.news-list li a:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
}

.news-source {
  opacity: 0.7;
  font-size: 0.7rem;
}

.news-title {
  font-weight: 600;
}



/* News feed inside dashboard card */
.news-feed {
  margin-top: 10px;
  max-height: calc((0.72rem * 3) + (8px * 3) + 30px); 
  /* Explanation:
     - 0.72rem → headline height
     - 8px → padding + spacing
     - 30px → extra spacing to ensure 3 items are visible cleanly
  */
  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;
}

.activity .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent-2);
  border-radius: 50%;
  margin-right: 6px;
}

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

  .app {
    grid-template-columns: 72px 1fr;
  }

  .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
   (Paste at the very bottom of styles.css)
   ========================================= */

html[data-theme="light"] body {
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(255, 107, 122, 0.10), transparent),
    radial-gradient(900px 600px at 100% 0%, rgba(0, 196, 179, 0.10), transparent),
    radial-gradient(900px 600px at 50% 100%, rgba(255, 179, 65, 0.10), transparent),
    var(--bg);
}


html[data-theme="light"] .topbar {
  background:
    radial-gradient(900px 400px at 0% 0%, rgba(255, 107, 122, 0.25), transparent),
    radial-gradient(900px 400px at 100% 0%, rgba(0, 196, 179, 0.30), transparent),
    rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);

  transition:
    background 0.6s ease,
    box-shadow 0.5s ease,
    border-color 0.5s ease,
    transform 0.25s ease;
}

/* brighter galaxy glow for light theme */
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);
}

/* softer highlight strip in day mode */
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)
  );
}


/* --- Top bar & inline menu (so it’s clearly visible) --- */

html[data-theme="light"] .topbar {
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.96),
      rgba(247, 248, 252, 0.92)
    );
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .inline-nav a {
  color: #4b5563; /* darker for contrast */
}

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 but make it pop on white */
html[data-theme="light"] .btn.primary {
  color: #05060a;
  box-shadow: 0 10px 22px rgba(255, 179, 65, 0.22);
}

/* --- Hero background & overlay for a bright feel --- */

html[data-theme="light"] .hero-bg {
  filter: saturate(1) contrast(1) brightness(1);
  opacity: 0.45;
}

html[data-theme="light"] .hero-overlay {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.85), rgba(247, 248, 252, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 252, 0.98));
}

/* --- Sidebar switches to light futuristic panel --- */

html[data-theme="light"] .sidebar {
  background: linear-gradient(
      180deg,
      #ffffff,
      #f4f6ff
    );
  border-right: 1px solid var(--border-subtle);
  box-shadow: 12px 0 30px rgba(15, 23, 42, 0.08);
}

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:
    radial-gradient(circle at 0 0, rgba(255, 107, 122, 0.18), transparent),
    radial-gradient(circle at 100% 100%, rgba(0, 196, 179, 0.20), transparent),
    #ffffff;
  border-color: rgba(148, 163, 184, 0.50);
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.35);
  color: #0f172a;
}

/* --- Main content cards & subject tiles in day mode --- */

html[data-theme="light"] .card {
  background:
    radial-gradient(circle at 0 0, rgba(255, 179, 65, 0.10), transparent),
    #ffffff;
  border-color: var(--border-subtle);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}
/* Make sure the dashboard welcome card uses its wallpaper in day mode */
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 so they don’t look dark --- */

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,
html[data-theme="light"] #afterCategory {
  background: #ffffff;
  border-color: var(--border-subtle);
  color: #374151;
}

/* --- Dialogs & tabs --- */

html[data-theme="light"] .project-dialog,
html[data-theme="light"] .settings-dialog {
  background: linear-gradient(
      160deg,
      #ffffff,
      #f3f4ff
    );
  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);
}

/* --- Small adjustments: chips, badges, assets --- */

html[data-theme="light"] .chip {
  background:
    radial-gradient(circle at 0 0, rgba(0, 196, 179, 0.20), transparent),
    #ffffff;
  border-color: rgba(0, 196, 179, 0.70);
  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);
}


/* Restore glowing gradient button in Day Mode */
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 14px 28px rgba(255, 179, 65, 0.35),
              0 6px 14px rgba(0, 196, 179, 0.22);
}




/* =========================================
   IGNITE – VIBRANT LIGHT THEME BOOST
   (Paste at the very bottom of styles.css)
   ========================================= */

/* Stronger colour wash in 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;
}

/* Make hero blobs brighter + punchier only in light mode */
html[data-theme="light"] .hero::before,
html[data-theme="light"] .hero::after {
  opacity: 0.9;
  filter: blur(52px);
}

/* Hero background & overlay – glassy, bright, still colourful */
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 the logo for extra pop in day mode */
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;
}

/* Top bar – stronger glass / glow so it doesn’t fade out */
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);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

/* Inline nav a bit darker + crisp */
html[data-theme="light"] .inline-nav a {
  color: #4b5563;
}

html[data-theme="light"] .inline-nav a:hover {
  color: #111827;
}

/* Sidebar – colourful gradient like the logo */
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);
}

/* Active item gets a bright gradient pill */
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);
}

/* Cards – stronger glow and lighter surfaces in day mode */
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);
}

/* Chips + small pills richer in colour */
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;
}

/* Primary button shadow tuned for day mode */
html[data-theme="light"] .btn.primary {
  box-shadow: 0 18px 42px rgba(255, 179, 65, 0.30);
}

/* Dialogs – more luminous, still subtle */
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;
}

/* -----------------------------------------
   Smooth transitions for theme + hover
   ----------------------------------------- */
html,
body,
.sidebar,
.topbar,
.hero,
.hero-overlay,
.hero-bg,
.card,
.nav-item,
.btn,
.chip,
.chip-btn,
.project-dialog,
.settings-dialog {
  transition:
    background 260ms ease-out,
    color 200ms ease-out,
    box-shadow 260ms ease-out,
    border-color 220ms ease-out,
    transform 200ms ease-out;
}

/* Slight lift on cards/tiles for a more “alive” feel */
html[data-theme="light"] .card,
html[data-theme="light"] .subject-card,
html[data-theme="light"] .activity-card {
  transform: translateY(0);
}

html[data-theme="light"] .card:hover,
html[data-theme="light"] .subject-card:hover,
html[data-theme="light"] .activity-card:hover {
  transform: translateY(-4px) scale(1.01);
}
/* =======================================
   IGNITE – Theme Push Switch + Transitions
   ======================================= */

/* Smooth theme transitions 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;
}

/* Switch container */
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Hide the real checkbox but keep it accessible */
.switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

/* Track (pill) */
.switch-track {
  width: 54px;
  height: 28px;
  border-radius: 999px;
  padding: 3px;
  display: flex;
  align-items: center;
  background: linear-gradient(
    120deg,
    rgba(148, 163, 184, 0.55),
    rgba(30, 64, 175, 0.7)
  );
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.35);
  transition:
    background 220ms ease-out,
    box-shadow 220ms ease-out;
}

/* Thumb (circle that moves) */
.switch-thumb {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
  transform: translateX(0);
  transition:
    transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 180ms ease-out;
}

/* Label text */
.switch-label {
  color: var(--muted);
}

/* Checked (dark mode ON) – thumb pushed right, teal/orange glow */
.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.55);
}

.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(26px);
}

/* Little press feedback */
.switch:active .switch-thumb {
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.4);
}

/* Focus outline for keyboard users */
.switch input:focus-visible + .switch-track {
  outline: 2px solid rgba(56, 189, 248, 0.9);
  outline-offset: 3px;
}
/* =============================
   Topbar theme push switch
   ============================= */

.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;
}


/* ---------- NEWS CARD LIGHT THEME FIX ---------- */

html[data-theme="light"] #newsCard {
  background: #ffffff !important;
  color: #0a0a0a !important;
}

html[data-theme="light"] #newsCard h3 {
  color: #0a0a0a !important;
}

/* news list container */
html[data-theme="light"] .news-feed {
  background: transparent !important;
}

/* individual news item */
html[data-theme="light"] .news-item {
  background: #f2f2f2 !important;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* link inside news item */
html[data-theme="light"] .news-item a {
  color: #0066cc !important;   /* nice subtle blue */
  font-weight: 600;
}

/* date inside item */
html[data-theme="light"] .news-item p {
  color: #4380f0 !important;
  opacity: 1;
}

/* scroll bar (optional) */
html[data-theme="light"] .news-feed::-webkit-scrollbar {
  width: 6px;
}

html[data-theme="light"] .news-feed::-webkit-scrollbar-thumb {
  background: #adabab;
  border-radius: 8px;
}
html[data-theme="light"] #newsCard {
  background: #ffffff !important;       
  color: #0a0a0a !important;   /* black text */
}
/* FULL FIX: Make the news card white in light theme */
html[data-theme="light"] #newsCard.card.cover.sm {
  background: #ffffff !important;
  background-image: none !important;   /* remove dark gradient image */
  color: #0a0a0a !important;
}

/* DARK mode ON (checked) – 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;
}
/* Shared smooth transitions for theme + 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;
}

