/* Estilos Globais e Design System - Tatame Pro */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700&display=swap');

:root {
  /* Cores Base */
  --bg-primary: #0A192F;         /* Deep Navy */
  --bg-surface: #101415;         /* Tonal Dark background */
  --bg-card: #1E293B;            /* Navy Slate */
  --border-card: #334155;        /* Overlay Border */
  
  /* Cores de Ação e Semânticas */
  --color-primary: #b9c7e4;
  --color-gold: #D4AF37;         /* Dourado para Graduação/Ações Primárias */
  --color-emerald: #10B981;      /* Verde para Presença/Adimplência */
  --color-danger: #EF4444;       /* Vermelho para Erros/Inadimplência */
  
  /* Textos */
  --text-primary: #e0e3e5;
  --text-secondary: #c5c6cd;
  --text-dark: #0A192F;
  --text-muted: #64748B;
  
  /* Cores de Faixa (Belt Palette) */
  --belt-branca: #FFFFFF;
  --belt-azul: #2563EB;
  --belt-roxa: #7C3AED;
  --belt-marrom: #854D0E;
  --belt-preta: #111827;

  /* Fontes */
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset e Estrutura */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  background-color: var(--bg-surface);
}

@media (min-width: 481px) {
  #app {
    border-left: 1px solid var(--border-card);
    border-right: 1px solid var(--border-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }
}

/* Tipografia */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 28px;
  line-height: 1.3;
}

h2 {
  font-size: 20px;
  line-height: 1.4;
}

h3 {
  font-size: 16px;
  line-height: 1.4;
}

/* Componentes Comuns */

/* Top Bar */
.top-bar {
  height: 64px;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--color-gold);
}

.logout-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  color: var(--color-danger);
}

/* Layout Principal */
.content-area {
  flex: 1;
  padding: 20px 16px 80px 16px; /* 80px bottom padding para não sobrepor o Bottom Nav */
  overflow-y: auto;
}

/* Bottom Nav Bar */
.bottom-nav {
  height: 64px;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-card);
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 4px;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  transition: transform 0.2s ease;
}

.nav-item.active {
  color: var(--color-gold);
}

.nav-item.active svg {
  transform: translateY(-2px);
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

/* Schedule Card (Accent vertical bar por faixa) */
.schedule-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--accent-belt-color, var(--color-gold));
}

.schedule-info {
  padding-left: 8px;
}

.schedule-time {
  font-size: 14px;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 4px;
}

.schedule-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.schedule-days {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px; /* Altura mínima de 48px para mobile */
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  width: 100%;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--text-dark);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--text-secondary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-danger {
  background-color: var(--color-danger);
  color: white;
}

.btn-success {
  background-color: var(--color-emerald);
  color: var(--text-dark);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-financeiro-em_dia {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
}

.badge-financeiro-inadimplente {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
}

.badge-bolsista {
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--color-gold);
}

/* Barra de Progresso de Graus */
.progress-container {
  margin: 16px 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.progress-track {
  height: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background-color: var(--color-gold);
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.progress-pulse {
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
  }
  100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 1);
  }
}

/* Graus Display (Visualização das faixas/graus) */
.belt-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border-card);
  margin-bottom: 20px;
}

