/* ============================================ */
/* 🌙 DARK MODE - Complete Theme               */
/* ============================================ */

body.dark-theme {
  background: #0F172A;
  color: #F1F5F9;
}

/* Header unificado - mesmas cores em ambos os modos */
header {
  background: #1E293B !important;
  color: #F1F5F9 !important;
  border-bottom-color: #334155 !important;
}

body.dark-theme header {
  background: #1E293B !important;
  color: #F1F5F9 !important;
  border-bottom-color: #334155 !important;
}

/* Navegação */
body.dark-theme nav {
  background: #1E293B;
}

body.dark-theme nav button {
  background: #334155;
  color: #CBD5E1;
}

body.dark-theme nav button:hover {
  background: #475569;
}

body.dark-theme nav button.active {
  background: var(--primary-600);
  color: white;
}

/* Screens */
body.dark-theme .screen {
  background: #1E293B;
  color: #F1F5F9;

}

/* Cards */
body.dark-theme .card,

body.dark-theme .stat-card,
body.dark-theme .event-config-card,
body.dark-theme .group-selector {
  background: #1E293B;
  color: #F1F5F9;
  border-color: #334155;

}

/* Formulários */
body.dark-theme form,
body.dark-theme .form-section {
  background: #1E293B;
}

body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
  background: #0F172A;
  color: #F1F5F9;
  border-color: #334155;
}

body.dark-theme input:focus,
body.dark-theme select:focus,
body.dark-theme textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

body.dark-theme input::placeholder {
  color: #64748B;
}

body.dark-theme label {
  color: #CBD5E1;
}

/* Tabelas */
body.dark-theme table {
 background: #1E293B;
}

body.dark-theme th {
  background: #0F172A;
  color: #E2E8F0;
  border-bottom-color: #334155;
}

body.dark-theme td {
  color: #E2E8F0;
  border-bottom-color: #334155;
}

body.dark-theme tr:nth-child(even) {
  background: #283548;
}

body.dark-theme tr:nth-child(odd) {
  background: #1E293B;
}

body.dark-theme tr:hover {
  background: #374151 !important;
}

body.dark-theme tr:hover td {
  color: white !important;
}

/* Botões mantém suas cores padrão em dark mode */


/* Summary cards */
body.dark-theme .summary-info,
body.dark-theme .summary-item,
body.dark-theme .summary-total {
  background: #1E293B;
  border-color: #334155;
  color: #F1F5F9;
}

/* Badges e tags */
body.dark-theme .badge-neutral,
body.dark-theme .event-tag {
  background: #334155;
  color: #CBD5E1;
}

/* Títulos */
body.dark-theme .screen-title,
body.dark-theme .card-title,
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4 {
  color: #F1F5F9;
}

/* Textos secundários */
body.dark-theme .stat-label,
body.dark-theme small {
  color: #94A3B8;
}

/* Borders em dark mode */
body.dark-theme .screen-header {
  border-bottom-color: #334155;
}

/* User badge */
body.dark-theme .user-badge {
  background: rgba(255, 255, 255, 0.05);
}

/* Login container */
body.dark-theme .login-container {
  background: #1E293B;
  color: #F1F5F9;
}

body.dark-theme .login-title {
  color: #F1F5F9;
}

body.dark-theme .login-input {
  background: #0F172A;
  color: #F1F5F9;
  border-color: #334155;
}

body.dark-theme .login-input::placeholder {
  color: #64748B;
}

