.root{
    /* DARK */
    --bg: rgba(15, 23, 42, 0.63);
    --bg2:#000000;   /* NEW: replaces hard-coded #0b1020 */
    --panel:#0b122080;
    --text:#e5e7eb;
    --muted:#94a3b8;
    --border:#1f2937;
    --primary:#22c55e;
    --ink:#0b0b0b;
    --accent:#06b6d4;
    --angdeg: 245deg;
}


.theme-light{
    /* LIGHT */
    --bg:#f8fafc;
    --bg2:#ffffff;
    --panel:#ffffff;
    --text: #eb0bcf;
    --muted:#475569;
    --border:#e2e8f0;
    --primary:#16a34a;
    --ink: #ffffff;
    --accent:#0284c7;
    --angdeg: ;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
    margin:0;
    background:linear-gradient(var(--angdeg), var(--bg), var(--bg2) 60%);
    color:var(--text);
    font:18px/1.45 system-ui,Segoe UI,Roboto,Helvetica,Arial;
}


/* Topbar */
.topbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 16px; border-bottom:1px solid var(--border); background:#0c1326;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px}
.brand .logo{filter:grayscale(.1)}
.brand .title{opacity:.95}
.nav{display:flex; gap:14px}
.navlink{color:var(--text); text-decoration:none; opacity:.9}
.navlink:hover{opacity:1; color:var(--accent)}

/* Layout */
.container{max-width:none; margin:20px auto; padding:0 16px}

/* Typo */
.h1{font-size:28px; margin:0 0 6px 0}
.h2{font-size:18px; margin:0}
.lead{color:var(--muted); margin:6px 0 0 0}

/* Cards & grid */
.card{
  background:var(--panel); border:1px solid var(--border); border-radius:16px;
  padding:16px; box-shadow:0 8px 30px rgba(0,0,0,.25);
}
.grid{display:grid; gap:16px; grid-template-columns:repeat(3,1fr); margin-top:16px}
@media (max-width:980px){ .grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:680px){ .grid{grid-template-columns:1fr} }

.card-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:8px}
.pill{
  border:1px solid var(--border); border-radius:999px; padding:4px 8px; font-weight:800;
  color:#d1fae5; background:#0e182e;
}
.pill.muted{color:#cbd5e1; background:#0e1728}

.list{margin:8px 0 12px 18px; color:var(--text)}
.list li{margin:6px 0}
.actions{display:flex; gap:10px}

/* Buttons */
.btn{
  appearance:none; border:0; cursor:pointer; user-select:none;
  padding:10px 14px; border-radius:12px; font-weight:800; letter-spacing:.2px;
  background:var(--primary); color:var(--ink); text-decoration:none; display:inline-block;
}
.btn.ghost{background:transparent; color:var(--text); border:1px solid var(--border)}
.btn:hover{filter:brightness(1.05)}

/* Hero */
.hero{background:linear-gradient(180deg,#0d172f,transparent)}
.footer{padding:16px; text-align:center; color:var(--muted)}

/* ===== Homescreen layout ===== */
.home-layout{
  display:grid; gap:35px;
  grid-template-columns: 260px 1fr;
}
@media (max-width:900px){ .home-layout{ grid-template-columns:1fr; } }

.sidebar{
  border:1px solid var(--border); border-radius:16px; background:#0c1427;
  padding:12px; position:sticky; top:16px; height:fit-content;
}
.tabs-title{font-weight:800; color:#cbd5e1; margin:4px 6px 10px}
.tab{
  width:100%; text-align:left; padding:10px 12px; margin:6px 0;
  background:#0f172a; color:var(--text); border:1px solid var(--border);
  border-radius:10px; cursor:pointer; font-weight:700;
}
.tab.active{ border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.25); }

.workspace{ display:block; }

.panel{ display:none; }
.panel.show{ display:block; }

.action-row{
  display:grid; grid-template-columns: 1fr 160px; gap:12px;
  align-items:center; margin:10px 0; padding:12px; border:1px solid var(--border);
  border-radius:12px; background:var(--panel);
}
.action-desc{ font-weight:700; }
.btn.primary{ background:#2563eb; color:#fff; }

/* Previews */
.previews{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:8px; }
.preview-title{ color:#cbd5e1; font-weight:800; margin-bottom:6px }
.thumbs{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.thumb{
  width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:10px;
  border:1px solid var(--border); background:#0f172a;
}
.audios{ display:grid; grid-template-columns:1fr; gap:8px; }
.audio{ width:100%; background:#0f172a; border:1px solid var(--border); border-radius:8px; }

/* ===== Two columns for paired slots ===== */
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:820px){ .two-col{ grid-template-columns:1fr; } }

.slot{
  display:flex; align-items:center; gap:10px;
  background:#0f172a; border:1px solid var(--border); border-radius:10px;
  padding:8px 10px; cursor:pointer; margin:8px 0;
}
.slot .plus{
  width:100px; height:100px; display:inline-flex; align-items:center; justify-content:center;
  border:1px dashed #334155;font-size:40px; line-height:1; color:#60a5fa; border-radius:6px; font-weight:900;
}
.thumb-25{
  width:140px; height:140px; object-fit:cover; border-radius:6px;
  border:1px solid var(--border); display:none; /* becomes visible when filled */
}
.mini-audio{
  width:100px; height:28px;object-fit:cover; /* ensure visible width */
  background:#0f172a; border:1px solid var(--border); border-radius:8px;
}
.slot.filled .plus{ display:none; }
.slot.pulse{ border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.3); }

.preview-title{ color:#cbd5e1; font-weight:800; margin:4px 0 6px }
.slot.audio.filled .plus{
  display:flex; border-style:dashed; color:#93c5fd;
}
.music-icon{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:46px; opacity:.95;
}

.thumb-in-box{
  width:100%; height:100%;
  object-fit:contain;  /* use cover if you prefer a crop */
  display:block;
  border-radius:8px;
}

/* Step3 Course lessons Toggle button CSS  */
/* Step 3 – active selection pills */
.pill.ok {
  background: rgba(34,197,94,0.18);
  border: 1px solid rgba(34,197,94,0.55);
  color: #bbf7d0;
}

/* This is just for the spinner in step 5 loading images CSS  */
/* Step 5 – loading overlay */
.assets-loading{
    position:absolute;
    inset:0;
    background:rgba(15,23,42,0.65);
    backdrop-filter: blur(2px);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:50px;
    font-weight:800;
    z-index:50;
}
.card{
  position: relative;
}

.loading-text{
    color:#ef4444; /* red */
    font-weight:900;
    font-size:1.1rem;
    animation: bump 0.9s ease-in-out infinite;
    transform-origin:center;
}

/* bump / zoom animation */
@keyframes bump{
    0%{
        transform: scale(1);
        opacity:0.7;
    }
    50%{
        transform: scale(1.12);
        opacity:1;
    }
    100%{
        transform: scale(1);
        opacity:0.7;
    }
}

