/* --- Dashboard Início --- */
.dash-greeting {
  margin-bottom: 24px;
}
.dash-title {
  color: var(--ink);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 850;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.dash-date {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}
.dash-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 32px;
}
.dash-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(17, 31, 48, 0.04);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dash-card-rest {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}
.dash-card-icon {
  font-size: 42px;
  line-height: 1;
}
.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dash-card-title {
  font-size: 16px;
  font-weight: 750;
  margin: 0;
}
.dash-card-subtitle {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 14px;
}
.dash-card-pct {
  font-weight: 800;
  color: var(--ink);
  font-size: 18px;
}
.dash-progress {
  background: var(--line);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
.dash-progress-bar {
  background: var(--accent);
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.dash-card-labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.dash-card-target {
  color: var(--muted);
}
.dash-cta {
  text-align: center;
  padding: 40px 24px;
  margin-bottom: 32px;
}
.dash-cta h2 {


/* --- Estilos extraídos do core_index.html --- */

  .dash-priority-row {
    align-items: stretch;
  }
  .dash-greeting-copy {
    min-width: 0;
  }
  .dash-greeting-quick {
    align-self: center;
    flex: 0 0 auto;
    margin-left: auto;
  }
  .dash-quick-access-compact {
    align-items: center;
    display: flex;
    gap: 10px;
  }
  .dash-quick-access-grid {
    display: flex;
    gap: 8px;
  }
  .dash-quick-access-item {
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: inline-flex;
    font-size: 1rem;
    height: 40px;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    width: 40px;
  }
  .dash-quick-access-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
  }
  .dash-quick-access-item.is-timer {
    background: #dcfce7;
    color: #059669;
  }
  .dash-quick-access-item.is-activity {
    background: #e0f2fe;
    color: #0369a1;
  }
  .dash-quick-access-item.is-plan {
    background: #f3e8ff;
    color: #7e22ce;
  }
  .dash-quick-access-item.is-goal {
    background: #ffedd5;
    color: #c2410c;
  }
  .dash-quick-access-item.is-review {
    background: #cffafe;
    color: #0891b2;
  }
  .dash-quick-access-item.is-task {
    background: #fef3c7;
    color: #b45309;
  }
  .dash-quick-access-item.is-teacher {
    background: #ede9fe;
    color: #6d28d9;
  }
  .dash-next-study-compact {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    min-height: 238px;
    padding: 28px 30px;
  }
  .dash-next-study-content {
    max-width: 70%;
    position: relative;
    z-index: 2;
  }
  .dash-next-study-content.has-progress {
    max-width: 52%;
  }
  .dash-next-study-badge {
    background: rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    margin-bottom: 22px;
    padding: 7px 13px;
    text-transform: uppercase;
  }
  .dash-next-study-title {
    color: #fff;
    font-size: clamp(1.55rem, 2.3vw, 2.15rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.12;
    margin-bottom: 8px;
  }
  .dash-next-study-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    font-weight: 650;
    margin-bottom: 20px;
  }
  .dash-next-study-meta {
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.86rem;
    font-weight: 650;
    gap: 9px;
    margin-bottom: 24px;
  }
  .dash-next-study-meta span {
    align-items: center;
    display: inline-flex;
    gap: 6px;
  }
  .dash-next-study-separator {
    opacity: 0.65;
  }
  .dash-next-study-actions .btn {
    border-radius: 9px;
    color: #6f3b00 !important;
    font-size: 0.9rem;
    padding: 11px 28px;
  }
  .dash-next-study-progress {
    align-items: center;
    bottom: 34px;
    color: #fff;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    pointer-events: none;
    position: absolute;
    right: 210px;
    top: 34px;
    width: 150px;
    z-index: 2;
  }
  .dash-next-study-progress-ring {
    align-items: center;
    border-radius: 50%;
    display: flex;
    height: 118px;
    justify-content: center;
    position: relative;
    width: 118px;
  }
  .progress-ring-svg {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
  }
  .progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1.5;
  }
  .progress-ring-fill {
    fill: none;
    stroke: #fff;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
  }
  .progress-ring-decor {
    border-radius: 50%;
    border: 1px solid;
    position: absolute;
    pointer-events: none;
  }

  .dash-next-study-progress-inner {
    align-items: center;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    height: 88px;
    justify-content: center;
    position: relative;
    width: 88px;
    z-index: 1;
  }
  .dash-next-study-progress-inner strong {
    font-size: 1.45rem;
    font-weight: 850;
    line-height: 1;
  }
  .dash-next-study-progress-inner span,
  .dash-next-study-progress-caption {
    font-size: 0.78rem;
    font-weight: 750;
  }
  .dash-next-study-progress-caption {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
  }
  .dash-next-study-mark {
    align-items: center;
    color: rgba(255, 255, 255, 0.14);
    font-size: 8.5rem;
    inset: 0 28px 0 auto;
    justify-content: center;
    pointer-events: none;
    position: absolute;
    width: 180px;
    z-index: 1;
  }
  .dash-streak-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 208px;
    padding: 20px;
  }
  .dash-streak-top {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
  }
  .dash-streak-flame {
    align-items: center;
    background: #fff7ed;
    border-radius: 50%;
    color: #f97316;
    display: inline-flex;
    font-size: 2rem;
    height: 54px;
    justify-content: center;
    width: 54px;
  }
  .dash-streak-label {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 2px;
  }
  .dash-streak-value {
    color: #0f172a;
    font-size: 1.55rem;
    font-weight: 850;
    line-height: 1.1;
  }
  .dash-streak-record {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 650;
    margin-top: 3px;
  }
  .dash-streak-trophy {
    align-items: center;
    background: #fff3e8;
    border-radius: 18px;
    color: #f97316;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.35rem;
    height: 58px;
    justify-content: center;
    width: 58px;
  }
  .dash-streak-days {
    align-items: flex-start;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    position: relative;
  }
  .dash-streak-days::before {
    background: #e2e8f0;
    content: "";
    height: 2px;
    left: 7%;
    position: absolute;
    right: 7%;
    top: 18px;
  }
  .dash-streak-day {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    position: relative;
    z-index: 1;
  }
  .dash-streak-day-dot {
    align-items: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    color: #94a3b8;
    display: inline-flex;
    font-size: 0.8rem;
    height: 38px;
    justify-content: center;
    width: 38px;
  }
  .dash-streak-day.is-studied .dash-streak-day-dot {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #f97316;
  }
  .dash-streak-day.is-rest .dash-streak-day-dot {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #10b981;
  }
  .dash-streak-day.is-today-empty .dash-streak-day-dot {
    border-style: dashed;
  }
  .dash-streak-day-number {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
  }
  .dash-streak-day-month {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
  }
  .dash-streak-message {
    align-items: center;
    background: #fff7ed;
    border-left: 3px solid #fb923c;
    border-radius: 10px;
    color: #334155;
    display: flex;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.35;
    margin-top: auto;
    padding: 12px 14px;
  }
  .dash-streak-message i {
    color: #f97316;
    font-size: 1.1rem;
  }
  .quick-overview-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .quick-overview-head {
    align-items: center;
    display: flex;
    gap: 12px;
  }
  .quick-overview-icon {
    align-items: center;
    background: #f3e8ff;
    border-radius: 50%;
    color: #8b5cf6;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.15rem;
    height: 44px;
    justify-content: center;
    width: 44px;
  }
  .quick-overview-title {
    color: #111827;
    font-size: 1rem;
    font-weight: 850;
    margin: 0;
  }
  .quick-overview-grid {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
  }
  .quick-overview-metric {
    min-width: 0;
    text-align: center;
  }
  .quick-overview-metric span {
    color: #64748b;
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 7px;
  }
  .quick-overview-metric strong {
    color: #0f172a;
    display: block;
    font-size: 1.32rem;
    font-weight: 850;
    line-height: 1;
  }
  .quick-overview-link {
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    display: flex;
    font-size: 0.82rem;
    font-weight: 750;
    justify-content: space-between;
    margin-top: auto;
    padding: 10px 12px;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  }
  .quick-overview-link:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    color: #0f172a;
  }
  .study-summary-card {
    border-color: #e5eaf2 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
    min-height: 178px;
    overflow: hidden;
    padding: 18px;
  }
  .study-summary-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .study-summary-card .min-w-0 {
    min-width: 0;
  }
  .study-summary-icon {
    align-items: center;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.1rem;
    height: 44px;
    justify-content: center;
    width: 44px;
  }
  .study-summary-icon-today {
    background: linear-gradient(135deg, #18c98b, #0ea765);
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.26);
  }
  .study-summary-icon-week {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.26);
  }
  .study-summary-label {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 4px;
  }
  .study-summary-value {
    color: #111827;
    font-size: 1.18rem;
    font-weight: 850;
    line-height: 1.15;
    white-space: nowrap;
  }
  .study-summary-value span {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 650;
    margin-left: 3px;
  }
  .study-summary-percent {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
    padding: 6px 8px;
  }
  .study-summary-percent strong {
    font-size: 0.88rem;
    font-weight: 850;
  }
  .study-summary-percent span {
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 750;
    white-space: nowrap;
  }
  .study-summary-percent-today {
    background: #dcfce7;
    color: #10b981;
  }
  .study-summary-percent-week {
    background: #dbeafe;
    color: #2563eb;
  }
  .study-summary-progress {
    background: #e8edf5;
    border-radius: 999px;
    height: 7px;
    margin-bottom: 10px;
    overflow: hidden;
  }
  .study-summary-progress-fill {
    border-radius: inherit;
    height: 100%;
  }
  .study-summary-progress-fill-today {
    background: linear-gradient(90deg, #10b981, #14c58a);
  }
  .study-summary-progress-fill-week {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
  }
  .study-summary-meta-row {
    align-items: center;
    color: #64748b;
    display: flex;
    font-size: 0.72rem;
    font-weight: 650;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .study-summary-meta-row strong {
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
  }
  .study-summary-timeline,
  .study-summary-week-chart {
    margin-top: auto;
  }
  .study-summary-hour-bars {
    align-items: end;
    display: grid;
    gap: 3px;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    height: 34px;
    margin: 0 2px 6px;
  }
  .study-summary-hour-bar {
    background: #d8e0eb;
    border-radius: 999px;
    display: block;
    min-height: 4px;
    opacity: 0.75;
  }
  .study-summary-hour-bar.is-active {
    background: #10b981;
    opacity: 1;
  }
  .study-summary-axis {
    color: #94a3b8;
    display: flex;
    font-size: 0.68rem;
    font-weight: 750;
    justify-content: space-between;
    line-height: 1;
  }
  .study-summary-week-chart {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-height: 50px;
  }
  .study-summary-week-day {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: end;
    min-width: 0;
  }
  .study-summary-week-bar {
    background: #d8e0eb;
    border-radius: 4px 4px 2px 2px;
    display: block;
    min-height: 8px;
    width: 14px;
  }
  .study-summary-week-bar.is-active {
    background: linear-gradient(180deg, #60a5fa, #3b82f6);
  }
  .study-summary-week-label {
    border-radius: 7px;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
    padding: 4px 5px;
  }
  .study-summary-week-day.is-today .study-summary-week-label {
    background: #dbeafe;
    color: #2563eb;
  }
  .dash-cards-container .card,
  .planner-block,
  .objective-item,
  .recent-activity-item {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  }
  .dash-cards-container .card:hover,
  .planner-block-action:hover,
  .objective-item:hover,
  .recent-activity-item:hover {
    transform: translateY(-1px);
  }
  .planner-block {
    border-radius: 8px !important;
  }
  .planner-block-action {
    cursor: pointer;
  }
  .planner-block-action:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
  }
  .planner-block.cumprido {
    opacity: 0.75;
    background-color: #f8fff9 !important;
    border-color: #a7f3d0 !important;
  }
  .objective-item a {
    color: inherit;
  }
  .recent-activity-item {
    border-radius: 8px !important;
  }
  .recent-activity-item:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.02) !important;
  }
  .last-border-0:last-child {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  @media (max-width: 991.98px) {
    .dash-greeting-quick {
      margin-left: 0;
      width: 100%;
    }
  }
  @media (max-width: 1199.98px) and (min-width: 768px) {
    .study-summary-card {
      padding: 14px;
    }
    .study-summary-value {
      font-size: 1rem;
    }
    .study-summary-value span,
    .study-summary-meta-row,
    .study-summary-meta-row strong {
      font-size: 0.66rem;
    }
    .study-summary-week-chart {
      gap: 5px;
    }
    .study-summary-week-bar {
      width: 11px;
    }
  }
  @media (max-width: 991.98px) {
    .dash-next-study-content,
    .dash-next-study-content.has-progress {
      max-width: 100%;
    }
    .dash-next-study-compact,
    .dash-streak-panel {
      min-height: 0;
    }

    /* Ajuste de espaçamento uniforme no mobile (20px) */
    .dash-greeting {
      margin-bottom: 20px !important;
    }
    .dash-priority-row {
      --bs-gutter-y: 20px !important;
      margin-bottom: 20px !important;
    }
    .dash-cards-container {
      --bs-gutter-y: 20px !important;
      margin-bottom: 20px !important;
    }
    .dash-cta {
      margin-bottom: 20px !important;
    }
    .dash-main-row {
      margin-top: calc(-1 * var(--bs-gutter-y)) !important;
      --bs-gutter-y: 20px !important;
    }
    .dash-main-row > div {
      margin-bottom: 0 !important;
    }
    .dash-main-col-right {
      gap: 20px !important;
    }
    .spaced.mb-4 {
      margin-bottom: 20px !important;
    }
    .dash-priority-row .card,
    .dash-priority-row .dash-streak-panel,
    .dash-priority-row .dash-next-study-compact,
    .dash-cards-container .card,
    .dash-main-row .card {
      margin-bottom: 0 !important;
    }
  }