/* Modals - Design Moderno e Harmonioso */
body.dark-theme .custom-modal-content,
body.dark-theme .modal-content {
  background: linear-gradient(145deg, #1a2332 0%, #1E293B 100%) !important;
  color: #F1F5F9 !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
  opacity: 1 !important;
}

body.dark-theme .custom-modal-header,
body.dark-theme .modal-header {
  background: transparent !important;
  border-bottom: 1px solid #334155 !important;
  color: #F1F5F9 !important;
  padding: 20px 24px !important;
  border-radius: 0 !important;
}

body.dark-theme .custom-modal-header h3,
body.dark-theme .modal-header h3,
body.dark-theme .modal-title {
  color: #F1F5F9 !important;
  font-weight: 600 !important;
  font-size: 1.25rem !important;
  margin: 0 !important;
}

body.dark-theme .custom-modal-header button,
body.dark-theme .modal-header button,
body.dark-theme .modal-header .close {
  color: #94A3B8 !important;
  opacity: 0.9 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  transition: all 0.2s !important;
}

body.dark-theme .custom-modal-header button:hover,
body.dark-theme .modal-header button:hover {
  opacity: 1 !important;
  background: #334155 !important;
  color: #F1F5F9 !important;
}

body.dark-theme .custom-modal-body,
body.dark-theme .modal-body {
  color: #E2E8F0 !important;
  background: transparent !important;
  padding: 24px !important;
}

body.dark-theme .modal {
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(8px) !important;
}

body.dark-theme .modal-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.1) !important;
  background: transparent !important;
  padding: 20px 24px !important;
  border-radius: 0 0 16px 16px !important;
}

/* ============================================ */
/* PADRÃO UNIVERSAL PARA DARK MODE             */
/* Garante que TUDO seja legível               */
/* ============================================ */

/* Força backgrounds escuros em qualquer div, section, article */
body.dark-theme div:not([class*="btn"]):not([class*="badge"]):not([class*="tag"]),
body.dark-theme section,
body.dark-theme article {
background-color: transparent;
}

/* Cards e containers sempre escuros */
body.dark-theme [class*="card"],
body.dark-theme [class*="container"]:not(.container):not(.screen-title-container),
body.dark-theme [class*="box"],
body.dark-theme [class*="panel"],
body.dark-theme [class*="list"] {
  background: #1E293B !important; 
  color: #E2E8F0 !important;
  border-radius: var(--radius-lg);
}

/* TODAS as tabelas seguem o mesmo padrão */
body.dark-theme table,
body.dark-theme .data-table,
body.dark-theme [class*="table"] {
  background: #1E293B !important;
}

body.dark-theme table tbody,
body.dark-theme .data-table tbody {
  background: #1E293B !important;
}

/* Headers de tabela sempre consistentes */
body.dark-theme table th,
body.dark-theme .data-table th,
body.dark-theme thead th {
  background: #0F172A !important;
  color: #E2E8F0 !important;
  border-bottom-color: #334155 !important;
}

/* Células de tabela sempre legíveis */
body.dark-theme table td,
body.dark-theme .data-table td,
body.dark-theme tbody td {
  color: #E2E8F0 !important;
  background: transparent !important;
  border-bottom-color: #334155 !important;
}

/* Zebra stripes UNIVERSAIS */
body.dark-theme table tbody tr:nth-child(even),
body.dark-theme .data-table tbody tr:nth-child(even) {
  background: #283548 !important;
}

body.dark-theme table tbody tr:nth-child(odd),
body.dark-theme .data-table tbody tr:nth-child(odd) {
  background: #1E293B !important;
}

/* Hover UNIVERSAL */
body.dark-theme table tbody tr:hover,
body.dark-theme .data-table tbody tr:hover,
body.dark-theme tbody tr:hover {
  background: #374151 !important;
}

body.dark-theme table tbody tr:hover td,
body.dark-theme .data-table tbody tr:hover td,
body.dark-theme tbody tr:hover td {
  color: white !important;
}

/* Calendário específico */
body.dark-theme .calendar,
body.dark-theme [class*="calendar"] {
  background: #1E293B !important;
  color: #E2E8F0 !important;
}

body.dark-theme .calendar-day,
body.dark-theme [class*="day"] {
  background: #283548 !important;
  color: #E2E8F0 !important;
}

/* Cards de gráficos/estatísticas */
body.dark-theme [class*="chart"],
body.dark-theme [class*="graph"],
body.dark-theme canvas {
  background: #1E293B !important;
}

/* Remover fundo branco de canvas */
body.dark-theme canvas {
  filter: invert(0) !important;
}

