@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

/* =============================================================
 * DESIGN SYSTEM — TOKENS & VARIÁVEIS (UI/UX PRO MAX)
 * ============================================================= */
:root {
  /* Paleta Principal — Azul Institucional Nobre & Dourado Gastronômico */
  --primary: #003366;
  --primary-dark: #002244;
  --primary-light: #0d4b8f;
  --primary-subtle: #f0f7ff;
  --primary-glow: rgba(0, 51, 102, 0.15);
  
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fef3c7;
  --accent-subtle: #fffbeb;
  --accent-glow: rgba(245, 158, 11, 0.25);
  
  --success: #059669;
  --success-light: #d1fae5;
  --success-subtle: #ecfdf5;
  
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --danger-subtle: #fef2f2;
  
  --warning: #d97706;
  --warning-light: #fef3c7;
  
  --info: #0284c7;
  --info-light: #e0f2fe;
  --info-subtle: #f0f9ff;
  
  /* Cores Neutras & Superfícies */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-muted: #f1f5f9;
  
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  
  /* Geometria & Bordas */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Sombras & Profundidade */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 32px -4px rgba(0, 51, 102, 0.12), 0 6px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 48px -8px rgba(0, 51, 102, 0.18), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
  --shadow-active: 0 0 0 4px var(--primary-glow);
  
  /* Transições e Curvas de Animação */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
 * RESET & TIPOGRAFIA BASE
 * ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
}

/* =============================================================
 * HEADER INSTITUCIONAL MODERNO COM GLASSMORPHISM
 * ============================================================= */
