@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Nunito:wght@400;600;700&display=swap");

/* =========================================================
   BRAND TOKENS — exact brand colors
   ========================================================= */
:root {
  --green: #58cc02;
  --green-d: #46a302;
  --green-dd: #357a02;
  --green-p: rgba(88, 204, 2, 0.09);
  --green-b: rgba(88, 204, 2, 0.3);

  --blue: #1cb0f6;
  --blue-d: #0d8fc8;
  --blue-dd: #0a6fa0;
  --blue-p: rgba(28, 176, 246, 0.09);
  --blue-b: rgba(28, 176, 246, 0.3);

  --pink: #f38dee;
  --pink-d: #d668d1;
  --pink-dd: #aa4daa;
  --pink-p: rgba(243, 141, 238, 0.09);
  --pink-b: rgba(243, 141, 238, 0.3);

  --fh: "Poppins", sans-serif;
  --fb: "Nunito", sans-serif;

  /* ---- Bootstrap 5.3 theme overrides: recolor built-in classes ---- */
  --bs-primary: var(--green);
  --bs-primary-rgb: 88, 204, 2;
  --bs-secondary: var(--blue);
  --bs-secondary-rgb: 28, 176, 246;
  --bs-info: var(--pink);
  --bs-info-rgb: 243, 141, 238;
  --bs-link-color: var(--green-dd);
  --bs-link-hover-color: var(--green-d);
  --bs-body-font-family: var(--fb);
  --bs-body-color: #1a1a2e;
  --bs-body-bg: #fbfaff;
  --bs-border-radius: 14px;
  --bs-border-radius-lg: 20px;
  --bs-border-radius-xl: 28px;
  --sh-card: 0 10px 30px rgba(26, 26, 46, 0.08);
  --sh-lift: 0 18px 40px rgba(26, 26, 46, 0.14);
}

body {
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.brand-title,
.question-text {
  font-family: var(--fh);
}

/* ==== LAYOUT ==== */
.app-shell {
  /*max-width: 800px;*/
  margin: 0 auto;
  min-height: 100vh;
}

.app-header {
  z-index: 10;
}

.app-main {
  overflow: hidden;
}

.screen {
  position: relative;
}

/* ---------- brand mark ---------- */
.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.brand-title {
  font-weight: 700;
  font-size: 17px;
}

.brand-sub {
  font-size: 12px;
  color: var(--bs-secondary-color);
  font-weight: 600;
}

.header-dot {
  width: 26px;
  height: 7px;
  border-radius: 999px;
  background: rgba(26, 26, 46, 0.08);
  display: inline-block;
}

.header-dot.done {
  background: linear-gradient(90deg, var(--green), var(--blue));
}

/* ---------- decorative blobs ---------- */
.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.28;
}

.blob-a {
  width: 260px;
  height: 260px;
  background: var(--green);
  top: -40px;
  left: 0%;
}

.blob-b {
  width: 240px;
  height: 240px;
  background: var(--pink);
  top: 20px;
  right: -20px;
}

.blob-c {
  width: 200px;
  height: 200px;
  background: var(--blue);
  bottom: -60px;
  left: 40%;
}

/* ---------- home / hero text ---------- */
.eyebrow-badge {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--green-dd) !important;
  background: var(--green-p) !important;
  border: 1px solid var(--green-b) !important;
  padding: 8px 18px;
}

.grad-text {
  background: linear-gradient(90deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- task cards ---------- */
.task-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid rgba(26, 26, 46, 0.08);
  padding: 20px;
  text-align: left;
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-radius: 20px;
  padding: 20px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.task-card.unlocked {
  cursor: pointer;
}

.task-card.unlocked:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(26, 26, 46, 0.14);
}

.task-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.task-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
}

.task-1 .task-icon {
  background: var(--green-p);
}

.task-2 .task-icon {
  background: var(--blue-p);
}

.task-3 .task-icon {
  background: var(--pink-p);
}

.task-body {
  flex: 1;
}

.task-title {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 2px;
}

.task-tagline {
  font-size: 13px;
  color: var(--bs-secondary-color);
  font-weight: 600;
  margin-bottom: 0;
}

.task-status {
  font-size: 12px;
  font-weight: 800;
  padding: 7px 16px;
  white-space: nowrap;
  border-radius: 20px;
}

.status-start {
  background: linear-gradient(90deg, var(--green), var(--blue));
  color: #fff;
}

.status-locked {
  background: rgba(26, 26, 46, 0.08);
  color: var(--bs-secondary-color);
}