/* Listas ul/ol */
body.dark-theme ul,
body.dark-theme ol {
  color: #E2E8F0 !important;
}

body.dark-theme li {
  color: #E2E8F0 !important;
}

/* Parágrafos e spans */
body.dark-theme p,
body.dark-theme span:not([class*="badge"]):not([class*="tag"]) {
/*  color: #E2E8F0 !important; */
}

/* Títulos h1-h6 */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
  color: #F1F5F9 !important;
}

/* Links */
body.dark-theme a {
  color: #93C5FD !important;
}

body.dark-theme a:hover {
  color: #BFDBFE !important;
}

/* Strong e bold */
body.dark-theme strong,
body.dark-theme b {
  color: #F1F5F9 !important;
}

/* Code blocks */
body.dark-theme code,
body.dark-theme pre {
  background: #0F172A !important;
  color: #E2E8F0 !important;
}

/* Divisores */
body.dark-theme hr {
  border-color: #334155 !important;
}

/* Alerts */
body.dark-theme .alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-left-color: var(--success-600);
  color: #6EE7B7;
}

body.dark-theme .alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: var(--warning-500);
  color: #FCD34D;
}

body.dark-theme .alert-danger {
  background: rgba(239,68, 68, 0.1);
  border-left-color: var(--danger-500);
  color: #FCA5A5;
}

body.dark-theme .alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: var(--info-500);
  color: #93C5FD;
}

/* Error messages */
body.dark-theme .error-message {
  background: rgba(239, 68, 68, 0.1);
  color: #FCA5A5;
  border-left-color: var(--danger-500);
}

/* Conflict warning */
body.dark-theme .conflict-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #FCD34D;
  border-left-color: var(--warning-500);
}

/* Barcode input */
body.dark-theme .barcode-input {
  background: #1E293B;
  border-color: var(--success-600);
}

body.dark-theme #barcode-input {
  background: #0F172A;
  color: #F1F5F9;
}

/* Status colors mantém o contraste */
body.dark-theme .not-paid {
  color: #FCA5A5;
}

body.dark-theme .paid {
  color: #6EE7B7;
}

body.dark-theme .partial-paid {
  color: #FCD34D;
}

/* Logo text */
body.dark-theme .logo h1 {
  color: #F1F5F9;
}

/* Stat values */
body.dark-theme .stat-value {
  color: #F1F5F9;
}

/* Highlight */
body.dark-theme .highlight {
  color: var(--primary-400);
}

/* Scrollbars em dark mode */
body.dark-theme ::-webkit-scrollbar {
  width: 12px;
}

body.dark-theme ::-webkit-scrollbar-track {
  background: #0F172A;
}

body.dark-theme ::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 6px;
}

body.dark-theme ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* ============================================ */
/* CORREÇÕES ESPECÍFICAS                       */
/* ============================================ */

/* WhatsApp Status - Background escuro */
body.dark-theme .wa-status,
body.dark-theme [class*="wa-status"],
body.dark-theme [class*="whatsapp-status"] {
  background: #1E293B !important;
  color: #E2E8F0 !important;
  padding: 12px;
  border-radius: 8px;
}

/* WhatsApp Connection Box - Status de Conexão Mini */
body.dark-theme #mass-messages-tab div[style*="padding:10px"][style*="border-radius:6px"][style*="background:#f5f6f7"] {
  background: #101824 !important;
  color: #e5d2d2 !important;
}

body.dark-theme #mass-messages-tab div[style*="padding:10px"][style*="border-radius:6px"][style*="background:#f5f6f7"] *:not(#wa-status-mini):not(#wa-status-mini *) {
  color: #e5d2d2 !important;
}

/* Exceção: wa-status-mini terá cor definida pelas classes .connected e .disconnected */
body.dark-theme .wa-phone-mini,
body.dark-theme #wa-status-phone-mini {
  color: #e5d2d2 !important;
}


