/**
 * Component Styles - Botões Táteis, Cards, Inputs, Modais e Indicadores
 * Sistema de Design: Fluent Focus
 */

/* ==========================================================================
   Botões Táteis (Tactile Depress States)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.625rem 1.25rem;
  font-family: var(--font-family-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  border-radius: var(--radius-base);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  user-select: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Botão Primário (Indigo) */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary-shadow);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
}

.btn-primary:active {
  transform: translateY(1px);
  border-bottom-width: 1px;
  margin-bottom: 1px;
}

/* Botão Secundário / Ghost */
.btn-secondary {
  background-color: var(--color-surface-container-lowest);
  color: var(--color-on-surface);
  border-color: var(--color-border-subtle);
  border-bottom: 2px solid var(--color-border-strong);
}

.btn-secondary:hover {
  background-color: var(--color-surface-container-low);
  border-color: var(--color-border-strong);
}

.btn-secondary:active {
  transform: translateY(1px);
  border-bottom-width: 1px;
  margin-bottom: 1px;
}

/* Botão de Sucesso (Emerald) */
.btn-success {
  background-color: var(--color-secondary);
  color: var(--color-on-secondary);
  border-color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary-active);
}

.btn-success:hover {
  background-color: #059669;
}

.btn-success:active {
  transform: translateY(1px);
  border-bottom-width: 1px;
  margin-bottom: 1px;
}

/* Botão Destrutivo / Excluir */
.btn-destructive {
  background-color: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
  border-bottom: 2px solid #f87171;
}

.btn-destructive:hover {
  background-color: #fee2e2;
}

.btn-destructive:active {
  transform: translateY(1px);
  border-bottom-width: 1px;
  margin-bottom: 1px;
}

/* Botão de Autenticação Google */
.btn-google {
  width: 100%;
  max-width: 320px;
  background-color: #ffffff;
  color: #1f2937;
  border: 1px solid var(--color-border-strong);
  border-bottom: 2px solid #94a3b8;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-level-1);
}

.btn-google:hover {
  background-color: #f8fafc;
}

.btn-google:active {
  transform: translateY(1px);
  border-bottom-width: 1px;
}

.btn-google svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* Divisor Visual da Tela de Login */
.auth-divider {
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--space-xs) 0;
  color: var(--color-outline);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-border-subtle);
}

.auth-divider span {
  padding: 0 var(--space-sm);
}

/* Botão de Modo Demonstrativo / Simulado */
.btn-demo {
  width: 100%;
  max-width: 320px;
  background-color: var(--color-surface-container-low);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary-fixed-dim, #c3c0ff);
  border-bottom: 2px solid var(--color-primary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-level-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-demo:hover {
  background-color: var(--color-primary-container);
  border-color: var(--color-primary);
}

.btn-demo:active {
  transform: translateY(1px);
  border-bottom-width: 1px;
}

.btn-demo .material-symbols-outlined {
  font-size: 20px;
}

/* Botões Táteis de Tempo Rápido (+15m, +30m, etc.) */
.time-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.btn-time-shortcut {
  flex-direction: column;
  padding: 0.875rem 0.5rem;
  background-color: var(--color-surface-container-lowest);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary-fixed-dim, #c3c0ff);
  border-bottom: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  font-family: var(--font-family-headline);
  font-size: 17px;
  font-weight: 700;
  box-shadow: var(--shadow-level-1);
}

.btn-time-shortcut:hover {
  background-color: var(--color-primary-container);
  border-color: var(--color-primary);
}

.btn-time-shortcut:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
  margin-bottom: 2px;
}

.btn-time-shortcut .time-label {
  font-size: 11px;
  font-family: var(--font-family-body);
  font-weight: 500;
  color: var(--color-on-surface-variant);
  margin-top: 2px;
}

/* ==========================================================================
   Cards e Superfícies Táteis
   ========================================================================== */
.card {
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-level-1);
  position: relative;
}

.card-elevated {
  box-shadow: var(--shadow-level-2);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

/* Card Especial da Técnica Ativa do Dia */
.card-technique {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-surface-container-low) 100%);
  border-left: 4px solid var(--color-primary);
}