.status-done {
  background: var(--green-p);
  color: var(--green-dd);
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--fh);
  font-weight: 700;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--green);
  --bs-btn-border-color: var(--green);
  --bs-btn-hover-bg: var(--green-d);
  --bs-btn-hover-border-color: var(--green-d);
  --bs-btn-active-bg: var(--green-dd);
  --bs-btn-active-border-color: var(--green-dd);
  --bs-btn-disabled-bg: rgba(26, 26, 46, 0.08);
  --bs-btn-disabled-border-color: rgba(26, 26, 46, 0.08);
  --bs-btn-disabled-color: var(--bs-secondary-color);
  box-shadow: 0 4px 0 var(--green-dd);
}

.btn-primary:active {
  box-shadow: 0 1px 0 var(--green-dd);
}

.btn-outline-secondary {
  --bs-btn-color: #1a1a2e;
  --bs-btn-border-color: rgba(26, 26, 46, 0.15);
  --bs-btn-hover-bg: var(--blue-p);
  --bs-btn-hover-border-color: var(--blue);
  --bs-btn-hover-color: var(--blue-dd);
}

/* ---------- quiz ---------- */
.question-text {
  font-size: 19px;
}

.brand-progress-bar {
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.list-group-item {
  border-radius: var(--bs-border-radius) !important;
  margin-bottom: 12px;
  border: 2px solid rgba(26, 26, 46, 0.08);
  padding: 16px 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  -webkit-border-radius: var(--bs-border-radius) !important;
  -moz-border-radius: var(--bs-border-radius) !important;
  -ms-border-radius: var(--bs-border-radius) !important;
  -o-border-radius: var(--bs-border-radius) !important;
}

.list-group-item:last-child {
  margin-bottom: 0;
}

.list-group-item-action:hover {
  border-color: var(--green);
  background: var(--green-p);
  z-index: 1;
}

.list-group-item.selected {
  border-color: var(--green);
  background: linear-gradient(90deg, var(--green-p), var(--blue-p));
  color: var(--green-dd);
}

.answer-letter {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.list-group-item.selected .answer-letter {
  background: var(--green);
  color: #fff;
}

/* ---------- result chips ---------- */
.result-chip {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--green-dd) !important;
  background: var(--green-p) !important;
  border: 1px solid var(--green-b) !important;
  padding: 8px 18px !important;
}

.alldone-chip {
  font-size: 13px;
  font-weight: 800;
  padding: 9px 18px;
}

.alldone-chip.thinking {
  background: var(--green-p);
  color: var(--green-dd);
  border: 1px solid var(--green-b);
}

.alldone-chip.learning {
  background: var(--blue-p);
  color: var(--blue-dd);
  border: 1px solid var(--blue-b);
}

.alldone-chip.problem {
  background: var(--pink-p);
  color: var(--pink-dd);
  border: 1px solid var(--pink-b);
}

button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* ================= DASHBOARD PAGE — TASK GRID CARDS ================= */
.tg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 767px) {
  .tg-grid { grid-template-columns: 1fr; }
}

.tg-card {
  background: #fff;
  border: 1px solid rgba(26, 26, 46, 0.08);
  border-radius: 20px;
  padding: 22px;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 3px 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tg-card.unlocked:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lift);
}
.tg-card.locked { opacity: 0.55; }

.tg-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tg-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}
.tg-icon.c-green  { background: linear-gradient(135deg, var(--green), var(--green-d)); }
.tg-icon.c-blue   { background: linear-gradient(135deg, var(--blue), var(--blue-d)); }
.tg-icon.c-pink   { background: linear-gradient(135deg, var(--pink), var(--pink-d)); }
.tg-icon.c-purple { background: linear-gradient(135deg, #8b7cf6, #6d5bd0); }

.tg-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(26, 26, 46, 0.06);
  color: var(--bs-secondary-color);
}

.tg-title { font-family: var(--fh); font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.tg-desc { font-size: 13.5px; color: var(--bs-secondary-color); margin-bottom: 14px; min-height: 40px; }

.tg-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.tg-dot { width: 8px; height: 8px; border-radius: 50%; }
.tg-dot.c-green  { background: var(--green); }
.tg-dot.c-blue   { background: var(--blue); }
.tg-dot.c-pink   { background: var(--pink); }
.tg-dot.c-purple { background: #8b7cf6; }

.tg-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 12px;
  font-family: var(--fh);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--blue-d));
  cursor: pointer;
  transition: opacity .15s ease;
}
.tg-btn:hover { opacity: .9; }
.tg-btn:disabled {
  background: rgba(26, 26, 46, 0.08);
  color: var(--bs-secondary-color);
  cursor: not-allowed;
}

.tg-more-btn { grid-column: 1 / -1; }