/* Modais com warning/alert backgrounds */
body.dark-theme .modal-warning,
body.dark-theme .warning-box,
body.dark-theme [class*="warning"] {
/*  background: #854D0E !important;
  color: #FEF3C7 !important;
  border: 1px solid #F59E0B !important; */
}

/* Alerts com backgrounds OPACOS visíveis */
body.dark-theme .alert,
body.dark-theme [class*="alert-"] {
  background: #1E3A8A !important;
  color: #DBEAFE !important;
  border-left: 4px solid var(--info-500) !important;
}

body.dark-theme .alert-warning {
  background: #854D0E !important;
  color: #FEF3C7 !important;
  border-left-color: var(--warning-500) !important;
}

body.dark-theme .alert-success {
  background: #065F46 !important;
  border-left-color: var(--success-600) !important;
  color: #D1FAE5 !important;
}

body.dark-theme .alert-danger {
  background: #7F1D1D !important;
  border-left-color: var(--danger-500) !important;
  color: #FEE2E2 !important;
}

body.dark-theme .alert-info {
  background: #1E3A8A !important;
  border-left-color: var(--info-500) !important;
  color: #DBEAFE !important;
}

/* Quadro Responsável Legal - Dados do Servo */
body.dark-theme #servant-guardian-group,
body.dark-theme [id*="guardian"] {
  background: #1E293B !important;
  border: 1px solid #334155 !important;
  color: #E2E8F0 !important;
  padding: 16px !important;
}

/* Dropdowns de busca - Background sólido sem transparência */
body.dark-theme select,
body.dark-theme #servant-search,
body.dark-theme #person-search,
body.dark-theme [id*="-search"],
body.dark-theme .search-select {
  background: #0F172A !important;
  color: #E2E8F0 !important;
  border: 1px solid #334155 !important;
  opacity: 1 !important;
}

body.dark-theme select option {
  background: #0F172A !important;
  color: #E2E8F0 !important;
}

/* Botões "Dias que pode servir" - Background quando selecionado */
body.dark-theme .available-day-tag {
  background: #334155 !important;
  color: #E2E8F0 !important;
  border: 2px solid #475569 !important;
}

body.dark-theme .available-day-tag:hover {
  background: #475569 !important;
  color: white !important;
}

body.dark-theme .available-day-tag.selected {
  background: var(--primary-600) !important;
  color: white !important;
  border-color: var(--primary-600) !important;
}

body.dark-theme .available-day-tag.selected:hover {
  background: var(--primary-700) !important;
}

/* Garantir opacidade 1 em todos os selects/inputs */
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
  opacity: 1 !important;
  -webkit-opacity: 1 !important;
}

/* ============================================ */
/* CORREÇÕES AGRESSIVAS - FORÇA BRUTA          */
/* ============================================ */

/* TODOS OS TEXTOS EM MODAIS DEVEM SER LEGÍVEIS */
body.dark-theme .modal,
body.dark-theme .modal *:not(button):not(.btn),
body.dark-theme .custom-modal,
body.dark-theme .custom-modal *:not(button):not(.btn) {
  color: #E2E8F0 !important;
}

/* Headers de modais - ALINHAMENTO FORÇADO */
body.dark-theme .modal-header,
body.dark-theme .custom-modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-align: left !important;
  padding: 16px 20px !important;
}

body.dark-theme .modal-header > *:first-child,
body.dark-theme .custom-modal-header > *:first-child {
  flex: 1 !important;
  margin: 0 !important;
  text-align: left !important;
}

/* Status WhatsApp - ESPECÍFICO */
body.dark-theme #wa-status,
body.dark-theme .wa-status,
body.dark-theme [class*="whatsapp"]:not(i) {
  background: #0F172A !important;
  padding: 12px !important;
  border-radius: 8px !important;
}

body.dark-theme #wa-status *,
body.dark-theme .wa-status * {
  color: #E2E8F0 !important;
}

/* Conectado/Desconectado - CORES VIVAS */
body.dark-theme .text-success,
body.dark-theme [class*="success"],
body.dark-theme *[contains="Conectado"],
body.dark-theme *:contains("conectado") {
  color: #22C55E !important;
  font-weight: 700 !important;
}