.belt-visual-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.belt-strip {
  height: 32px;
  width: 100%;
  border-radius: 4px;
  background-color: var(--belt-color, var(--belt-branca));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.belt-strip::after {
  content: '';
  position: absolute;
  top: 0;
  right: 40px;
  bottom: 0;
  width: 32px;
  background-color: #111827; /* Ponteira preta da faixa */
}

/* Representação visual dos graus na ponteira preta */
.degrees-container {
  position: absolute;
  top: 0;
  right: 42px;
  bottom: 0;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  z-index: 10;
}

.degree-stripe {
  width: 3px;
  height: 18px;
  background-color: white; /* Graus brancos na ponteira preta */
  border-radius: 1px;
}

.belt-details {
  margin-left: 16px;
}

.belt-title {
  font-size: 18px;
  font-weight: 700;
}

.belt-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Telas Específicas */

/* Login Screen */
.login-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 32px 24px;
  background: radial-gradient(circle at center, #0F172A 0%, #020617 100%);
  text-align: center;
}

.login-header {
  margin-bottom: 48px;
}

.login-header h1 {
  font-size: 36px;
  margin-bottom: 8px;
  color: white;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.login-illustration {
  width: 140px;
  height: 140px;
  margin-bottom: 40px;
  background-color: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-gold);
}

.login-illustration svg {
  width: 72px;
  height: 72px;
  color: var(--color-gold);
}

/* Google Sign-in Button Custom */
.btn-google {
  background-color: white;
  color: #1F2937;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

/* Member List & Presence (Professor View) */
.presence-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.presence-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.presence-item.pending {
  border-left: 4px solid var(--color-gold);
}

.presence-item.confirmed {
  border-left: 4px solid var(--color-emerald);
}

.member-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 2px solid var(--belt-border-color, var(--belt-branca));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 14px;
}

.member-info h4 {
  font-size: 15px;
  margin-bottom: 2px;
}

.member-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

.presence-actions {
  display: flex;
  gap: 8px;
}

.action-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.btn-confirm {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
}

.btn-confirm:hover {
  background-color: var(--color-emerald);
  color: var(--text-dark);
}

.btn-remove {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
}

.btn-remove:hover {
  background-color: var(--color-danger);
  color: white;
}

/* Botão recusar check-in individual — ícone × vermelho */
.btn-recusar {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
}

.btn-recusar:hover {
  background-color: var(--color-danger);
  color: white;
}

/* Alertas & Notificações Popups */
.toast-notification {
  position: absolute;
  top: 80px;
  left: 16px;
  right: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  padding: 16px;
  z-index: 1000;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  animation: slide-down 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  gap: 12px;
}

@keyframes slide-down {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  color: white;
  margin-bottom: 4px;
}

.toast-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

/* Loader */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 16px;
}

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

/* Classes utilitárias */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.w-full { width: 100%; }

/* --- TIMELINE DE GRADUAÇÕES --- */
.timeline-container {
  position: relative;
  padding: 16px 0;
  margin: 16px 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border-card);
}

.timeline-item {
  position: relative;
  padding-left: 44px;
  margin-bottom: 24px;
  cursor: pointer;
}

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

.timeline-marker {
  position: absolute;
  left: 7px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--belt-color, var(--belt-branca));
  border: 4px solid var(--bg-surface);
  box-shadow: 0 0 0 2px var(--border-card);
  z-index: 10;
  transition: all 0.25s ease;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.2);
  box-shadow: 0 0 8px var(--belt-color, var(--belt-branca));
}

.timeline-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.timeline-item:hover .timeline-content {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--color-gold);
}

.timeline-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}

.timeline-date {
  font-size: 12px;
  color: var(--text-secondary);
}

/* --- PODIUM DO RANKING (3D) --- */
.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  height: 200px;
  margin: 32px 0 20px 0;
}

.podium-place {
  flex: 1;
  max-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.podium-num {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.podium-place-first .podium-num {
  font-size: 20px;
  color: var(--color-gold);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.podium-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #C0C0C0; /* Prata para 2º */
  margin-bottom: 8px;
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.podium-place-first .podium-avatar {
  width: 64px;
  height: 64px;
  border-color: var(--color-gold); /* Ouro para 1º */
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.podium-place-third .podium-avatar {
  width: 48px;
  height: 48px;
  border-color: #CD7F32; /* Bronze para 3º */
}

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

.podium-bar {
  width: 100%;
  background-color: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-card);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 12px;
  text-align: center;
}

.podium-place-second .podium-bar {
  height: 90px;
  border-top-color: rgba(192, 192, 192, 0.3);
}

.podium-place-first .podium-bar {
  height: 120px;
  background-color: rgba(212, 175, 55, 0.08);
  border-top-color: rgba(212, 175, 55, 0.4);
}

.podium-place-third .podium-bar {
  height: 70px;
  border-top-color: rgba(205, 127, 50, 0.3);
}

.podium-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-score {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.podium-place-first .podium-score {
  color: var(--color-gold);
  font-weight: 700;
}

/* --- MODAL E CERTIFICADO --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 400px;
  background-color: #0F172A;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-body {
  padding: 24px;
}

.certificate-frame {
  border: 2px solid var(--color-gold);
  padding: 16px;
  border-radius: 8px;
  background: radial-gradient(circle at center, #1E293B 0%, #0F172A 100%);
  text-align: center;
  position: relative;
}

.certificate-frame::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px dashed rgba(212, 175, 55, 0.3);
  pointer-events: none;
}

.certificate-badge {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px auto;
  color: var(--color-gold);
  opacity: 0.85;
}

.certificate-title {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.certificate-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.certificate-text strong {
  color: white;
  font-size: 13px;
}

.certificate-signature-area {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-card);
}

.certificate-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signature-line {
  width: 100px;
  height: 1px;
  background-color: var(--text-muted);
  margin-bottom: 4px;
}

.signature-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.btn-share {
  margin-top: 16px;
}

/* --- PAINEL ADMINISTRATIVO (DESKTOP MODE) --- */

/* Quando em modo admin, removemos o limite de 480px em desktops para usar tela cheia */
body.admin-mode #app {
  max-width: 100% !important;
  width: 100vw;
  height: 100vh;
  flex-direction: row !important;
  background-color: var(--bg-surface);
  overflow: hidden;
}

/* Layout Geral no modo Admin */
.admin-main-layout {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Sidebar Admin Fixa */
.sidebar-admin {
  width: 280px;
  background-color: var(--bg-card);
  border-right: 1px solid var(--border-card);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  flex-shrink: 0;
  z-index: 50;
}

.sidebar-header {
  padding: 0 24px 24px 24px;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  overflow: hidden;
}

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

.sidebar-profile-info h3 {
  font-size: 15px;
  color: white;
  margin-bottom: 2px;
}

.sidebar-profile-info p {
  font-size: 11px;
  color: var(--text-secondary);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px;
  flex: 1;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 9999px;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
}

.sidebar-nav-item.active {
  background-color: var(--color-gold);
  color: var(--text-dark) !important;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.sidebar-logo {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-card);
  text-align: center;
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--color-gold);
  font-weight: 700;
}

/* Área do Painel de Conteúdo de Admin */
.admin-workspace {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 32px 32px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-workspace::after {
  content: '';
  display: block;
  height: 32px;
  flex-shrink: 0;
}

/* Bento Grid de Métricas */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.bento-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.bento-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--accent-color, var(--color-gold));
}

.bento-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.bento-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color, var(--color-gold));
}