/* ==========================================================================
   Inputs e Formulários
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.form-label,
label.label-md {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-family-body, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-on-surface);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-control,
.input-base {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-family: var(--font-family-body, 'Inter', sans-serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-on-surface);
  background-color: var(--color-surface-container-lowest);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:hover,
.input-base:hover {
  border-color: var(--color-outline);
  background-color: var(--color-surface-container-low);
}

.form-control:focus,
.input-base:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-surface-container-lowest);
  box-shadow: 0 0 0 3.5px rgba(79, 70, 229, 0.15), 0 1px 2px rgba(15, 23, 42, 0.05);
}

.form-control::placeholder,
.input-base::placeholder {
  color: var(--color-outline);
  font-size: 13.5px;
  font-weight: 400;
}

textarea.form-control,
textarea.input-base {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
  font-family: var(--font-family-body, 'Inter', sans-serif);
}

input[type="date"].form-control,
input[type="date"].input-base {
  min-height: 48px;
  cursor: pointer;
  font-family: var(--font-family-body, 'Inter', sans-serif);
  font-size: 14px;
  color: var(--color-on-surface);
  background-color: var(--color-surface-container-lowest);
  color-scheme: light;
}

[data-theme="dark"] input[type="date"].form-control,
[data-theme="dark"] input[type="date"].input-base {
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ==========================================================================
   Pills, Badges e Chips de Status
   ========================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.625rem;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 14px;
}

.pill-streak {
  background-color: var(--color-tertiary-container);
  color: var(--color-on-tertiary-container);
  border: 1px solid #fde68a;
}

.pill-mastered {
  background-color: var(--color-secondary-container);
  color: var(--color-on-secondary-container);
  border: 1px solid #a7f3d0;
}

.pill-learning {
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
  border: 1px solid #c7d2fe;
}

.pill-folder {
  background-color: var(--color-surface-container);
  color: var(--color-on-surface);
  border: 1px solid var(--color-border-subtle);
}

.pill-warning {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* ==========================================================================
   Barras de Progresso e Métricas
   ========================================================================== */
.progress-track {
  width: 100%;
  height: 10px;
  background-color: var(--color-surface-container-high);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Círculo de Progresso Diário */
.daily-progress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) 0;
}

.circular-progress-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .circular-progress-wrap {
    width: 184px;
    height: 184px;
  }
}

.circular-progress-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
  display: block;
}

.circular-progress-bg {
  fill: none;
  stroke: var(--color-surface-container-high);
  stroke-width: 10;
}

.circular-progress-bar {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s;
}

.circular-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 82%;
  max-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

@media (min-width: 768px) {
  .circular-progress-text {
    max-width: 156px;
  }
}

.circular-progress-val,
.circular-progress-text .display-title {
  font-family: var(--font-family-headline);
  font-size: 26px !important;
  font-weight: 800;
  line-height: 1.15 !important;
  letter-spacing: -0.02em;
  color: var(--color-on-surface);
  white-space: nowrap;
}

.circular-progress-val.long-text,
.circular-progress-text .display-title.long-text {
  font-size: 20px !important;
  line-height: 1.15 !important;
}

@media (min-width: 768px) {
  .circular-progress-val,
  .circular-progress-text .display-title {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }
  .circular-progress-val.long-text,
  .circular-progress-text .display-title.long-text {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }
}

.circular-progress-label,
.circular-progress-text .body-sm {
  font-size: 12px;
  line-height: 1.25;
  color: var(--color-on-surface-variant);
  margin-top: 4px;
  white-space: nowrap;
  font-weight: 500;
}

@media (min-width: 768px) {
  .circular-progress-label,
  .circular-progress-text .body-sm {
    font-size: 13px;
  }
}

/* ==========================================================================
   Modais e Bottom Sheets (Mobile-First)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--color-surface-container-lowest);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-level-3);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1.1rem var(--space-md);
    max-height: 88vh;
  }
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
  }
  .modal-content {
    border-radius: var(--radius-xl);
    transform: scale(0.95);
  }
  .modal-overlay.active .modal-content {
    transform: scale(1);
  }
}

.modal-drag-indicator {
  width: 40px;
  height: 4px;
  background-color: var(--color-border-strong);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-md) auto;
}

/* ==========================================================================
   Toasts de Notificação
   ========================================================================== */