body.dark-theme .text-danger,
body.dark-theme [class*="danger"],
body.dark-theme *[contains="Desconectado"],
body.dark-theme *:contains("desconectado") {
  color: #EF4444 !important;
  font-weight: 700 !important;
}

/* Passos da inscrição - SEM dark mode, usar cores do modo claro */

/* Legendas Calendário - MANTER CORES ORIGINAIS */
body.dark-theme .calendar-legend {
  background: #1E293B !important;
  padding: 16px !important;
  border-radius: 8px !important;
}

body.dark-theme .legend-item {
  background: transparent !important;
  padding: 6px 10px !important;
  margin: 4px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* NÃO sobrescrever cores dos indicadores de legenda */
body.dark-theme .legend-color,
body.dark-theme [class*="legend"] span:first-child {
  /* Manter cores originais */
  filter: none !important;
}

/* Vendas > Crédito - Tipo e CPF */
body.dark-theme #credit-type,
body.dark-theme #credit-cpf,
body.dark-theme [id*="type"],
body.dark-theme [id*="cpf"] {
  background: #0F172A !important;
  color: #F1F5F9 !important;
  border: 1px solid #475569 !important;
}

body.dark-theme label[for="credit-type"],
body.dark-theme label[for="credit-cpf"] {
  color: #CBD5E1 !important;
  font-weight: 600 !important;
}

/* Vendas > Crédito - Campos de Busca */
body.dark-theme #credits-search-input,
body.dark-theme #credits-person-select {
  background: #1E293B !important;
  color: #F1F5F9 !important;
  border: 1px solid #475569 !important;
}

body.dark-theme #credits-search-input::placeholder {
  color: #94A3B8 !important;
}

/* Vendas > Crédito - Seção de Créditos (corrigir fundo branco) */
body.dark-theme .credits-section {
  background: #1E293B !important;
}



/* Modal Suporte - Texto memorial */
body.dark-theme #supportModal,
body.dark-theme [id*="support"],
body.dark-theme [id*="Support"] {
  color: #E2E8F0 !important;
}

body.dark-theme #supportModal p,
body.dark-theme #supportModal div,
body.dark-theme #supportModal span {
  color: #E2E8F0 !important;
}

body.dark-theme #supportModal strong,
body.dark-theme #supportModal b {
  color: white !important;
  font-weight: 700 !important;
}

/* Ver Detalhe - Submissões */
body.dark-theme #detailModal,
body.dark-theme [id*="detail"] {
  background: #1E293B !important;
}

body.dark-theme #detailModal *,
body.dark-theme [id*="detail"] * {
  color: #E2E8F0 !important;
}

body.dark-theme #detailModal label,
body.dark-theme [id*="detail"] label {
  color: #94A3B8 !important;
  font-size: 0.875rem !important;
}

body.dark-theme #detailModal strong,
body.dark-theme [id*="detail"] strong {
  color: white !important;
}

/* Garantir que TODOS os inputs/selects sejam legíveis */
body.dark-theme input:not([type="checkbox"]):not([type="radio"]),
body.dark-theme select,
body.dark-theme textarea {
  background: #0F172A !important;
  color: #F1F5F9 !important;
  border: 1px solid #475569 !important;
  opacity: 1 !important;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
  color: #64748B !important;
}

/* PASSOS DE INSCRIÇÃO - Harmonizar com modo claro */

/* Campos obrigatórios - Fundo azul ESCURO harmonioso */
body.dark-theme [class*="required-field"],
body.dark-theme [class*="campo-obrigatorio"],
body.dark-theme .field-row {
  background: rgba(30, 58, 138, 0.3) !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
  border-left: 3px solid #3B82F6 !important;
  padding: 12px 16px !important;
  margin-bottom: 8px !important;
  border-radius: 6px !important;
}

/* Texto dos campos obrigatórios */
body.dark-theme [class*="required-field"] *:not(button),
body.dark-theme [class*="campo-obrigatorio"] *:not(button),
body.dark-theme .field-row *:not(button) {
  color: #E2E8F0 !important;
}