.bento-card-trend {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 9999px;
}

.bento-card-trend-up {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
}

.bento-card-title {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.bento-card-value {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  color: white;
}

/* Tabelas Administrativas */
.table-responsive {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  padding: 14px 16px;
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-card);
}

.admin-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-card);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover {
  background-color: rgba(255, 255, 255, 0.01);
}

.admin-table tr.border-error {
  border-left: 4px solid var(--color-danger);
}

/* Checkbox Toggle Estilizado */
.checkbox-container {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-checkmark {
  height: 20px;
  width: 20px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.checkbox-container:hover .checkbox-checkmark {
  border-color: var(--color-gold);
}

.checkbox-input:checked ~ .checkbox-checkmark {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
}

.checkbox-checkmark::after {
  content: "✓";
  color: var(--text-dark);
  font-weight: 700;
  font-size: 13px;
  display: none;
}

.checkbox-input:checked ~ .checkbox-checkmark::after {
  display: block;
}

/* Variante azul para checkboxes da tela de Graduação */
.checkbox-input:checked ~ .grad-checkmark {
  background-color: #3B82F6;
  border-color: #3B82F6;
}
.checkbox-input:checked ~ .grad-checkmark::after {
  display: block;
  color: white;
}
.checkbox-container:hover .grad-checkmark {
  border-color: #3B82F6;
}

/* Modais do Admin */
.modal-admin-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  overflow-y: auto;
}

.modal-admin-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-admin-card {
  width: 100%;
  max-width: 480px;
  background-color: #0F172A;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
  margin: auto;
}

.modal-admin-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-admin-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Formulários */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.form-control {
  height: 44px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  color: white;
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--color-gold);
}

select.form-control {
  cursor: pointer;
}

/* Responsividade Mobile para o Admin */
@media (max-width: 768px) {
  body.admin-mode #app {
    height: auto;
    overflow-y: auto;
    flex-direction: column !important;
  }
  
  .sidebar-admin {
    width: 100% !important;
    height: auto !important;
    position: static !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-card) !important;
    padding: 16px !important;
  }
  
  .sidebar-header {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }
  
  .sidebar-nav {
    flex-direction: row !important;
    overflow-x: auto !important;
    padding: 12px 0 0 0 !important;
    border-top: 1px solid var(--border-card) !important;
    margin-top: 12px !important;
  }
  
  .sidebar-nav-item {
    padding: 8px 16px !important;
    border-radius: 16px !important;
    white-space: nowrap !important;
  }
  
  .sidebar-logo {
    display: none !important;
  }
  
  .admin-workspace {
    padding: 16px !important;
    height: auto !important;
    overflow-y: visible !important;
  }
}