#toast-container {
  position: fixed;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  width: 90%;
  max-width: 380px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1rem;
  background-color: var(--color-inverse-surface);
  color: var(--color-inverse-on-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-level-3);
  font-size: 13px;
  font-weight: 500;
  animation: toastSlideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-success {
  border-left: 4px solid var(--color-secondary);
}

.toast-error {
  border-left: 4px solid var(--color-error);
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Perfil do Estudante e Checkbox Tátil (Fase 3)
   ========================================================================== */
.header-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.user-profile-summary {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xs);
}

.user-avatar-large {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container);
  color: var(--color-primary);
  font-family: var(--font-family-headline);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border-strong);
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar-large .user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.user-profile-info h4 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-group-checkbox {
  display: flex;
  align-items: flex-start;
}

.custom-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  line-height: 20px;
}

.custom-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-container-lowest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all var(--transition-fast);
}

.custom-checkbox-label input[type="checkbox"]:checked + .checkbox-box {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.custom-checkbox-label input[type="checkbox"]:checked + .checkbox-box::after {
  content: '';
  display: block;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.custom-checkbox-label input[type="checkbox"]:focus + .checkbox-box {
  box-shadow: 0 0 0 3px var(--color-primary-container);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseSlow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.85;
  }
}

/* ==========================================================================
   Canvas de Confetes
   ========================================================================== */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1500;
}

/* ==========================================================================
   Módulo "Hoje": Blocos de Imersão e Prática Ativa (Fase 4)
   ========================================================================== */
.card-technique.completed {
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
  border-left: 4px solid var(--color-secondary, #10B981);
}

.card-technique.attention-required {
  border: 1.5px solid #f59e0b;
  border-left: 4px solid #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  animation: pulseAmber 2s infinite ease-in-out;
}

@keyframes pulseAmber {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.28);
  }
}

/* Callouts e Caixas de Alerta */
.alert-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xs);
  transition: all var(--transition-normal);
}

.alert-callout.alert-warning {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  color: #92400e;
}

.alert-callout-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.alert-callout-icon span {
  font-size: 22px;
  color: #d97706;
}

.alert-callout-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alert-callout-title {
  font-family: var(--font-family-headline);
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
}

.alert-callout-desc {
  font-size: 12px;
  line-height: 18px;
  color: #78350f;
}

.immersion-entry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.immersion-entry-item:hover {
  background-color: var(--color-surface-container-low);
  border-color: var(--color-border-strong);
}

.immersion-entry-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  overflow: hidden;
}

.immersion-entry-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.immersion-entry-icon span {
  font-size: 20px;
}

.immersion-entry-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.immersion-entry-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.immersion-entry-meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.immersion-entry-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.immersion-entry-time {
  font-family: var(--font-family-headline);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
}

.btn-delete-entry {
  background: none;
  border: none;
  color: var(--color-outline);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.btn-delete-entry:hover {
  color: #dc2626;
  background-color: #fee2e2;
}

.btn-delete-entry:active {
  transform: scale(0.95);
}

/* Seletores de Categoria em Chips para Modais */
.category-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-xs);
  margin-top: 4px;
}

.category-chip-label {
  cursor: pointer;
  user-select: none;
}

.category-chip-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.category-chip {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 0.75rem;
  background-color: var(--color-surface-container-lowest);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-base);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-on-surface);
  transition: all var(--transition-fast);
}

.category-chip span.material-symbols-outlined {
  font-size: 18px;
  color: var(--color-primary);
}

.category-chip-label input[type="radio"]:checked + .category-chip {
  background-color: var(--color-primary-container);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--color-primary);
}

/* Opções de Seleção de Técnica Ativa (Bottom Sheet) */
.technique-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background-color: var(--color-surface-container-lowest);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.technique-option-btn:hover {
  background-color: var(--color-surface-container-low);
  border-color: var(--color-border-strong);
}

.technique-option-btn:active {
  transform: translateY(1px);
}

.technique-option-btn.active {
  background-color: var(--color-primary-container);
  border-color: var(--color-primary);
}

.technique-opt-title {
  font-family: var(--font-family-headline);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-on-surface);
}