/* Labels dentro dos campos */
body.dark-theme .field-row label,
body.dark-theme [class*="required"] label {
  color: #93C5FD !important;
  font-weight: 600 !important;
}

/* Botões de passo - SEM personalização dark mode */


/* Legendas calendário - texto mais escuro */
body.dark-theme .legend-item,
body.dark-theme .legend-item span,
body.dark-theme .calendar-legend span {
  color: #F1F5F9 !important;
  font-weight: 600 !important;
}

/* Modal Suporte - Texto memorial mais ESCURO */
body.dark-theme #supportModal em,
body.dark-theme #supportModal i,
body.dark-theme [id*="support"] em {
  color: #CBD5E1 !important;
  font-weight: 600 !important;
  font-style: italic !important;
}

/* Ver Detalhe - FORÇAR backgrounds */
body.dark-theme #detailModal .modal-body,
body.dark-theme [id*="detail"] .modal-body {
  background: #1E293B !important;
}

body.dark-theme #detailModal dd,
body.dark-theme #detailModal dt {
  color: #F1F5F9 !important;
}

/* ============================================ */
/* MODO CLARO - Ícones e botão tema           */
/* ============================================ */

/* Ícones de notificação no modo claro */
body:not(.dark-theme) .user-badge i,
body:not(.dark-theme) #theme-toggle-btn i,
body:not(.dark-theme) .notification-icon {
  color: #1F2937 !important;
}

/* Botão de tema - MODO CLARO */
body:not(.dark-theme) #theme-toggle-btn {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #1F2937 !important;
  border-radius: 100px !important;
  padding: 8px 12px !important;
}

body:not(.dark-theme) #theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.1) !important;
}

/* Botão de tema - DARK MODE */
body.dark-theme #theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border-radius: 100px !important;
  padding: 8px 12px !important;
}

body.dark-theme #theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme #theme-toggle-btn i {
  color: white !important;
}

/* Header agora tem cores unificadas - ícones e textos mantém cores claras em ambos os modos */
/* Ajustar apenas o botão de tema para ter contraste adequado */
body:not(.dark-theme) #theme-toggle-btn i {
  color: #F1F5F9 !important;
}

/* ============================================ */
/* SOBRESCREVER ESTILOS INLINE DO HTML         */
/* ============================================ */

/* Modal Suporte - Sobrescrever style inline */
body.dark-theme [style*="color"][style*="rgb"],
body.dark-theme [style*="color"][style*="#"] {
/*  color: #8d8d8d !important; */
}

/* Específico para memorial */
body.dark-theme em[style],
body.dark-theme i[style] {
  color: #F1F5F9 !important;
  font-weight: 600 !important;
}

/* Status WhatsApp - Sobrescrever qualquer estilo inline */
body.dark-theme #wa-status[style],
body.dark-theme .wa-status[style],
body.dark-theme #wa-status *[style],
body.dark-theme .wa-status *[style] {
  background: #0F172A !important;
  color: #E2E8F0 !important;
}

/* Modal Detalhes - Sobrescrever style inline */
body.dark-theme .modal[style],
body.dark-theme .modal *[style]:not(button) {
  color: #E2E8F0 !important;
}

body.dark-theme .modal-body[style],
body.dark-theme .modal-content[style] {
  background: #1E293B !important;
  color: #E2E8F0 !important;
}

/* ============================================ */
/* MODO CLARO - Correções de contraste        */
/* ============================================ */

/* Footer - Fonte QUASE PRETA no modo claro */
body:not(.dark-theme) footer,
body:not(.dark-theme) footer *:not(a),
body:not(.dark-theme) .footer {
  color: #111827 !important;
  font-weight: 700 !important;
}

/* Links do footer - AZUL em ambos os modos */
footer a,
.footer a {
  color: #3B82F6 !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
}

footer a:hover,
.footer a:hover {
  color: #2563EB !important;
}

