/* ═══════════ Tarefas do Aluno — Gamificação ═══════════ */

/* Card de gamificação (streak + nível + progresso diário) */
.st-gamify-card {
  padding: 14px 16px;
}

.st-level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.st-level-badge {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.st-stats-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.st-stat {
  text-align: center;
  min-width: 36px;
}

.st-stat-val {
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.1;
}

.st-stat-lbl {
  font-size: 0.62rem;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
  white-space: nowrap;
}

/* Barra de progresso diário */
.st-today-bar-wrap {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border2);
}

.st-today-label {
  font-size: 0.7rem;
  color: var(--muted2);
  margin-bottom: 5px;
}

.st-today-bar {
  height: 7px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border2);
}

.st-today-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 4px;
  transition: width 0.4s ease;
  min-width: 4px;
}

/* Pontinhos do calendário para tarefas do aluno */
.scal-dot-todo-pending {
  background: var(--purple);
}

.scal-dot-todo-done {
  background: var(--teal);
  opacity: 0.7;
}

/* Tarefas no modal do dia do calendário */
.scal-day-todos-section {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--purple);
  margin: 14px 0 8px;
}

.scal-todo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--purple);
  border-radius: 7px;
  font-size: 0.82rem;
  transition: background 0.15s;
}

.scal-todo-item:hover {
  background: var(--bg);
}

.scal-todo-item.done {
  opacity: 0.55;
}

.scal-todo-item.done .scal-todo-text {
  text-decoration: line-through;
}

.scal-todo-item[data-prio="high"]   { border-left-color: var(--red); }
.scal-todo-item[data-prio="normal"] { border-left-color: var(--teal); }
.scal-todo-item[data-prio="low"]    { border-left-color: var(--muted2); }

.scal-todo-text {
  flex: 1;
  min-width: 0;
  color: var(--fg);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .st-level-row { flex-direction: column; align-items: flex-start; }
  .st-stats-row { gap: 14px; }
}