.technique-opt-desc {
  font-size: 12px;
  color: var(--color-on-surface-variant);
  margin-top: 2px;
}

/* ==========================================================================
   Aba Barril de Conteúdos (Catálogo Pessoal e Onboarding - Fase 5)
   ========================================================================== */

/* Carrossel Horizontal de Pastas Metodológicas */
.barril-folders-scroll {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  padding: 4px 2px var(--space-sm) 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.barril-folders-scroll::-webkit-scrollbar {
  display: none;
}

.folder-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.75rem;
  background-color: var(--color-surface-container-lowest);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  color: var(--color-on-surface);
  font-family: var(--font-family-body);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.folder-chip:hover {
  background-color: var(--color-surface-container-low);
  border-color: var(--color-border-strong);
}

.folder-chip:active {
  transform: translateY(1px);
}

.folder-chip.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.25);
}

.folder-chip-name {
  font-size: 13px;
  font-weight: 600;
}

.folder-chip-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container-high);
  color: var(--color-on-surface-variant);
  transition: all var(--transition-fast);
}

.folder-chip.active .folder-chip-badge {
  background-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* Cards de Materiais do Barril */
.barril-item-card {
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-level-1);
  transition: all var(--transition-fast);
}

.barril-item-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-level-2);
}

.barril-item-card.consumido {
  opacity: 0.88;
  background-color: #fafbfc;
}

.barril-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
}

.barril-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.barril-folder-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-on-surface-variant);
  letter-spacing: 0.02em;
  border-left: 3px solid var(--color-primary);
  padding-left: 6px;
}

.barril-item-title {
  font-family: var(--font-family-headline);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-on-surface);
  line-height: 1.35;
  margin-top: 2px;
}

.barril-item-title.text-strikethrough {
  text-decoration: line-through;
  color: var(--color-on-surface-variant);
}

.barril-item-status-wrap {
  flex-shrink: 0;
}

.barril-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-sm);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-border-subtle);
}

.barril-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-container-low);
  transition: all var(--transition-fast);
}

.barril-link-btn:hover {
  background-color: var(--color-surface-container-high);
  text-decoration: underline;
}

.barril-link-btn:active {
  transform: scale(0.97);
}

.barril-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-barril-action {
  background: none;
  border: none;
  color: var(--color-outline);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-barril-action:hover {
  background-color: var(--color-surface-container-low);
  color: var(--color-on-surface);
}

.btn-barril-action:active {
  transform: scale(0.92);
}

.btn-barril-toggle:hover {
  color: #065f46;
  background-color: #ecfdf5;
}

.btn-barril-toggle.active {
  color: #065f46;
}

.btn-barril-edit:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-container);
}

.btn-barril-delete:hover {
  color: var(--color-error);
  background-color: #fef2f2;
}

/* Estado de Pasta Vazia */
.barril-empty-state {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.barril-empty-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container-high);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md) auto;
}

.barril-empty-icon-wrap span {
  font-size: 28px;
}

/* Skeleton Loading para Barril */
.skeleton-card {
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-xs);
}

.skeleton-box {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeletonPulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-title {
  height: 18px;
  width: 65%;
  margin-bottom: 8px;
}

.skeleton-meta {
  height: 14px;
  width: 40%;
}

/* Radio Chip para Status no Modal */
.radio-chip-label {
  cursor: pointer;
  user-select: none;
}

.radio-chip-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.6rem 0.75rem;
  background-color: var(--color-surface-container-lowest);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-on-surface);
  transition: all var(--transition-fast);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.radio-chip span.material-symbols-outlined {
  font-size: 18px;
}

.radio-chip-label input[type="radio"]:checked + .radio-chip {
  background-color: var(--color-primary-container);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--color-primary);
}

/* Modal de Boas-Vindas (Onboarding) */
.onboarding-hero-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xs) auto;
  box-shadow: 0 6px 16px -2px rgba(79, 70, 229, 0.35);
}

.onboarding-hero-icon span {
  font-size: 32px;
}

.onboarding-option-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background-color: var(--color-surface-container-lowest);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.onboarding-option-card:hover {
  border-color: var(--color-primary);
  background-color: var(--color-surface-container-low);
}