/* Aba Vendas - Zoom 90% */
#sales-screen,
.sales-screen,
[id*="sales"],
[id*="vendas"] {
  zoom: 0.95 !important;
  transform-origin: top left !important;
}

body.dark-theme .checkin-toggle label {
  color: #000000 !important;
}

/* Notificações - Cores específicas no dark mode */
body.dark-theme .auto-closing-notification.success {
  background-color: #22c55e !important; /* Verde vibrante */
  color: #ffffff !important;
}

body.dark-theme .auto-closing-notification.error,
body.dark-theme .auto-closing-notification.danger {
  background-color: #ef4444 !important; /* Vermelho vibrante */
  color: #ffffff !important;
}

body.dark-theme .auto-closing-notification.warning {
  background-color: #f59e0b !important; /* Laranja/amarelo vibrante */
  color: #ffffff !important;
}

body.dark-theme .auto-closing-notification.info {
  background-color: #3b82f6 !important; /* Azul vibrante */
 color: #ffffff !important;
}

/* Campos de Responsável Legal - Apelo visual quando ativados (menor de 18 anos) */
#servant-guardian-name:not([disabled]),
#servant-guardian-phone:not([disabled]) {
  border: 2px solid #ef4444 !important;
  border-left: 4px solid #ef4444 !important;
  background: linear-gradient(to right, rgba(239, 68, 68, 0.05), transparent) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
  animation: pulse-border 2s ease-in-out infinite;
}

body.dark-theme #servant-guardian-name:not([disabled]),
body.dark-theme #servant-guardian-phone:not([disabled]) {
  border: 2px solid #f87171 !important;
  border-left: 4px solid #f87171 !important;
  background: linear-gradient(to right, rgba(248, 113, 113, 0.1), transparent) !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15) !important;
}

@keyframes pulse-border {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.2);
  }
}




/* ============================================ */
/* Modal de Detalhes da Inscrição              */
/* ============================================ */

/* Light Mode (padrão) */
.submission-details-content {
  background: white !important;
}

.payment-proof-box {
  background: #f8f9fa !important;
}

/* Dark Mode */
body.dark-theme .submission-details-content {
  background: #262626 !important;
  border: 3px solid #52525b !important; /* Borda mais grossa e visível */
}

body.dark-theme .payment-proof-box {
  background: #1e293b !important;
  border-color: #3f3f46 !important;
}

body.dark-theme .payment-proof-box h4 {
  color: #cbd5e1 !important;
}

body.dark-theme .payment-proof-box p {
  color: #94a3b8 !important;
}

body.dark-theme #submission-details-modal h2 {
  color: #F1F5F9 !important;
  border-bottom-color: #3b82f6 !important;
}

body.dark-theme #submission-details-modal h4 {
  color: #CBD5E1 !important;
}

body.dark-theme #submission-details-modal td {
  color: #E2E8F0 !important;
}

body.dark-theme #submission-details-modal td[style*="font-weight"] {
  color: #CBD5E1 !important;
}

body.dark-theme #submission-details-modal table {
  border-color: #3f3f46 !important;
}

body.dark-theme #submission-details-modal [style*="background: #f8f9fa"] {
  background: #1e293b !important;
  color: #cbd5e1 !important;
}

body.dark-theme #submission-details-modal [style*="background: #fff3cd"] {
  background: #854d0e !important;
  border-left-color: #fbbf24 !important;
}

body.dark-theme #submission-details-modal [style*="color: #856404"] {
  color: #fde047 !important;
}


/* Comunicação > Mensagens - Texto preto em dark mode */
body.dark-theme .dark-text,
body.dark-theme #chat-contact-phone,
body.dark-theme .message-bubble {
  color: #000000 !important;
}

/* Comunicação > Mensagens - Textos da conversa em preto no dark mode */
body.dark-theme .chat-dark-text {
  color: #000000 !important;
}

/* Ícone WhatsApp - manter cor verde em dark mode */
body.dark-theme #conversations-panel .fa-whatsapp {
  color: #25d366 !important;
}