/* Subtabs administrativas */
.btn-subtab {
  min-height: 36px;
  padding: 4px 12px;
  font-size: 12px;
  width: auto;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  border-radius: 0;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.btn-subtab:hover {
  color: white;
}

/* Estilos da Tela de Escolha de Perfil */
.profile-card-btn {
  transition: all 0.3s ease;
}
.profile-card-btn.selected {
  border-color: var(--color-gold) !important;
  background-color: rgba(212, 175, 55, 0.05) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.profile-card-btn.selected .profile-card-icon {
  color: var(--color-gold) !important;
  background-color: rgba(212, 175, 55, 0.1) !important;
}
.profile-card-btn.selected::after {
  content: "✓";
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--color-gold);
  font-size: 18px;
  font-weight: bold;
}

/* --- MODAL DE BOAS-VINDAS (Inscrição Confirmada) --- */
.welcome-frame {
  border: 2px solid var(--color-gold);
  padding: 24px 16px;
  border-radius: 8px;
  background: radial-gradient(circle at center, #1E293B 0%, #0F172A 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.welcome-frame .ornamental-corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 2px solid var(--color-gold);
}
.welcome-frame .corner-tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.welcome-frame .corner-tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.welcome-frame .corner-bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.welcome-frame .corner-br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.welcome-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px auto;
  background-color: rgba(16, 185, 129, 0.1);
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  font-size: 28px;
}

.welcome-status-label {
  font-size: 10px;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.welcome-title {
  font-family: var(--font-title);
  font-size: 18px;
  color: white;
  font-weight: 700;
  margin-bottom: 16px;
}

.welcome-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}

.welcome-detail-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.welcome-detail-value {
  font-size: 13px;
  color: white;
  font-weight: 600;
}

.welcome-responsible {
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 1 / -1;
  margin-top: 4px;
}

.welcome-responsible-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-weight: 700;
  font-size: 13px;
}

.welcome-quote {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.5;
}

/* Gold shimmer animation */
.gold-shimmer {
  background: linear-gradient(90deg, var(--color-gold) 0%, #e9c349 50%, var(--color-gold) 100%);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

/* --- TIMELINE MARKER VARIANTE: CHECK (inscrição) --- */
.timeline-marker-check {
  position: absolute;
  left: 7px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #10b981;
  border: 4px solid var(--bg-surface);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  z-index: 10;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: bold;
}

.timeline-item:hover .timeline-marker-check {
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* --- FORM HINT (dica abaixo do campo) --- */
.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
  font-style: italic;
}

/* --- CALENDÁRIO DE FREQUÊNCIA (Ajustes de Grid & Tooltip) --- */
.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  font-weight: 500;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  user-select: none;
}

.calendar-day-cell:hover {
  border-color: var(--color-gold);
  color: white;
}

.calendar-day-cell.today {
  border: 1px dashed var(--color-gold) !important;
}

.calendar-day-cell.has-presence {
  background-color: rgba(16, 185, 129, 0.15) !important;
  border-color: var(--color-emerald) !important;
  color: white !important;
  font-weight: 700;
}

.calendar-day-cell.has-presence:hover {
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.calendar-tooltip {
  display: none;
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 2px;
  flex-direction: column;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 100;
  pointer-events: none;
  text-align: left;
  min-width: 185px;
  background-color: #191c1e;
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: white;
}

.calendar-day-cell:hover .calendar-tooltip {
  display: flex;
}


/* ============================================
   PROFESSOR LAYOUT REDESIGN — BOTTOM NAV + DASHBOARD
   ============================================ */

/* --- Bottom Navigation Bar (Professor) --- */
.prof-bottom-nav {
  height: 80px;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-card);
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.prof-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 4px;
  padding: 8px 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.prof-nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.prof-nav-item.active {
  color: var(--color-gold);
}

.prof-nav-item.active svg {
  transform: translateY(-2px);
}

.prof-nav-item:active {
  transform: scale(0.9);
}

/* Item especial "Início" — fundo arredondado gold */
.prof-nav-item--inicio.active {
  color: var(--text-dark);
}

.prof-nav-item--inicio.active .prof-nav-inicio-pill {
  background-color: rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 6px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.prof-nav-item--inicio:not(.active) .prof-nav-inicio-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* --- Content Area Override (Professor) --- */
.prof-content-area {
  flex: 1;
  padding: 0 0 96px 0;
  overflow-y: auto;
}

/* --- Context Header (Dashboard) --- */
.prof-context-header {
  padding: 16px;
  border-bottom: 1px solid rgba(68, 71, 77, 0.3);
  background-color: var(--bg-surface);
}

.prof-context-header h2 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 32px;
}

.prof-context-header .prof-user-name {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 24px;
  margin-top: 2px;
}

/* --- Academy Selector --- */
.prof-academy-select-wrapper {
  position: relative;
  margin-top: 12px;
}

.prof-academy-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 40px 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 24px;
}

.prof-academy-select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 1px var(--color-gold);
}

