/* ============================================================
   FICHA DE TREINAMENTO — Estilos Globais
   ============================================================ */

:root {
  --primary: #1a56db;
  --primary-dark: #1341b0;
  --secondary: #374151;
  --success: #057a55;
  --danger: #c81e1e;
  --bg: #f3f4f6;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --text-muted: #6b7280;
  --navbar-bg: #1a1f2e;
  --section-header: #1a56db;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ============================================================
   NAVBAR — Modelo EduGestão / Norte Tech
   ============================================================ */

/* Variáveis da navbar */
:root {
  --navbar-bg:      #0e1a2b;   /* azul escuro profundo */
  --navbar-accent:  #1a56db;   /* azul de destaque */
  --navbar-border:  #1e3a5f;   /* borda sutil */
  --navbar-text:    #e2e8f0;
  --navbar-sub:     #64748b;
  --navbar-height:  56px;
}

#main-navbar {
  background: var(--navbar-bg);
  border-bottom: 2px solid var(--navbar-accent);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: var(--navbar-height);
  padding: 0 1.5rem;
  gap: 0;
}

/* ---- BRAND (logo + separador + nome) ---- */
.navbar-brand-area {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 6px 0;
}

.navbar-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.navbar-divider {
  width: 1px;
  height: 28px;
  background: var(--navbar-border);
  margin: 0 14px;
  flex-shrink: 0;
}

.navbar-project {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.navbar-project-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.navbar-project-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--navbar-sub);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- LINKS DE NAVEGAÇÃO (centro) ---- */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 2rem;
  height: 100%;
  flex: 1;
}

.navbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 100%;
  color: var(--navbar-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.navbar-link i {
  font-size: 0.95rem;
  opacity: 0.85;
}

.navbar-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.05);
  border-bottom-color: var(--navbar-accent);
}

.navbar-link.active {
  color: #ffffff;
  border-bottom-color: var(--navbar-accent);
  background: rgba(26, 86, 219, 0.12);
}

/* ---- AÇÕES (usuário + sair) ---- */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--navbar-sub);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.navbar-user i {
  font-size: 1rem;
  color: var(--navbar-accent);
}

