/* ════════════════════════════════════════════════════════════
   CALENDÁRIO
════════════════════════════════════════════════════════════ */
#calendar-panel {
  overflow-y: auto;
  padding: 24px;
  gap: 20px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cal-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cal-arrow {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-dim);
  transition: all 0.18s;
}

.cal-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cal-month {
  font-family: "Syne", sans-serif;
  font-size: 18px;
  font-weight: 700;
  min-width: 180px;
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.cal-day-name {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 0 12px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
  color: var(--text-dim);
  position: relative;
}

.cal-day:hover {
  background: var(--surface2);
  color: var(--text);
}
.cal-day.today {
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.cal-day.studied {
  background: rgba(79, 138, 255, 0.14);
  color: var(--text);
}
.cal-day.studied .dot {
  display: block;
}
.cal-day.streak-day {
  background: rgba(245, 158, 11, 0.13);
  color: var(--gold);
}
.cal-day.streak-day .dot {
  background: var(--gold);
}
.cal-day.other-month {
  opacity: 0.25;
}

.dot {
  display: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Legenda */
.cal-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cal-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Cards de estatísticas */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(
    --grad,
    linear-gradient(90deg, var(--accent), var(--accent2))
  );
}

.stat-val {
  font-family: "Syne", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}
.stat-lbl {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}
.stat-ico {
  font-size: 24px;
  margin-bottom: 6px;
}