.prof-academy-select:hover {
  background-color: rgba(39, 42, 44, 1);
}

.prof-academy-select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-secondary);
}

/* --- Dashboard Grid --- */
.prof-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}

/* --- Action Cards --- */
.prof-action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border-radius: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 130px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.prof-action-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background-color: transparent;
  transition: background-color 0.3s ease;
  pointer-events: none;
}

.prof-action-card:hover::before {
  background-color: rgba(212, 175, 55, 0.03);
}

.prof-action-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

.prof-action-card:active {
  transform: scale(0.97);
}

.prof-action-card--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.prof-action-card--disabled:hover {
  border-color: var(--border-card);
}

.prof-action-card--disabled:hover::before {
  background-color: transparent;
}

.prof-action-card--disabled:active {
  transform: none;
}

/* Variante Highlight (Graduação) */
.prof-action-card--highlight {
  border-color: var(--color-gold);
}

.prof-action-card--highlight::before {
  background-color: rgba(212, 175, 55, 0.05);
}

.prof-action-card--highlight:hover {
  border-color: var(--color-gold);
}

.prof-action-card--highlight:hover::before {
  background-color: rgba(212, 175, 55, 0.08);
}

/* Icon Circles */
.prof-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #0a192f;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.prof-action-card:hover .prof-icon-circle {
  transform: scale(1.1);
}

.prof-action-card--disabled:hover .prof-icon-circle {
  transform: none;
}

.prof-icon-circle svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.prof-icon-circle--gold {
  background-color: rgba(212, 175, 55, 0.15);
}

.prof-icon-circle--gold svg {
  color: var(--color-gold);
}

/* Card Labels */
.prof-card-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.prof-action-card--highlight .prof-card-title {
  color: var(--color-gold);
}

.prof-card-subtitle {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* Badge "Simulador" no card de Graduação */
.prof-badge-simulador {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(0, 30, 17, 0.8);
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 6px;
}

.prof-badge-simulador svg {
  width: 12px;
  height: 12px;
  color: #4edea3;
}

.prof-badge-simulador span {
  font-size: 10px;
  color: #4edea3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Badge "Em breve" */
.prof-badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(100, 116, 139, 0.2);
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 6px;
}

.prof-badge-soon span {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Bell Pulse Animation --- */
@keyframes bell-blink {
  0%, 100% {
    color: var(--color-gold);
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.6));
  }
  50% {
    color: rgba(212, 175, 55, 0.4);
    filter: drop-shadow(0 0 0px transparent);
  }
}

.bell-pulse {
  animation: bell-blink 1.2s ease-in-out infinite;
}

.bell-pulse svg {
  color: var(--color-gold);
}

/* --- Sub-view Header (Voltar + Título) --- */
.prof-subview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border-card);
  background-color: var(--bg-surface);
}

.prof-subview-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.prof-subview-back-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.prof-subview-back-btn:active {
  transform: scale(0.9);
}

.prof-subview-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Treino Cards (Aba Treinos) --- */
.prof-treino-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.prof-treino-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--color-gold);
}

.prof-treino-card-name {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding-left: 8px;
}

.prof-treino-card-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  padding-left: 8px;
}

.prof-treino-card-detail svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.prof-treino-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--color-gold);
  margin-top: 8px;
  margin-left: 8px;
}

/* --- Perfil Section (Aba Perfil) --- */
.prof-perfil-section {
  padding: 24px 16px;
}

.prof-perfil-avatar-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.prof-perfil-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 3px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.prof-perfil-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.prof-perfil-avatar-initials {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-gold);
}

.prof-perfil-name {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.prof-perfil-email {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 4px;
}

.prof-perfil-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--color-gold);
  margin-top: 8px;
}

.prof-perfil-info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.prof-perfil-info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.prof-perfil-info-value {
  font-size: 15px;
  color: var(--text-primary);
}

