/* tax101.css */

/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500&display=swap");

:root{
  /* Brand palette */
  --tt-aqua-100:#A0DFE7;
  --tt-aqua-200:#60CFDC;
  --tt-teal-700:#007499;

  --tt-green-500:#75E079;
  --tt-green-600:#5ACD5D;

  --tt-grey-100:#EAE7E7;
  --tt-grey-900:#2B3137;

  /* Sub colours */
  --tt-red-600:#F41B1B;
  --tt-red-500:#FF4141;
  --tt-orange-500:#FA8340;
  --tt-yellow-500:#F8CB20;
  --tt-yellow-300:#FFD94C;

  /* Background colours */
  --tt-bg-1:#E3F4F6;
  --tt-bg-2:#E0F8E1;
  --tt-bg-3:#FEEBEB;
  --tt-bg-4:#FFEFE5;
  --tt-bg-5:#FEF8E3;
  --tt-bg-6:#FAFAFA;

  --tt-border:#E6E8EB;
  --tt-text:#1B1F24;
  --tt-muted:#6B7280;

  --radius: 14px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--tt-text);
  background: var(--tt-bg-6);
}

/* ===== Top header (logo left, username right) ===== */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 32px;
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.topbar-left{
  display:flex;
  align-items:center;
}

.logo-img{
  height:34px;
  width:auto;
  display:block;
}

.topbar-right{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:14px;
  color:rgba(0,0,0,.65);
  white-space:nowrap;
}

.topbar-right strong{
  color:rgba(0,0,0,.85);
}

.topbar .avatar{
  width:34px;
  height:34px;
  border-radius:50%;
  background: var(--tt-green-600);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:14px;
  border:none;
}

/* ===== Layout wrapper ===== */
.wrap{
  max-width: 1100px;
  margin: 18px auto 64px;
  padding: 0 16px;
}

/* ===== Course header (Montserrat title, Roboto subtitle) ===== */
.courseHeader{
  text-align:center;
  margin: 60px 0 40px 0;
}

.courseTitle{
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 38px;
  margin: 0;
  letter-spacing: -0.5px;
}

.courseSubtitle{
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  margin-top: 14px;
  color: #5f6c7b;
}

/* ===== Progress stepper ===== */
.stepperCard{
  margin-top: 10px;
  padding: 12px 0 0;
}

.stepperPill{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius: 26px;
  padding: 20px 22px 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.10);
}

.stepperSteps{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items:center;
  margin-bottom: 14px;
}

.stepCell{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
  min-width: 0;
  text-align:center;
}

.stepBubble{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.18);
  background: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 1000;
  color: rgba(0,0,0,.55);
}

.stepBubble.done{
  border-color: rgba(90,205,93,.55);
  background: #5ACD5D;
  color:#fff;
}

.stepBubble.active{
  border-color: rgba(0,116,153,.55);
  background: rgba(96,207,220,.18);
  color: rgba(0,116,153,.95);
}

.stepText{
  font-weight: 950;
  color: rgba(0,0,0,.78);
  font-size: 14px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.stepperTrack{
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.10);
  overflow:hidden;
}

.stepperFill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--tt-teal-700);
  transition: width .35s ease;
}

/* ===== Main content layout ===== */
.grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  align-items:start;
}