.navbar-btn-sair {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  background: transparent;
  border: 1px solid var(--navbar-border);
  border-radius: 4px;
  color: var(--navbar-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.navbar-btn-sair:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.navbar-btn-sair i { font-size: 0.9rem; }

/* ---- TOGGLER MOBILE ---- */
.navbar-toggler-btn {
  display: none;
  background: none;
  border: 1px solid var(--navbar-border);
  border-radius: 4px;
  color: var(--navbar-text);
  font-size: 1.3rem;
  padding: 4px 8px;
  cursor: pointer;
  margin-left: auto;
  line-height: 1;
}

/* ---- MENU MOBILE ---- */
.navbar-mobile {
  display: none;
  flex-direction: column;
  background: var(--navbar-bg);
  border-top: 1px solid var(--navbar-border);
  padding: 0.5rem 1rem;
}

.navbar-mobile.open { display: flex; }

.navbar-mobile .navbar-link {
  height: auto;
  padding: 10px 8px;
  border-bottom: none;
  border-radius: 4px;
  font-size: 0.82rem;
}

/* ---- RESPONSIVO ---- */
@media (max-width: 768px) {
  .navbar-links,
  .navbar-actions { display: none; }
  .navbar-toggler-btn { display: block; }
  .navbar-project-name { font-size: 0.78rem; }
}

@media (max-width: 400px) {
  .navbar-project-sub { display: none; }
  .navbar-divider { margin: 0 8px; }
}

/* ---- PRINT ---- */
@media print {
  #main-navbar { display: none !important; }
}


/* ============================================================
   PAGE TITLE
   ============================================================ */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

/* ============================================================
   CARDS DE TREINAMENTO
   ============================================================ */
.treinamento-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.treinamento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.treinamento-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Badges de tipo */
.tipo-badge {
  font-size: 0.75rem;
  padding: 0.3em 0.7em;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tipo-outros      { background: #e0e7ff; color: #3730a3; }
.tipo-palestra    { background: #d1fae5; color: #065f46; }
.tipo-reciclagem  { background: #fef3c7; color: #92400e; }
.tipo-admissional { background: #fee2e2; color: #991b1b; }
/* Novos tipos */
.tipo-integracao  { background: #dbeafe; color: #1e40af; }
.tipo-treinamento { background: #ede9fe; color: #5b21b6; }
.tipo-acao        { background: #fce7f3; color: #9d174d; }
.tipo-evento      { background: #d1fae5; color: #065f46; }
.tipo-reuniao     { background: #e0f2fe; color: #0369a1; }

/* ============================================================
   FORM SECTIONS
   ============================================================ */
.form-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.form-section-header {
  background: var(--section-header);
  color: white;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.form-section-body {
  padding: 1.25rem;
}

.required-label::after {
  content: " *";
  color: var(--danger);
}

/* ============================================================
   TIPO RADIO GROUP (estilo da imagem)
   ============================================================ */
.tipo-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.tipo-radio-item {
  display: flex;
  align-items: center;
}

.tipo-radio-input {
  display: none;
}

.tipo-radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  user-select: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.tipo-radio-label:hover {
  background: #e5e7eb;
}

.tipo-radio-circle {
  width: 18px;
  height: 18px;
  border: 2px solid #9ca3af;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: border-color 0.15s;
  flex-shrink: 0;
}

.tipo-radio-input:checked + .tipo-radio-label .tipo-radio-circle {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px white;
}

.tipo-radio-input:checked + .tipo-radio-label {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================================
   PARTICIPANTES
   ============================================================ */
.colaborador-preview {
  animation: fadeIn 0.2s ease;
}

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

#tabelaParticipantes thead th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   FICHA DE TREINAMENTO (detalhe / impressão)
   ============================================================ */
.ficha-treinamento {
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.ficha-header {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  border-bottom: 2px solid #333;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.logo-box {
  width: 80px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  color: var(--primary);
 
}

.ficha-header h3 {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.ficha-date-area {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.ficha-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.5rem;
}

.ficha-table td {
  border: 1px solid #ccc;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
}

.ficha-label {
  font-weight: 700;
  background: #f9fafb;
  white-space: nowrap;
}

.ficha-value {
  min-width: 150px;
}

.ficha-section {
  border: 1px solid #ccc;
  margin-top: -1px;
}

.ficha-section-title {
  background: #f3f4f6;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #ccc;
}

.ficha-section-content {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  min-height: 40px;
}

.ficha-participantes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.ficha-participantes-table th,
.ficha-participantes-table td {
  border: 1px solid #ccc;
  padding: 0.35rem 0.6rem;
}

.ficha-participantes-table thead th {
  background: #1a1f2e;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

/* Tipo display na ficha */
.tipo-display {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.tipo-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.tipo-circle {
  width: 14px;
  height: 14px;
  border: 2px solid #555;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.tipo-circle.filled {
  background: #333;
  border-color: #333;
  box-shadow: inset 0 0 0 2px white;
}

.tipo-selected {
  font-weight: 700;
}

/* ============================================================
   LOGIN
   ============================================================ */
.login-body {
  background: linear-gradient(135deg, #1a1f2e 0%, #1a56db 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 1rem;
}

.login-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, #1a1f2e, #1a56db);
  color: white;
  text-align: center;
  padding: 2rem 2rem 1.75rem;
}

.login-logo {
  width: 220px;
  height: auto;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 0.75rem;
  border: none;
  padding: 0;
}

.login-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.login-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 1px;
}

.login-subtitle {
  opacity: 0.8;
  font-size: 0.9rem;
  margin: 0.3rem 0 0;
}

.login-body-content {
  padding: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #f9fafb;
  border-top: 1px solid var(--border);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  background: white;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  padding: 3rem;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #main-navbar, .btn, footer, .alert { display: none !important; }
  body { background: white; }
  .ficha-treinamento { box-shadow: none; border: none; padding: 0; }
  main { margin: 0 !important; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 576px) {
  .tipo-radio-group { flex-direction: column; gap: 0.5rem; }
  .ficha-header { grid-template-columns: 1fr; text-align: center; }
}
/* ============================================================
   BOTÕES REFINADOS
   ============================================================ */
.btn-outline-secondary {
  border: 2px solid #cbd5e1;
  color: #64748b;
  font-weight: 600;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.btn-outline-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #475569;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.15);
}

.btn-outline-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  border: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(26, 86, 219, 0.2);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn-primary:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* ============================================================
   MELHORIAS NO FORMULÁRIO DE CADASTRO
   ============================================================ */
.form-section {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: box-shadow 0.25s;
}

.form-section:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.form-section-header {
  background: linear-gradient(135deg, var(--section-header) 0%, #3b82f6 100%);
  color: white;
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  letter-spacing: 0.3px;
}

.form-section-body {
  padding: 1.5rem;
}

.form-control, .form-select {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.required-label {
  position: relative;
}

.required-label::after {
  content: " *";
  color: #ef4444;
  font-weight: 700;
}

/* ============================================================
   PARTICIPANTES - ESTILOS MELHORADOS
   ============================================================ */
.participante-search .input-group {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.participante-search .form-control {
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.participante-search .btn-primary {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.colaborador-preview {
  animation: slideIn 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

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

#tabelaParticipantes {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#tabelaParticipantes thead {
  background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%);
}

#tabelaParticipantes thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border: none;
}

#tabelaParticipantes tbody tr {
  transition: background-color 0.15s;
}

#tabelaParticipantes tbody tr:hover {
  background-color: #f8fafc;
}

#tabelaParticipantes tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-color: #f1f5f9;
}

.btn-remover {
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s;
}

.btn-remover:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: scale(1.1);
}

/* ============================================================
   TÍTULO DA PÁGINA
   ============================================================ */
.page-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a1f2e;
  position: relative;
  padding-bottom: 0.5rem;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 100%);
  border-radius: 2px;
}
/* ============================================================
   CAMPOS DE FORMULÁRIO ESPECÍFICOS
   ============================================================ */
textarea.form-control {
  min-height: 100px;
  resize: none; /* Remove a possibilidade de redimensionar manualmente */
}

textarea.form-control:focus {
  min-height: 120px;
}

/* ============================================================
   ALERTAS E MENSAGENS
   ============================================================ */
.alert {
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.alert-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-left: 4px solid #f59e0b;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-left: 4px solid #10b981;
}

/* ============================================================
   RESPONSIVIDADE MELHORADA
   ============================================================ */
@media (max-width: 768px) {
  .form-section-header {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .form-section-body {
    padding: 1.25rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  #main-navbar {
    padding: 0.6rem 1rem;
  }
  
  .brand-name {
    font-size: 1.1rem;
  }
  
  .form-section {
    border-radius: 10px;
  }
  
  .d-flex.gap-3 {
    flex-direction: column;
    gap: 1rem !important;
  }
  
  .d-flex.gap-3 .btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   ANIMAÇÕES SUAVES
   ============================================================ */
.form-control, .form-select, .btn, .form-section {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   ESTADO DE CARREGAMENTO
   ============================================================ */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* ============================================================
   BOTÕES DE AÇÃO DO FORMULÁRIO - SIMPLES E FUNCIONAIS
   ============================================================ */
.form-actions {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.btn-action {
  padding: 0.5rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  border: 1px solid transparent;
}

/* BOTÃO CANCELAR - VERMELHO */
.btn-cancel {
  background-color: #dc2626;
  color: white;
  border-color: #b91c1c;
}

.btn-cancel:hover {
  background-color: #b91c1c;
  color: white;
  border-color: #991b1b;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.btn-cancel:active {
  transform: translateY(0);
  box-shadow: none;
}

/* BOTÃO SUBMIT - AZUL */
.btn-submit {
  background-color: #3b82f6;
  color: white;
  border-color: #2563eb;
}

.btn-submit:hover {
  background-color: #2563eb;
  color: white;
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-submit:disabled {
  background-color: #94a3b8;
  border-color: #cbd5e1;
  cursor: not-allowed;
}

/* Ícones nos botões */
.btn-action i {
  font-size: 1rem;
  margin-right: 0.5rem;
  transition: transform 0.2s;
}

.btn-cancel:hover i {
  transform: translateX(-2px);
}

.btn-submit:hover i {
  transform: scale(1.1);
}

/* Responsividade para os botões */
@media (max-width: 768px) {
  .form-actions {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .btn-action {
    padding: 0.75rem 1.5rem;
    min-width: 140px;
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .form-actions .d-flex {
    flex-direction: column;
    gap: 1rem !important;
  }
  
  .btn-action {
    width: 100%;
    min-width: auto;
  }
}
/* ============================================================
   BOTÃO DE PERIGO (DANGER) - VERMELHO SIMPLES
   ============================================================ */
.btn-danger {
  background-color: #dc2626;
  color: white;
  border: 1px solid #b91c1c;
  padding: 0.5rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.btn-danger:hover {
  background-color: #b91c1c;
  color: white;
  border-color: #991b1b;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.btn-danger:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-danger i {
  font-size: 1rem;
  margin-right: 0.5rem;
  transition: transform 0.2s;
}

.btn-danger:hover i {
  transform: scale(1.1);
}
/* ============================================================
   AJUSTES DE ESPAÇAMENTO PARA OS BOTÕES
   ============================================================ */
.form-actions .d-flex {
  gap: 1rem;
}

@media (max-width: 576px) {
  .form-actions .d-flex {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .btn-action, .btn-danger {
    width: 100%;
  }
}

/* ============================================================
   NO-PRINT — oculta elementos na impressão/PDF
   ============================================================ */
@media print {
  .no-print { display: none !important; }
  .drag-handle { display: none !important; }
}

/* ============================================================
   DRAG HANDLE — visual na tabela de participantes
   ============================================================ */
.drag-handle {
  cursor: grab;
  color: #cbd5e1;
  user-select: none;
}
.drag-handle:hover { color: #64748b; }
tr.sortable-ghost { opacity: 0.4; background: #e0f2fe !important; }

/* ============================================================
   BOTÕES DA FICHA DE TREINAMENTO
   ============================================================ */
.btn-ficha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 130px;
  height: 36px;
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
}

.btn-ficha i {
  font-size: 0.95rem;
}

.btn-ficha:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-ficha:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Cinza — Editar */
.btn-ficha-secondary {
  background: #64748b;
  color: #fff;
}
.btn-ficha-secondary:hover {
  background: #7f8ea3;
  color: #fff;
}

/* Ciano — Duplicar */
.btn-ficha-info {
  background: #0891b2;
  color: #fff;
}
.btn-ficha-info:hover {
  background: #22b8d8;
  color: #fff;
}

/* Vermelho — Exportar PDF */
.btn-ficha-danger {
  background: #dc2626;
  color: #fff;
}
.btn-ficha-danger:hover {
  background: #ef4444;
  color: #fff;
}

/* Azul — Imprimir */
.btn-ficha-primary {
  background: #1a56db;
  color: #fff;
}
.btn-ficha-primary:hover {
  background: #3b82f6;
  color: #fff;
}

@media print {
  .btn-ficha { display: none !important; }
}

/* ============================================================
   LISTA DE PRESENÇA — confirmação via QR Code
   ============================================================ */
.linha-confirmada td {
  background: #f0fdf4 !important;
}

.linha-confirmada .num-ordem {
  color: #16a34a;
  font-weight: 700;
}

.qrcode-img {
  image-rendering: pixelated;
}

@media print {
  .qrcode-img { display: none !important; }
}

/* ============================================================
   REUNIÕES CONCLUÍDAS — cards horizontais compactos
   ============================================================ */

/* Cards de resumo */
.resumo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.resumo-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.resumo-valor {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.resumo-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Filtros colapsáveis */
.filtro-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary);
  padding: 0.6rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  list-style: none;
  display: flex;
  align-items: center;
  user-select: none;
}

.filtro-summary::-webkit-details-marker { display: none; }
.filtro-summary::after {
  content: '\F282';
  font-family: 'bootstrap-icons';
  margin-left: auto;
  transition: transform 0.2s;
}
details[open] .filtro-summary::after { transform: rotate(180deg); }

.filtro-body {
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 1rem;
}

/* Separador de mês */
.mes-separador {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mes-separador::before,
.mes-separador::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Card de reunião */
.reuniao-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.15s, transform 0.15s;
}

.reuniao-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.reuniao-card-left { flex: 1; min-width: 0; }

.reuniao-tema {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.reuniao-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.reuniao-card-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 80px;
}

.reuniao-participantes { text-align: center; margin-bottom: 4px; }

.reuniao-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.reuniao-num-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Botão extra pequeno */
.btn-xs {
  padding: 2px 7px;
  font-size: 0.78rem;
  border-radius: 5px;
}


/* ============================================================
   PAGINAÇÃO ENUMERADA — reuniões concluídas
   ============================================================ */
.rc-pag-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--border);
  color: var(--text);
  background: white;
  transition: all 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.rc-pag-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(26,86,219,0.25);
}

.rc-pag-btn--active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 3px 8px rgba(26,86,219,0.25);
  cursor: default;
}

.rc-pag-btn--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   ANALYTICS — KPI cards e chart cards
   ============================================================ */

/* KPI card */
.an-kpi {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.an-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.an-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.an-kpi-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.an-kpi-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Chart card */
.an-chart-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.an-chart-header {
  background: linear-gradient(135deg, #0e1a2b, #1a56db);
  color: white;
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.an-chart-body {
  padding: 1.25rem;
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.an-chart-body canvas {
  max-height: 280px;
}