.prof-perfil-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-card);
  background-color: var(--bg-card);
  color: var(--text-primary);
  margin-bottom: 12px;
}

.prof-perfil-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.prof-perfil-action-btn:active {
  transform: scale(0.98);
}

.prof-perfil-action-btn svg {
  width: 20px;
  height: 20px;
}

.prof-perfil-action-btn--danger {
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--color-danger);
}

.prof-perfil-action-btn--danger:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

/* --- Aba Aulas (Professor) — seletor de treino --- */
.prof-aulas-selector {
  padding: 16px;
  border-bottom: 1px solid var(--border-card);
  background-color: var(--bg-surface);
}

.prof-aulas-selector label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.prof-aulas-selector select {
  width: 100%;
  height: 44px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.prof-aulas-selector select:focus {
  outline: none;
  border-color: var(--color-gold);
}

.prof-aulas-presence-area {
  padding: 16px;
}

/* ============================================
   CHECK-IN HISTÓRICO — Date Carousel & Filtros
   ============================================ */

/* --- Filtros de Ano e Mês --- */
.checkin-date-filters {
  display: flex;
  gap: 12px;
  padding: 12px 16px 8px;
  background-color: var(--bg-surface);
}

.checkin-date-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkin-date-field label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.checkin-date-field select {
  width: 100%;
  height: 42px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.checkin-date-field select:focus {
  outline: none;
  border-color: var(--color-gold);
}

/* --- Date Carousel (Dias do Mês) --- */
.date-carousel-wrapper {
  position: relative;
  padding: 8px 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-card);
}

.date-carousel {
  display: flex;
  gap: 6px;
  padding: 4px 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.date-carousel::-webkit-scrollbar {
  display: none;
}

.date-carousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 68px;
  border-radius: 12px;
  cursor: pointer;
  scroll-snap-align: center;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.date-carousel-item:active {
  transform: scale(0.93);
}

.date-carousel-item .day-name {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.date-carousel-item .day-number {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

/* Dia ativo (selecionado) */
.date-carousel-item.active {
  background-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.35);
}

.date-carousel-item.active .day-name {
  color: rgba(255, 255, 255, 0.8);
}

.date-carousel-item.active .day-number {
  color: #ffffff;
}

/* Indicador de "hoje" quando NÃO está ativo */
.date-carousel-item.today:not(.active)::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-gold);
}

.date-carousel-item.today:not(.active) .day-number {
  color: var(--color-gold);
}

/* Hover (desktop) */
.date-carousel-item:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.04);
}

/* --- Setas do Carousel --- */
.date-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.date-carousel-arrow:hover {
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
}

.date-carousel-arrow:active {
  transform: translateY(-50%) scale(0.9);
}

.date-carousel-arrow--left {
  left: 6px;
}

.date-carousel-arrow--right {
  right: 6px;
}

/* --- Info da Turma + Badge de Modo --- */
.checkin-turma-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--bg-surface);
}

.checkin-turma-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.checkin-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.checkin-mode-badge--realtime {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
}

.checkin-mode-badge--historico {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* --- Indicadores de Check-in (4 Cards Grid) --- */
.checkin-indicators {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 16px 6px;
  background-color: var(--bg-surface);
}

.checkin-indicator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 4px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.checkin-indicator-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  opacity: 0.12;
  z-index: 0;
}

.checkin-indicator-card > * {
  position: relative;
  z-index: 1;
}

.checkin-indicator-card .indicator-icon {
  font-size: 16px;
  line-height: 1;
  margin-bottom: 1px;
}