.header-institutional {
  background: linear-gradient(135deg, #001f3f 0%, #003366 50%, #0d4b8f 100%);
  color: #ffffff;
  padding: 1.75rem 0 3.5rem 0;
  border-bottom: 4px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.header-institutional::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.header-institutional::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -50px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(13, 75, 143, 0.3) 0%, rgba(0, 51, 102, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.header-top-bar {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  width: 100%;
}

.header-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.header-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.header-brand-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  max-width: 820px;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo-badge {
  background: rgba(255, 255, 255, 0.98);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.logo-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.logo-badge img {
  max-height: 40px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.logo-badge.logo-badge-project {
  padding: 0.45rem 1.05rem;
  border-color: rgba(245, 158, 11, 0.35);
}

.logo-badge.logo-badge-project img {
  max-height: 42px;
  max-width: 160px;
}

.header-titles {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.header-title {
  color: #ffffff;
  font-size: 2.15rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.header-subtitle {
  color: #cbd5e1;
  font-size: 0.975rem;
  font-weight: 400;
  max-width: 720px;
  line-height: 1.5;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 0.25rem;
}

.header-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.6rem 1.05rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  white-space: nowrap;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

@media (max-width: 900px) {
  .header-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .header-actions {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header-institutional {
    padding: 1.25rem 0 2.5rem 0;
  }
  
  .header-top-bar {
    margin-bottom: 1rem;
  }
  
  .header-title {
    font-size: 1.6rem;
  }
  
  .header-subtitle {
    font-size: 0.875rem;
  }
}

/* =============================================================
 * CARDS DE REGRAS & INFORMAÇÕES CRUCIAIS
 * ============================================================= */
.section-rules {
  margin-top: -2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 992px) {
  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

.rule-card {
  background: var(--bg-surface);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  transition: var(--transition);
}

.rule-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.rule-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.rule-card:hover .rule-icon-wrap {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

.rule-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.rule-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* =============================================================
 * PROGRESS STEPPER (INDICADOR VISUAL DE ETAPAS)
 * ============================================================= */
.stepper-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  background: var(--bg-surface);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  gap: 0.75rem;
  overflow-x: auto;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.step-item.active {
  color: var(--primary);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}

.step-item.active .step-number {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.step-divider {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  min-width: 24px;
}

@media (max-width: 640px) {
  .stepper-nav {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
  }
}

/* =============================================================
 * SEÇÕES DO FORMULÁRIO (CARDS MODERNOS)
 * ============================================================= */
.card-form-section {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin-bottom: 1.75rem;
  transition: var(--transition);
  position: relative;
}

@media (max-width: 640px) {
  .card-form-section {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1.5px solid var(--border-color);
}

.section-badge-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 10px var(--primary-glow);
  flex-shrink: 0;
}

.section-header h3 {
  font-size: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* =============================================================
 * GRID & INPUTS DO FORMULÁRIO
 * ============================================================= */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}

.form-group.col-span-2 {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .form-group.col-span-2 {
    grid-column: span 1;
  }
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-label .helper-badge {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bg-muted);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: var(--transition-fast);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  outline: none;
  box-shadow: var(--shadow-xs);
}

.input-with-icon .form-control {
  padding-left: 2.75rem;
}

.form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3.5px var(--primary-glow);
}

.input-with-icon .form-control:focus + .input-icon,
.input-with-icon .form-control:focus ~ .input-icon {
  color: var(--primary);
}

.form-control::placeholder {
  color: var(--text-light);
}

/* Validação Visual */
.form-control.is-valid {
  border-color: var(--success) !important;
  background-color: var(--success-subtle);
}

.form-control.is-invalid {
  border-color: var(--danger) !important;
  background-color: var(--danger-subtle);
  animation: shake 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.validation-feedback {
  font-size: 0.775rem;
  margin-top: 0.25rem;
  display: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.validation-feedback.error {
  color: var(--danger);
  display: flex;
}

.validation-feedback.success {
  color: var(--success);
  display: flex;
}

/* Card Checkbox Estilizado */
.checkbox-card {
  background: var(--bg-muted);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.checkbox-card:hover {
  background: var(--primary-subtle);
  border-color: #93c5fd;
}

.checkbox-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  margin-top: 2px;
  cursor: pointer;
  border-radius: 4px;
}

.checkbox-card label {
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.45;
  user-select: none;
}

/* =============================================================
 * GRADE DE TURMAS — CARDS DE CURSOS DE ALTO IMPACTO
 * ============================================================= */
.turmas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (max-width: 860px) {
  .turmas-grid {
    grid-template-columns: 1fr;
  }
}

.turma-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.turma-card:hover:not(.disabled) {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.turma-card.selected {
  border-color: var(--primary);
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  box-shadow: 0 0 0 3px var(--primary-glow), var(--shadow-md);
}

.turma-card.selected::before {
  content: '✓ SELECIONADO';
  position: absolute;
  top: 12px;
  right: -32px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 2.25rem;
  transform: rotate(45deg);
  letter-spacing: 0.06em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.turma-card.disabled {
  opacity: 0.65;
  background: var(--bg-muted);
  border-color: var(--border-color);
  cursor: not-allowed;
}

.turma-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.turma-badge-periodo {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.04em;
}

.periodo-manha {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.periodo-tarde {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.turma-data {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.turma-nome {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

/* Barra de Ocupação em Tempo Real */
.occupancy-wrapper {
  margin-bottom: 0.875rem;
}

.occupancy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.occupancy-bar-bg {
  width: 100%;
  height: 7px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.occupancy-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--success);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.occupancy-bar-fill.warning {
  background: var(--warning);
}

.occupancy-bar-fill.danger {
  background: var(--danger);
}

.turma-vagas-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  background: var(--success-subtle);
  color: var(--success);
  border: 1px solid #a7f3d0;
}

.turma-vagas-badge.esgotado {
  background: var(--danger-subtle);
  color: var(--danger);
  border-color: #fecaca;
}

.turma-vagas-badge.poucas {
  background: var(--warning-subtle);
  color: var(--warning);
  border-color: #fde68a;
}

/* Acordeão de Cardápio / Receitas com Chips */
.btn-cardapio {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  margin-top: 0.5rem;
  transition: var(--transition-fast);
}

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

.cardapio-conteudo {
  display: none;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: 0.875rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
}

.cardapio-conteudo.open {
  display: block;
  animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.recipe-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.recipe-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-main);
}

.alerta-bloqueio {
  font-size: 0.775rem;
  color: #92400e;
  background: #fffbeb;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-xs);
  border: 1px solid #fde68a;
  margin-top: 0.6rem;
  display: none;
  line-height: 1.4;
}

.turma-card.bloqueado-duplicidade .alerta-bloqueio {
  display: block;
}

/* Card Footer / Seleção */
.turma-card-footer {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 0.875rem;
}

.turma-select-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  user-select: none;
}

.turma-card.selected .turma-select-label span {
  color: var(--primary);
}

.turma-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Banner de Cruzamento de Turnos */
.aviso-cruzamento-dia {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-left: 5px solid var(--info);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  color: #1e40af;
  font-size: 0.875rem;
  display: none;
  margin-top: 1.25rem;
  line-height: 1.5;
}

/* =============================================================
 * BOTÃO DE SUBMISSÃO & FLOATING MOBILE ACTION BAR
 * ============================================================= */
.btn-submit {
  background: linear-gradient(135deg, #003366 0%, #0d4b8f 100%);
  color: #ffffff;
  border: none;
  padding: 1.15rem 2rem;
  font-size: 1.125rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  border-radius: var(--radius-md);
  cursor: pointer;
  width: 100%;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  letter-spacing: -0.01em;
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #002244 0%, #003366 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  display: none;
}

.btn-submit.loading .spinner {
  display: inline-block;
}

/* Barra Flutuante de Ação Rápida (Mobile) */
.mobile-floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1);
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  animation: slideUp 0.3s ease-out;
}

.mobile-floating-bar.visible {
  display: flex;
}

.mobile-floating-info strong {
  font-size: 0.9rem;
  color: var(--primary);
  display: block;
}

.mobile-floating-info small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mobile-floating-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

@media (min-width: 769px) {
  .mobile-floating-bar {
    display: none !important;
  }
}

/* =============================================================
 * MODAL DE SUCESSO DE ALTO IMPACTO
 * ============================================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 1rem;
}

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

.modal-box {
  background: var(--bg-surface);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: scale(0.94);
  transition: var(--transition);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-header-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  padding: 2rem 1.75rem;
  text-align: center;
  position: relative;
}

.modal-header-aviso {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #ffffff;
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  text-align: center;
  position: relative;
}

.modal-header-erro {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #ffffff;
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  text-align: center;
  position: relative;
}

.modal-header-info {
  background: linear-gradient(135deg, #003366 0%, #0284c7 100%);
  color: #ffffff;
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  text-align: center;
  position: relative;
}

.modal-icon-badge {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  margin: 0 auto 0.875rem auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.modal-header-success h3,
.modal-header-aviso h3,
.modal-header-erro h3,
.modal-header-info h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  font-family: 'Outfit', sans-serif;
}

.modal-header-success p,
.modal-header-aviso p,
.modal-header-erro p,
.modal-header-info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin: 0;
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
}

.protocolo-badge {
  background: var(--bg-muted);
  border: 1.5px dashed var(--border-color);
  padding: 0.875rem;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.protocolo-badge span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.protocolo-badge strong {
  font-size: 1.35rem;
  color: var(--primary);
  font-family: monospace;
  letter-spacing: 0.05em;
}

.matriculas-confirmadas-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.matricula-item-card {
  background: var(--bg-muted);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.875rem 1.1rem;
}

.matricula-item-card.espera {
  border-left-color: var(--warning);
  background: #fffbeb;
}

.matricula-item-card h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.matricula-item-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.orientacoes-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  font-size: 0.85rem;
  color: #92400e;
}

.orientacoes-box h5 {
  color: #92400e;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-footer {
  padding: 1.1rem 1.75rem;
  background: var(--bg-muted);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn-secondary {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: #cbd5e1;
}

.btn-primary {
  background: var(--primary);
  border: 1.5px solid var(--primary);
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

/* =============================================================
 * FOOTER INSTITUCIONAL
 * ============================================================= */
.footer-institutional {
  margin-top: auto;
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 2.25rem 0 1.75rem 0;
  font-size: 0.85rem;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: #cbd5e1;
  font-weight: 500;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* =============================================================
 * KEYFRAMES & MICRO-ANIMAÇÕES
 * ============================================================= */
@keyframes spin {
  to { transform: rotate(360deg); }
}

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

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

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}

/* Acessibilidade — Respeitar preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================================
 * ADMIN DASHBOARD — LAYOUT COM SIDEBAR COLAPSÁVEL, TOPBAR & FOOTER
 * ============================================================= */
.admin-body {
  background: #f8fafc;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  background: #f8fafc;
}

/* =============================================================
 * SIDEBAR LATERAL (EXPANDIDA / COLAPSADA - ACOMPANHA A PÁGINA)
 * ============================================================= */
.admin-sidebar {
  width: 240px;
  background: #001f3f;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 100vh;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.04);
  z-index: 1000;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s ease;
}

.admin-sidebar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* BRAND HEADER NA SIDEBAR (LOGO EM CIMA, TEXTO EMBAIXO) */
.sidebar-brand {
  padding: 1.25rem 0.85rem 1rem 0.85rem;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.sidebar-brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  text-decoration: none;
  width: 100%;
}

.sidebar-brand-logo-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.sidebar-logo {
  height: 38px;
  max-width: 100%;
  width: auto;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: block;
}

.sidebar-brand-text {
  overflow: hidden;
}

.sidebar-brand-text h2 {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.15;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

.sidebar-brand-text span {
  font-size: 0.72rem;
  color: #94a3b8;
  display: block;
  margin-top: 1px;
}

/* NAVEGAÇÃO */
.sidebar-nav {
  padding: 0.75rem 0.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-x: hidden;
}

.nav-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #64748b;
  padding: 0.75rem 0.65rem 0.25rem 0.65rem;
  white-space: nowrap;
}

.nav-link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
  position: relative;
}

.nav-link-item:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  transform: translateX(2px);
}

.nav-link-item.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.4);
  border-left: 3px solid var(--accent);
}

.nav-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  display: inline-block;
}

.nav-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =============================================================
 * ESTADO COLAPSADO (SIDEBAR-MINI NO DESKTOP)
 * ============================================================= */
.admin-layout.sidebar-collapsed .admin-sidebar {
  width: 68px;
}

.admin-layout.sidebar-collapsed .sidebar-brand-text,
.admin-layout.sidebar-collapsed .nav-text,
.admin-layout.sidebar-collapsed .nav-section-title {
  display: none !important;
  opacity: 0;
}

.admin-layout.sidebar-collapsed .sidebar-brand {
  padding: 1rem 0.5rem;
  justify-content: center;
}

.admin-layout.sidebar-collapsed .sidebar-brand-link {
  justify-content: center;
}

.admin-layout.sidebar-collapsed .nav-link-item {
  justify-content: center;
  padding: 0.65rem 0;
  transform: none;
}

/* =============================================================
 * ÁREA PRINCIPAL DO DASHBOARD COM TOPBAR E FOOTER
 * ============================================================= */
.admin-main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #f8fafc;
}

/* TOPBAR / CABEÇALHO SUPERIOR */
.admin-topbar {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-toggle-sidebar {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #334155;
  transition: all 0.2s ease;
}

.btn-toggle-sidebar:hover {
  background: #f1f5f9;
  color: var(--primary);
  border-color: var(--primary);
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.breadcrumb-prefix {
  color: #64748b;
}

.breadcrumb-separator {
  color: #cbd5e1;
}

.breadcrumb-current {
  color: var(--primary);
  font-weight: 700;
}

/* STATUS DE INSCRIÇÕES NO CABEÇALHO */
.topbar-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.25rem;
}

.topbar-status-badge.status-online {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.topbar-status-badge.status-paused {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.topbar-status-badge .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.topbar-status-badge.status-online .status-dot {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.topbar-status-badge.status-paused .status-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* CONTROLE LGPD NO CABEÇALHO */
.topbar-lgpd-box {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.topbar-lgpd-box:hover {
  background: #e2e8f0;
}

.topbar-lgpd-box .lgpd-icon {
  font-size: 1rem;
}

.topbar-lgpd-box .lgpd-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.topbar-lgpd-box .lgpd-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
}

.topbar-lgpd-box .lgpd-status {
  font-size: 0.65rem;
  color: #64748b;
}

.lgpd-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.lgpd-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lgpd-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #94a3b8;
  transition: .3s;
  border-radius: 20px;
}

.lgpd-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.lgpd-switch input:checked + .lgpd-slider {
  background-color: #10b981;
}

.lgpd-switch input:checked + .lgpd-slider:before {
  transform: translateX(16px);
}

.topbar-divider {
  width: 1px;
  height: 26px;
  background: #e2e8f0;
}

/* PERFIL DO USUÁRIO LOGADO */
.topbar-user-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.topbar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #003366;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 51, 102, 0.25);
  flex-shrink: 0;
}

.topbar-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.topbar-user-name {
  font-size: 0.85rem;
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-user-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
}

.topbar-user-badge.badge-admin {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.topbar-user-badge.badge-op {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* BOTÃO DE LOGOUT */
.btn-topbar-logout {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
  margin-left: 0.25rem;
}

.btn-topbar-logout:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

/* =============================================================
 * COMPONENTES GLOBAIS DE DASHBOARD: CARDS KPI & TABELAS
 * ============================================================= */
.admin-main-content {
  flex: 1;
  padding: 1.75rem 2rem 2.5rem 2rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 1.45rem;
  color: var(--primary);
  font-weight: 800;
  margin: 0;
  font-family: 'Outfit', sans-serif;
}

.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

/* GRID DE CARDS KPI */
.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stats-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.stats-kpi-card.highlight { border-top-color: #003366; }
.stats-kpi-card.success   { border-top-color: #10b981; }
.stats-kpi-card.warning   { border-top-color: #f59e0b; }
.stats-kpi-card.danger    { border-top-color: #ef4444; }

.stats-kpi-title {
  font-size: 0.775rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.stats-kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 0.35rem;
}

.stats-kpi-sub {
  font-size: 0.775rem;
  color: #94a3b8;
}

/* TABELA ADMINISTRATIVA */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  margin-bottom: 1.5rem;
}

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

.admin-table th {
  background: #f8fafc;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #f8fafc;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.725rem;
  font-weight: 700;
}

.badge-status.ativo { background: #d1fae5; color: #065f46; }
.badge-status.inativo { background: #fee2e2; color: #991b1b; }
.badge-status.admin { background: #fef3c7; color: #92400e; }
.badge-status.operador { background: #dbeafe; color: #1e40af; }
.badge-status.confirmada { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-status.lista_espera { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-status.cancelada { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.badge-status.teste { background: #f3e8ff; color: #6b21a8; border: 1px solid #d8b4fe; font-weight: 800; }

.table-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.btn-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-action-btn:hover {
  background: #f1f5f9;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-action-btn.danger {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.btn-action-btn.danger:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.btn-action-btn.success {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}

.btn-action-btn.success:hover {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

.btn-action-btn.warning {
  background: #fefce8;
  color: #854d0e;
  border-color: #fde047;
}

.btn-action-btn.warning:hover {
  background: #ca8a04;
  color: #ffffff;
  border-color: #ca8a04;
}

.btn-action-btn.info {
  background: #f0f9ff;
  color: #0284c7;
  border-color: #bae6fd;
}

.btn-action-btn.info:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.btn-action-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-sm:hover { background: #f1f5f9; border-color: var(--primary); }
.btn-action-sm.danger:hover { background: #fee2e2; border-color: #ef4444; color: #b91c1c; }

/* RODAPÉ DO ADMIN */
.admin-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 1.25rem 2rem;
  margin-top: auto;
}

.admin-footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
  color: #64748b;
}

.admin-footer-container .footer-left strong {
  color: #0f172a;
  display: block;
}

.admin-footer-container .footer-right {
  text-align: right;
}

.admin-footer-container .footer-right small {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
}

/* LGPD MASKING STYLES */
.dado-lgpd-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-revelar-lgpd {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  font-size: 0.85rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.btn-revelar-lgpd:hover {
  opacity: 1;
}

/* BACKDROP MOBILE */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  backdrop-filter: blur(2px);
}

/* RESPONSIVIDADE (TABLET E SMARTPHONE) */
@media (max-width: 992px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    width: 250px;
    z-index: 1050;
  }
  .admin-layout.sidebar-mobile-open .admin-sidebar {
    transform: translateX(0);
  }
  .sidebar-backdrop.active {
    display: block;
  }
  .topbar-breadcrumb {
    display: none;
  }
  .logout-text {
    display: none;
  }
  .topbar-user-info {
    display: none;
  }
  .admin-main-content {
    padding: 1.25rem 1rem 2rem 1rem;
  }
  .admin-footer-container {
    flex-direction: column;
    text-align: center;
  }
  .admin-footer-container .footer-right {
    text-align: center;
  }
}