.onboarding-option-card:active {
  transform: translateY(1px);
}

.onboarding-option-card.active {
  border-color: var(--color-primary);
  background-color: var(--color-primary-container);
}

.onboarding-opt-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-base);
  background-color: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.onboarding-opt-content {
  flex: 1;
}

.onboarding-opt-title {
  font-family: var(--font-family-headline);
  font-size: 14px;
  color: var(--color-on-surface);
}

.onboarding-opt-desc {
  font-size: 12px;
  color: var(--color-on-surface-variant);
  margin-top: 2px;
  line-height: 1.4;
}

/* ==========================================================================
   Módulo 4: Resultados, Marcos de Horas e Histórico de Testes (Fase 6)
   ========================================================================== */

/* Botões de Filtro em Pill */
button.pill {
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border-subtle);
  outline: none;
}

button.pill:hover {
  filter: brightness(0.96);
}

button.pill:active {
  transform: translateY(1px);
}

.pill-learning.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
}

/* Botões de Ação de Exclusão */
.btn-action-icon,
.btn-delete-test {
  background: none;
  border: none;
  color: var(--color-outline);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.btn-action-icon:hover,
.btn-delete-test:hover {
  color: #dc2626;
  background-color: #fee2e2;
}

.btn-action-icon:active,
.btn-delete-test:active {
  transform: scale(0.95);
}

/* Cards de Teste */
.test-record-card {
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.test-record-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.test-card-header {
  margin-bottom: var(--space-xs);
}

.test-card-body {
  margin-top: var(--space-xs);
}

.test-item-title {
  font-family: var(--font-family-headline);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-on-surface);
  margin-bottom: 4px;
}

.test-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background-color: var(--color-surface-container);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-base);
  font-size: 13px;
  color: var(--color-on-surface);
  margin-top: 6px;
}

.test-reflection-box {
  background-color: var(--color-surface-container-low);
  border-left: 3px solid var(--color-primary);
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 8px;
  font-style: italic;
}

.test-reflection-box.quote-highlight {
  border-left-color: var(--color-secondary);
  background-color: #f0fdf4;
  font-style: normal;
}

.test-reflection-box.quote-highlight p {
  color: var(--color-on-surface);
}

/* Estado Vazio de Testes */
.test-empty-state {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.test-empty-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm) auto;
}

.test-empty-icon-wrap span {
  font-size: 32px;
}

/* Grid de Seleção de Modalidade no Modal */
.modal-test-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
}

@media (max-width: 480px) {
  .modal-test-types-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  .modal-test-types-grid .radio-chip {
    padding: 0.4rem 0.25rem;
    font-size: 11px;
    flex-direction: column;
    gap: 2px;
  }
}

/* Slider de Porcentagem (Range) */
.input-range {
  width: 100%;
  accent-color: var(--color-primary);
  cursor: pointer;
  height: 6px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Módulo Turma & Amigos (Fase 7 - Incentivo Mútuo e Acompanhamento Diário)
   ========================================================================== */

/* Estado Vazio de Turma */
.turma-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.turma-empty-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-container);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.turma-info-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background-color: var(--color-surface-container-low);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-on-surface-variant);
  text-align: left;
  max-width: 440px;
  margin: 0 auto;
}

/* Seção de Cabeçalho da Turma */
.turma-header-section {
  margin-bottom: var(--space-md);
}

/* Caixa do Código de Convite */
.turma-code-box {
  background-color: var(--color-surface-container-lowest);
  border: 1.5px dashed var(--color-outline-variant);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: var(--space-md);
  transition: border-color 0.2s ease;
}

.turma-code-box:hover {
  border-color: var(--color-primary);
}

.turma-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.label-xs {
  font-family: var(--font-family-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.turma-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.turma-code-value {
  font-family: var(--font-family-headline);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background-color: var(--color-surface-container-low);
  padding: 6px 12px;
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border-subtle);
  user-select: all;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .turma-code-value {
    font-size: 18px;
    padding: 6px 8px;
    letter-spacing: 0.04em;
  }
}

.btn-copy-code {
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-weight: 600;
  border-radius: var(--radius-base) !important;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-copy-code.btn-copied {
  border-color: var(--color-secondary) !important;
  background-color: #f0fdf4 !important;
}

/* Nota de Privacidade Estrita (RN-10) */
.turma-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background-color: var(--color-surface-container-low);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-base);
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-on-surface-variant);
  margin-top: var(--space-xs);
  margin-bottom: var(--space-sm);
}