.checkin-indicator-card .indicator-value {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.checkin-indicator-card .indicator-value.bump {
  transform: scale(1.25);
}

.checkin-indicator-card .indicator-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* Tema: Solicitados (Dourado) */
.checkin-indicator-card--solic {
  border-color: rgba(212, 175, 55, 0.3);
}
.checkin-indicator-card--solic::before {
  background-color: var(--color-gold);
}
.checkin-indicator-card--solic .indicator-icon,
.checkin-indicator-card--solic .indicator-value,
.checkin-indicator-card--solic .indicator-label {
  color: var(--color-gold);
}

/* Tema: Pendentes (Laranja) */
.checkin-indicator-card--pend {
  border-color: rgba(245, 158, 11, 0.3);
}
.checkin-indicator-card--pend::before {
  background-color: #f59e0b;
}
.checkin-indicator-card--pend .indicator-icon,
.checkin-indicator-card--pend .indicator-value,
.checkin-indicator-card--pend .indicator-label {
  color: #f59e0b;
}

/* Tema: Aprovados (Verde) */
.checkin-indicator-card--aprov {
  border-color: rgba(16, 185, 129, 0.3);
}
.checkin-indicator-card--aprov::before {
  background-color: var(--color-emerald);
}
.checkin-indicator-card--aprov .indicator-icon,
.checkin-indicator-card--aprov .indicator-value,
.checkin-indicator-card--aprov .indicator-label {
  color: var(--color-emerald);
}

/* Tema: Rejeitados (Vermelho) */
.checkin-indicator-card--rejeit {
  border-color: rgba(239, 68, 68, 0.3);
}
.checkin-indicator-card--rejeit::before {
  background-color: var(--color-danger);
}
.checkin-indicator-card--rejeit .indicator-icon,
.checkin-indicator-card--rejeit .indicator-value,
.checkin-indicator-card--rejeit .indicator-label {
  color: var(--color-danger);
}

/* ============================================
   SPRINT 2 — ANIVERSÁRIO + SIMULADOR + SENHA
   ============================================ */

/* --- Birthday Items --- */
.prof-birthday-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.prof-birthday-item:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

.prof-birthday-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  background-color: var(--bg-primary);
  flex-shrink: 0;
}

.prof-birthday-info {
  flex: 1;
  min-width: 0;
}

.prof-birthday-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prof-birthday-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.prof-birthday-age {
  font-size: 11px;
  color: var(--text-muted);
}

.prof-birthday-faixa {
  display: inline-block;
  width: 28px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Badge de contagem no card do Dashboard */
.prof-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(212, 175, 55, 0.15);
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 6px;
}

.prof-count-badge span {
  font-size: 10px;
  color: var(--color-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Graduation Sub-view Tabs --- */
.prof-grad-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-card);
  background-color: var(--bg-surface);
  overflow-x: auto;
}

.prof-grad-tab {
  flex: 1;
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.prof-grad-tab.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.prof-grad-tab:active {
  transform: scale(0.95);
}

/* --- Simulation Cards --- */
.prof-sim-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prof-sim-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

.prof-sim-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.prof-sim-card-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.prof-sim-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prof-sim-status--planejada {
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--color-gold);
}

.prof-sim-status--confirmada {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
}

.prof-sim-status--cancelada {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
}

.prof-sim-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

/* --- Simulation Result Items --- */
.prof-sim-result {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
}

.prof-sim-result--eligible {
  border-left: 4px solid var(--color-emerald);
}

.prof-sim-result--not-eligible {
  border-left: 4px solid var(--color-danger);
  opacity: 0.7;
}

.prof-sim-result-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.prof-sim-result-detail {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.prof-sim-result-projection {
  font-size: 11px;
  color: var(--color-gold);
  font-weight: 600;
  margin-top: 6px;
}

/* --- Password Field (Graduation) --- */
.prof-password-field {
  width: 100%;
  padding: 14px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: white;
  font-size: 20px;
  text-align: center;
  letter-spacing: 8px;
  outline: none;
  transition: border-color 0.2s ease;
}

.prof-password-field:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 1px var(--color-gold);
}

.prof-password-field::placeholder {
  letter-spacing: 4px;
  font-size: 14px;
  color: var(--text-muted);
}

/* --- Members Selector (Professor & Admin) --- */
.prof-membros-select-wrapper {
  position: relative;
  margin-bottom: 16px;
  width: 100%;
}

.prof-membros-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 40px 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 20px;
  min-height: 44px; /* Touch target adequado para mobile */
}

.prof-membros-select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 1px var(--color-gold);
}

.prof-membros-select:hover {
  background-color: rgba(39, 42, 44, 1);
}

.prof-membros-select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-secondary);
  font-size: 12px;
}

/* --- Responsividade de Abas e Tabelas (Desktop vs Mobile) --- */
.membros-desktop-only {
  display: flex !important;
}

.membros-mobile-only {
  display: none !important;
}

/* --- Abas Mobile (Gestão de Membros) --- */
.membros-tabs-mobile {
  display: flex;
  gap: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}

.membros-tab-mobile {
  flex: 1;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: transparent;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  line-height: 1.3;
}

.membros-tab-mobile.active {
  color: white;
  background-color: rgba(212, 175, 55, 0.25);
  border: 1px solid var(--color-gold);
}