.card{
  background:#fff;
  border:1px solid var(--tt-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.muted{ color:var(--tt-muted); font-size:13px; }

/* ===== Lessons list (left) ===== */
.steps .stepbtn{
  width:100%;
  text-align:left;
  padding: 12px 12px;
  margin: 10px 0;
  border-radius: 14px;
  border:1px solid var(--tt-border);
  background:#F9FAFB;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
  font-weight:950;
}

.steps .stepbtn:hover{ background:#F3F4F6; }

.steps .stepbtn.active{
  background:#fff;
  border-color: rgba(0,0,0,.22);
}

.steps .stepbtn:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.pill{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--tt-border);
  background:#fff;
  color:var(--tt-muted);
  font-weight:1000;
  white-space:nowrap;
}

.pill.done{
  border-color: rgba(90,205,93,.55);
  background:#5ACD5D;
  color:#fff;
}

/* ===== Lesson panel (right) ===== */
h2{
  margin:0 0 10px 0;
  font-size:16px;
}

.videoBox{
  width:100%;
  border: 1px solid var(--tt-border);
  border-radius: 12px;
  overflow:hidden;
  background:#000;
}

video{
  width:100%;
  height:auto;
  display:block;
  background:#000;
}

.actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top: 12px;
  flex-wrap:wrap;
}

.btn{
  border-radius: 12px;
  padding: 10px 14px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  cursor:pointer;
  font-weight:950;
  font-size:13px;
}

.btn.primary{
  background: var(--tt-green-600);
  border-color: var(--tt-green-600);
  color:#fff;
  box-shadow: 0 3px 0 rgba(0,0,0,.06);
}

.btn.primary:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.summary{
  margin-top: 12px;
  border-radius: 12px;
  border:1px solid #D7DBE0;
  background:#F9FAFB;
  padding: 12px;
  font-size:13px;
}

.choices label{
  display:block;
  margin: 8px 0;
  padding: 10px 12px;
  border:1px solid var(--tt-border);
  border-radius: 12px;
  cursor:pointer;
  font-size:13px;
  background:#fff;
}

.choices label:hover{ background:#F9FAFB; }
.choices input{ margin-right:8px; }

.msg{ font-size:13px; font-weight:950; }
.msg.ok{ color:#0A7A2F; }
.msg.bad{ color:var(--tt-red-600); }

.scorechip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--tt-border);
  background:#fff;
  font-size:12px;
  font-weight:950;
  color:var(--tt-grey-900);
}

/* ===== Confetti behind Tim ===== */
.confetti-layer{
  position:fixed;
  inset:0;
  z-index: 9997;
  pointer-events:none;
  overflow:hidden;
}

/* ===== Tim above confetti ===== */
.tim{
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  bottom: 0;
  width: min(420px, 75vw);
  z-index: 9998;
  pointer-events:none;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.20));
  opacity: 0;
}

.tim.show{
  animation: timUp 1.25s cubic-bezier(.2,.9,.2,1) forwards;
  opacity: 1;
}

@keyframes timUp{
  0%   { transform: translateX(-50%) translateY(120%); }
  60%  { transform: translateX(-50%) translateY(0%); }
  78%  { transform: translateX(-50%) translateY(6%); }
  100% { transform: translateX(-50%) translateY(0%); }
}

.tim.hide{
  animation: timDown .7s cubic-bezier(.2,.7,.2,1) forwards;
  opacity: 1;
}

@keyframes timDown{
  0%   { transform: translateX(-50%) translateY(0%); opacity:1; }
  100% { transform: translateX(-50%) translateY(120%); opacity:0; }
}

/* ===== Responsive layout ===== */
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }

  /* Keep desktop stepper layout until mobile breakpoint */
  .stepperSteps{ grid-template-columns: 1fr; gap: 12px; }
  .stepCell{ flex-direction:row; justify-content:flex-start; text-align:left; }
  .stepText{ white-space: normal; }
}

/* ===== Mobile stepper: thin line + green dots ===== */
/* This overrides your stepper visuals on mobile to match your screenshot request */
@media (max-width: 520px){
  .topbar{
    padding: 14px 16px;
  }

  .courseHeader{
    margin: 32px 0 18px 0;
  }

  .courseTitle{
    font-size: 30px;
  }

  .courseSubtitle{
    font-size: 16px;
    margin-top: 10px;
  }

  .stepperPill{
    padding: 12px 14px 12px;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0,0,0,.08);
  }

  /* Make the rail thinner */
  .stepperTrack{
    height: 2px;
  }

  .stepperFill{
    height: 2px;
  }

  /* Convert steps row to dots */
  .stepperSteps{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap: 0;
    margin-bottom: 10px;
  }

  /* Each step cell becomes just a dot */
  .stepCell{
    flex: 1;
    justify-content:center;
    align-items:center;
    gap: 0;
    text-align:center;
  }

  /* Hide labels on mobile */
  .stepText{
    display:none;
  }

  /* Hide the bubble content, keep it as a dot */
  .stepBubble{
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid #cfd6de;
    background: #cfd6de;
    font-size: 0;
    color: transparent;
  }

  .stepBubble.done{
    border-color: #2dbb55;
    background: #2dbb55;
  }

  .stepBubble.active{
    border-color: #2dbb55;
    background: #ffffff;
  }
}