/* Lista de Colegas da Turma */
.turma-members-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.turma-member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  gap: 8px;
}

.turma-member-item:hover {
  border-color: var(--color-outline-variant);
  box-shadow: var(--shadow-level-1);
}

.turma-member-item.turma-member-me {
  background-color: var(--color-surface-container-low);
  border-left: 3px solid var(--color-primary);
}

.turma-avatar-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.turma-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.turma-avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary) 0%, #6366f1 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-headline);
  font-size: 13px;
  font-weight: 700;
}

.turma-member-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.turma-member-name {
  font-family: var(--font-family-headline);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-on-surface);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.member-display-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.badge-you {
  font-family: var(--font-family-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}

.turma-member-role {
  font-size: 12px;
  line-height: 1.2;
}

.turma-member-status {
  flex-shrink: 0;
}

/* Badges Visuais de Status Binário (RN-10 e RN-11) */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-meta-batida {
  background-color: var(--color-secondary-container, #ecfdf5);
  color: var(--color-on-secondary-container, #065f46);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.badge-meta-batida .material-symbols-outlined {
  color: var(--color-secondary, #10b981);
}

.badge-meta-pendente {
  background-color: var(--color-surface-container, #f8fafc);
  color: var(--color-on-surface-variant, #64748b);
  border: 1px solid var(--color-border-subtle, #e2e8f0);
}

.badge-meta-pendente .material-symbols-outlined {
  color: var(--color-on-surface-variant, #94a3b8);
}

/* Botão Secundário de Perigo: Sair da Turma */
.btn-destructive-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.2rem;
  background-color: transparent;
  color: var(--color-error);
  border: 1px solid #fecaca;
  border-radius: var(--radius-base);
  font-family: var(--font-family-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-destructive-ghost:hover {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.btn-destructive-ghost:active {
  transform: translateY(1px);
}

/* Responsividade Mobile Refinada (360px a 430px) */
@media (max-width: 430px) {
  .turma-member-item {
    padding: 8px 10px;
  }
  .turma-member-name {
    font-size: 13.5px;
  }
  .badge-status {
    padding: 3px 8px;
    font-size: 11px;
    gap: 3px;
  }
  .badge-status .material-symbols-outlined {
    font-size: 14px !important;
  }
}

/* Linha de Ações Táteis em Modais (Mobile-First) */
.modal-actions-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  width: 100%;
}

.btn-modal-action {
  flex: 1;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  padding: 0.65rem 0.75rem !important;
  font-size: 13.5px !important;
  font-weight: 600;
  border-radius: var(--radius-base) !important;
}

@media (max-width: 380px) {
  .btn-modal-action {
    font-size: 12.5px !important;
    padding: 0.6rem 0.4rem !important;
    gap: 4px !important;
  }
}

/* ==============================================================================
   Alternador de Tema (Modo Claro / Escuro / Sistema) - Fase 8
   ============================================================================== */
.theme-toggle-group {
  display: flex;
  background-color: var(--color-surface-container-low);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
  margin-top: var(--space-xs);
  margin-bottom: var(--space-md);
}

.theme-opt-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-on-surface-variant);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-opt-btn .material-symbols-outlined {
  font-size: 18px;
}

.theme-opt-btn:hover {
  color: var(--color-on-surface);
  background-color: var(--color-surface-container);
}

.theme-opt-btn.active {
  background-color: var(--color-surface-container-lowest);
  color: var(--color-primary);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-level-1);
}

/* ==============================================================================
   Documentos Legais, Termos de Uso e Política de Privacidade - Fase 8
   ============================================================================== */
.auth-legal-footer {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  width: 100%;
}

.auth-legal-footer .legal-dot {
  display: none;
}

@media (min-width: 480px) {
  .auth-legal-footer {
    flex-direction: row;
    gap: var(--space-sm);
    flex-wrap: wrap;
  }
  .auth-legal-footer .legal-dot {
    display: inline;
  }
}

.legal-link {
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  padding: 4px 8px;
  color: var(--color-on-surface-variant);
  font-family: var(--font-family-body, inherit);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  cursor: pointer;
  border-radius: var(--radius-sm);
  -webkit-appearance: none;
  appearance: none;
}

.legal-link:hover {
  color: var(--color-primary);
  background-color: var(--color-surface-container-low);
}

.legal-modal-container {
  display: flex;
  flex-direction: column;
}

.legal-document-body {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: var(--space-xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-section-title {
  font-family: var(--font-family-headline);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-on-surface);
}

.legal-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--color-on-surface-variant);
}

.legal-email-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.legal-email-link:hover {
  text-decoration: underline;
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--color-on-surface-variant);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-modal-close:hover {
  color: var(--color-on-surface);
  background-color: var(--color-surface-container);
}

.contact-channel-card {
  background-color: var(--color-surface-container-low);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.contact-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==============================================================================
   Modal de Exclusão de Conta em Duas Etapas (Conformidade LGPD) - Fase 8
   ============================================================================== */
.delete-account-modal {
  display: flex;
  flex-direction: column;
}

.delete-warning-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.delete-warning-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--color-on-surface-variant);
}

.delete-warning-list li .material-symbols-outlined {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.input-delete-security {
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: var(--color-error) !important;
  border-color: var(--color-error) !important;
}

.input-delete-security:focus {
  box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.2) !important;
}

.btn-destructive-ghost {
  background: transparent;
  color: var(--color-error);
  border: 1px solid var(--color-error);
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-base);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-destructive-ghost:hover {
  background-color: var(--color-error-container);
  color: var(--color-on-error-container);
}

.profile-action-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.profile-legal-btn {
  width: 100%;
  justify-content: center;
  background: var(--color-surface-container-low);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-on-surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.profile-legal-btn:hover {
  background-color: var(--color-surface-container);
  color: var(--color-primary);
  border-color: var(--color-border-strong);
}

.profile-legal-btn .material-symbols-outlined {
  font-size: 18px;
}

@media (min-width: 641px) {
  .profile-action-links {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
  }

  .profile-legal-btn {
    width: auto;
    padding: 0.5rem 1rem;
  }
}

/* ==============================================================================
   Refinamentos de Estilo para Modo Escuro (Dark Mode)
   ============================================================================== */
[data-theme="dark"] .auth-logo {
  filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
}

[data-theme="dark"] .brand-logo-img {
  filter: drop-shadow(0 1px 4px rgba(99, 102, 241, 0.4));
}

[data-theme="dark"] .circular-progress-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .btn-time-shortcut {
  background-color: var(--color-surface-container-low);
  border-color: var(--color-border-strong);
  color: var(--color-on-surface);
}

[data-theme="dark"] .btn-time-shortcut:hover {
  background-color: var(--color-surface-container);
}

[data-theme="dark"] .time-label {
  color: var(--color-on-surface-variant);
}

[data-theme="dark"] .pill-folder {
  background-color: var(--color-surface-container-low);
  color: var(--color-on-surface-variant);
  border-color: var(--color-border-strong);
}

[data-theme="dark"] .folder-chip {
  background-color: var(--color-surface-container-low);
  color: var(--color-on-surface-variant);
  border-color: var(--color-border-strong);
}

[data-theme="dark"] .folder-chip.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

[data-theme="dark"] .immersion-entry-item,
[data-theme="dark"] .barril-item-card,
[data-theme="dark"] .test-record-card,
[data-theme="dark"] .turma-member-item {
  background-color: var(--color-surface-container-low);
  border-color: var(--color-border-strong);
}

[data-theme="dark"] .btn-barril-action,
[data-theme="dark"] .btn-delete-entry,
[data-theme="dark"] .btn-delete-test {
  background-color: var(--color-surface-container);
  color: var(--color-on-surface-variant);
}

[data-theme="dark"] .btn-barril-action:hover,
[data-theme="dark"] .btn-delete-entry:hover,
[data-theme="dark"] .btn-delete-test:hover {
  background-color: var(--color-surface-container-high);
  color: var(--color-on-surface);
}

[data-theme="dark"] .card-technique {
  background: linear-gradient(135deg, var(--color-surface-container-lowest) 0%, var(--color-surface-container-low) 100%);
}

[data-theme="dark"] .card-technique.completed {
  background: linear-gradient(135deg, var(--color-surface-container-lowest) 0%, rgba(16, 185, 129, 0.12) 100%);
}

[data-theme="dark"] .alert-callout.alert-warning {
  background-color: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

[data-theme="dark"] .alert-callout.alert-warning .alert-callout-title {
  color: #fbbf24;
}

[data-theme="dark"] .alert-callout.alert-warning .alert-callout-desc {
  color: #fef3c7;
}

[data-theme="dark"] .alert-callout.alert-error {
  background-color: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fecaca;
}

[data-theme="dark"] .alert-callout.alert-error .alert-callout-title {
  color: #f87171;
}

[data-theme="dark"] .alert-callout.alert-error .alert-callout-desc {
  color: #fee2e2;
}

[data-theme="dark"] .test-reflection-box {
  background-color: var(--color-surface-container);
  border-left-color: var(--color-primary);
  color: var(--color-on-surface);
}

/* Itens Selecionados no Modo Escuro (Alto Contraste e Ilegibilidade Zero) */
[data-theme="dark"] .onboarding-option-card.active {
  background-color: rgba(99, 102, 241, 0.22) !important;
  border-color: var(--color-primary) !important;
}

[data-theme="dark"] .onboarding-option-card.active .onboarding-opt-title {
  color: #ffffff !important;
}

[data-theme="dark"] .onboarding-option-card.active .onboarding-opt-desc {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .radio-chip-label input[type="radio"]:checked + .radio-chip {
  background-color: rgba(99, 102, 241, 0.25) !important;
  color: #c7d2fe !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 1px var(--color-primary) !important;
}

[data-theme="dark"] .category-chip-label input[type="radio"]:checked + .category-chip {
  background-color: rgba(99, 102, 241, 0.25) !important;
  color: #c7d2fe !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 1px var(--color-primary) !important;
}

[data-theme="dark"] .technique-option-btn.active {
  background-color: rgba(99, 102, 241, 0.22) !important;
  border-color: var(--color-primary) !important;
}

[data-theme="dark"] .technique-option-btn.active .technique-opt-title {
  color: #ffffff !important;
}

[data-theme="dark"] .technique-option-btn.active .technique-opt-desc {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .profile-legal-btn {
  background: var(--color-surface-container-low);
  border-color: var(--color-border-strong);
  color: var(--color-on-surface);
}

[data-theme="dark"] .profile-legal-btn:hover {
  background: var(--color-surface-container);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

[data-theme="dark"] .legal-link {
  color: #94a3b8;
  background: transparent;
}

[data-theme="dark"] .legal-link:hover {
  color: var(--color-primary);
  background-color: var(--color-surface-container-low);
}

/* Badges de Status da Turma no Modo Escuro */
[data-theme="dark"] .badge-meta-batida {
  background-color: rgba(16, 185, 129, 0.16) !important;
  color: #6ee7b7 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

[data-theme="dark"] .badge-meta-batida .material-symbols-outlined {
  color: #34d399 !important;
}

[data-theme="dark"] .badge-meta-pendente {
  background-color: rgba(148, 163, 184, 0.12) !important;
  color: #94a3b8 !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}

[data-theme="dark"] .badge-meta-pendente .material-symbols-outlined {
  color: #94a3b8 !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge-meta-batida {
    background-color: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.35);
  }

  :root:not([data-theme="light"]) .badge-meta-batida .material-symbols-outlined {
    color: #34d399;
  }

  :root:not([data-theme="light"]) .badge-meta-pendente {
    background-color: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.25);
  }

  :root:not([data-theme="light"]) .badge-meta-pendente .material-symbols-outlined {
    color: #94a3b8;
  }
}

/* ==========================================================================
   Fase 10 - Progressive Web App (PWA) e Instalação
   ========================================================================== */
.pwa-install-section {
  display: flex;
  flex-direction: column;
}

.pwa-install-section.hidden {
  display: none !important;
}

#btn-install-pwa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

#btn-install-pwa:active {
  transform: translateY(2px);
}