.membros-tab-mobile:active {
  transform: scale(0.96);
}

@media (max-width: 767px) {
  .membros-desktop-only {
    display: none !important;
  }
  .table-responsive {
    display: none !important;
  }
  .membros-mobile-only {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
  }
  .membros-tabs-mobile.membros-mobile-only {
    flex-direction: row;
    gap: 0;
    margin-top: 0;
  }
  /* Esconde o header duplicado (título + subtítulo) no mobile — já existe no breadcrumb */
  .membros-header-section {
    display: none !important;
  }
  /* Filtro colapsável no mobile */
  .membros-filter-card {
    display: none !important;
  }
  .membros-filter-mobile-wrapper {
    display: block !important;
  }
}

/* Filtro colapsável - estilos base */
.membros-filter-mobile-wrapper {
  display: none;
}

.membros-filter-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.membros-filter-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
  min-height: 40px;
}

.membros-filter-toggle-btn:hover,
.membros-filter-toggle-btn.active {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(212, 175, 55, 0.06);
}

.membros-filter-toggle-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.membros-filter-toggle-btn.active svg {
  transform: rotate(180deg);
}

.membros-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold);
  color: var(--bg-app);
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  line-height: 1;
}

.membros-filter-export-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--color-emerald);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
  gap: 6px;
}

.membros-filter-export-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.membros-filter-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.3s ease;
  opacity: 0;
  margin-bottom: 0;
}

.membros-filter-panel.open {
  max-height: 500px;
  opacity: 1;
  margin-bottom: 12px;
}

.membros-filter-panel-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.membros-filter-panel-inner .form-group {
  margin-bottom: 0;
}

.membros-filter-panel-inner .form-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.membros-filter-panel-inner .form-control {
  font-size: 13px;
  height: 38px;
}

.member-card-mobile {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.member-card-mobile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.member-card-mobile-title-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.member-card-mobile-title-section h4 {
  font-size: 14px;
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
}

.member-card-mobile-belt {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.member-card-mobile-perfil {
  align-self: flex-start;
}

.member-card-mobile-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-card-mobile-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.member-card-mobile-info-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.member-card-mobile-info-grid .info-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.member-card-mobile-info-grid .info-value {
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.member-card-mobile-info-grid .info-value.text-gold {
  color: var(--color-gold);
}

.member-card-mobile-info-grid .info-value.text-blue {
  color: #60a5fa;
}

.member-card-mobile-info-grid .info-subtext {
  font-size: 9px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
}

.member-card-mobile-settings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.member-card-mobile-settings .setting-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-card-mobile-settings .setting-item label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.member-card-mobile-settings .setting-item.flex-row {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  margin-top: 4px;
}

/* ============================================
   DASHBOARD ANALÍTICO (Professor)
   ============================================ */

/* --- KPI Cards (Resumo no topo) --- */
.dash-kpi-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  transition: all 0.2s ease;
}

.dash-kpi-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.dash-kpi-value {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1.1;
}

.dash-kpi-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Painéis de Indicadores --- */
.dash-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 16px;
  transition: border-color 0.2s ease;
}

.dash-panel:hover {
  border-color: rgba(212, 175, 55, 0.2);
}

.dash-panel-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Grid compacto de 3 colunas (Progresso do Aluno) --- */
.progress-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.progress-kpi-grid > .card {
  min-height: 0;
  align-self: stretch;
}

@media (max-width: 359px) {
  .progress-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Animação de entrada para modais --- */
@keyframes scale-up {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ============================================
   GRADUATION CELEBRATION OVERLAY & ANIMATIONS
   ============================================ */
.celebration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 10, 14, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  overflow: hidden;
}

.celebration-card {
  background: radial-gradient(circle at top, #2d2d38 0%, #17171e 100%);
  border: 2px solid var(--color-gold);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
  position: relative;
  z-index: 10001;
  animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.confete {
  animation: falling 4s linear infinite;
}

@keyframes pop-in {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes falling {
  0% { transform: translateY(-50px) rotate(0deg); opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

#link-voltar-dashboard:hover {
  color: var(--color-gold);
}

/* Classes Responsivas de Regras do Administrador */
.admin-regras-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: start;
}

.admin-regras-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.regra-item-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-card);
  border-radius: 6px;
}

@media (max-width: 768px) {
  .admin-regras-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .admin-regras-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  
  .admin-regras-row select {
    width: 100% !important;
  }
  
  .regra-item-cell {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  
  .regra-item-cell > div {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
}
