* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #ffffff;
  color: #111827;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container de Notificações Toast */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #111827;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  border-left: 4px solid #22c55e;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.info {
  border-left: 4px solid #facc15;
}

/* Modais e Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.login-card {
  background: #fed604;
  border: 1px solid #e5e7eb; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 36px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.brand-logo {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 12px;
  color: #ffffff;
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.4);
  text-shadow: 
    0px 1px 2px rgba(0, 0, 0, 0.5),
    0 0 10px #facc15,
    0 0 20px #facc15,
    0 0 35px #eab308;
}

.login-card h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: #111827;
}

.login-card p {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 24px;
}

.login-hint {
  margin-top: 18px;
  font-size: 0.75rem;
  color: #6b7280;
  background: #f3f4f6;
  padding: 8px;
  border-radius: 6px;
  border: 1px dashed #334155;
}

.login-hint strong {
  color: #111827;
}

.form-group {
  text-align: left;
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  background: #ffffff;
  color: #111827;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #eab308;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15);
  outline: none;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Botões */
.btn-primary {
  background: #facc15;
  color: #111827; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.btn-primary:hover {
  background: #eab308;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #111827;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #facc15;
  border-color: #facc15;
  color: #111827;
}

/* Layout Principal */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  width: 100%;
}

/* Barra Superior Mobile (Oculta em desktop) */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fed604;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.btn-hamburger {
  background: transparent;
  border: none;
  color: #111827;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.mobile-brand {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  color: #ffffff;
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.4);
  text-shadow: 
    0px 1px 2px rgba(0, 0, 0, 0.5),
    0 0 10px #facc15,
    0 0 20px #facc15,
    0 0 35px #eab308;
}

.mobile-badge {
  padding: 4px 10px;
  font-size: 0.75rem;
}

/* Backdrop da Gaveta Mobile */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 101;
}

.sidebar-backdrop.active {
  display: block;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  z-index: 102;
}

.sidebar-header {
  padding: 24px 20px;
  background: #fed604;
  
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.btn-close-sidebar {
  display: none;
  position: absolute;
  top: 20px;
  right: 16px;
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 1.3rem;
  cursor: pointer;
}

.brand-title {
  font-size: 2.0rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  color: #ffffff;
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.4);
  text-shadow: 
    0px 1px 2px rgba(0, 0, 0, 0.5),
    0 0 10px #facc15,
    0 0 20px #facc15,
    0 0 35px #eab308;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: #000000;
  font-weight: 700;
  text-shadow: none;
  text-transform: uppercase;
  text-align: center;
  display: block;
  margin-top: 4px;
}

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

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: #facc15;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.nav-btn.active {
  background: #facc15;
  color: #111827; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.user-role {
  font-size: 0.75rem;
  color: #6b7280;
}

.btn-logout {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #6b7280;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: #facc15;
  color: #111827;
  border-color: #facc15;
}

/* Conteúdo Principal */
.main-content {
  flex: 1;
  padding: 32px 40px;
  overflow-y: auto;
  max-width: 100%;
}

.top-header {
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}

.top-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.header-desc {
  font-size: 0.9rem;
  color: #6b7280;
}

.quick-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

/* KPIs Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.kpi-card.highlight {
  background: linear-gradient(135deg, #fef08a 0%, #fffbeb 100%);
  border-color: #facc15;
}

.kpi-title {
  font-size: 0.8rem;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.kpi-sub {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Seções e Abas */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

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

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.section-header p {
  font-size: 0.875rem;
  color: #6b7280;
}

.filter-group {
  display: flex;
  gap: 6px;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #6b7280;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.filter-btn:hover {
  background: #facc15;
  border-color: #facc15;
  color: #111827;
}

.filter-btn.active {
  background: #facc15;
  color: #111827; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border-color: #facc15;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 9999px;
  font-weight: 500;
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.calc-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  flex-wrap: wrap;
}

.calc-box label {
  font-size: 0.85rem;
  color: #4b5563;
}

.input-currency {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 0 8px;
}

.input-currency span {
  font-size: 0.8rem;
  color: #6b7280;
  margin-right: 4px;
}

.input-currency input {
  width: 60px;
  padding: 6px 4px;
  border: none;
  background: transparent;
  color: #111827;
  font-size: 0.9rem;
  outline: none;
}

/* Tabelas e Scroll Responsivo */
.table-container {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: #ffffff;
  padding: 14px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.data-table td {
  padding: 14px 18px;
  font-size: 0.875rem;
  border-bottom: 1px solid #e5e7eb;
  color: #1f2937;
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #f9fafb;
}

.loading-td {
  text-align: center;
  color: #6b7280;
  padding: 36px 18px !important;
}

/* Badges de Status */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge.active, .badge.online {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge.paused, .badge.offline {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.action-btn.approve {
  background: #10b981;
  color: #ffffff;
}
.action-btn.approve:hover {
  background: #facc15;
  border-color: #facc15;
  color: #111827;
}

.action-btn.pause {
  background: #ef4444;
  color: #ffffff;
}
.action-btn.pause:hover {
  background: #facc15;
  border-color: #facc15;
  color: #111827;
}

.action-btn.preview {
  background: #ffffff;
  border-color: #d1d5db;
  color: #111827;
  margin-right: 6px;
}
.action-btn.preview:hover {
  background: #facc15;
  border-color: #facc15;
  color: #111827;
}

/* Modal de Vídeo */
.video-modal-card {
  background: #ffffff;
  border: 1px solid #e5e7eb; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 640px;
}

.video-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.video-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.btn-close {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

.btn-close:hover {
  color: #111827;
}

.video-wrapper {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper video {
  width: 100%;
  max-height: 480px;
  outline: none;
}

/* Modal de Extrato */
.extrato-modal-card {
  background: #ffffff;
  border: 1px solid #e5e7eb; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 520px;
}

.extrato-content {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
}

.extrato-field {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.extrato-total {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #4ade80;
}

/* Grid Infra */
.infra-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.infra-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
}

.infra-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #111827;
}

.checklist-guide {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
  color: #4b5563;
}

.checklist-guide code {
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  color: #111827;
}

.code-block {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: #111827;
  line-height: 1.6;
  margin-top: 12px;
  overflow-x: auto;
}

/* ========================================================= */
/* --- REGRAS RESPONSIVAS PARA CELULARES E TABLETS --- */
/* ========================================================= */

@media (max-width: 992px) {
  .mobile-topbar {
    display: flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: 10px 0 25px rgba(0, 0, 0, 0.5);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .btn-close-sidebar {
    display: block;
  }

  .main-content {
    padding: 80px 20px 32px 20px; /* Espaço para a mobile-topbar */
  }

  .top-header {
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
    flex-direction: column;
    align-items: stretch;
  }

  .quick-stats {
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .main-content {
    padding: 76px 12px 24px 12px;
  }

  .top-header h1 {
    font-size: 1.4rem;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .kpi-card {
    padding: 14px;
  }

  .kpi-value {
    font-size: 1.3rem;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .calc-box {
    width: 100%;
    justify-content: space-between;
  }

  .filter-group {
    width: 100%;
  }

  .filter-btn {
    flex: 1;
    text-align: center;
  }

  .infra-cards-grid {
    grid-template-columns: 1fr;
  }

  .toast-container {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .toast {
    width: 100%;
  }
}

/* Melhora de contraste do texto */
body, h1, h2, h3, p, span, td, th {
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.data-table td, .data-table th {
    color: #111827; /* Texto escuro */
}
.btn-primary, .btn-secondary, .filter-btn {
    text-shadow: none;
}
.data-table td {
  white-space: normal;
  word-break: break-word;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}



/* Botão de login customizado */
#btn-login {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #d1d5db;
}
#btn-login:hover {
  background-color: #f3f4f6;
}

/* MODO ESCURO (DARK MODE) - Abordagem Profissional */
html.dark-mode body {
  background-color: #111827;
  color: #f3f4f6;
}

html.dark-mode .sidebar {
  background: #1f2937;
  border-right-color: #374151;
}

html.dark-mode .brand-subtitle {
  color: #000000; /* Mantém preto no fundo amarelo da logo */
}

html.dark-mode .nav-btn {
  color: #d1d5db;
}

html.dark-mode .nav-btn:hover, html.dark-mode .nav-btn.active {
  background: #facc15;
  color: #111827;
}

html.dark-mode .top-header {
  background: #1f2937;
}

html.dark-mode .kpi-card {
  background: #1f2937;
  border-color: #374151;
}

html.dark-mode .kpi-value {
  color: #f9fafb;
}

html.dark-mode .kpi-label, html.dark-mode .header-desc, html.dark-mode .section-header p {
  color: #9ca3af;
}

html.dark-mode .data-table th {
  background: #374151;
  color: #d1d5db;
  border-bottom-color: #4b5563;
}

html.dark-mode .data-table td {
  border-bottom-color: #4b5563;
  color: #e5e7eb;
}

html.dark-mode .data-table tr:hover {
  background: #1f2937;
}

html.dark-mode .modal-content {
  background: #1f2937;
  color: #f3f4f6;
  border-color: #374151;
}

html.dark-mode .modal-header {
  border-bottom-color: #374151;
}

html.dark-mode input, 
html.dark-mode select, 
html.dark-mode textarea {
  background: #374151;
  border-color: #4b5563;
  color: #f9fafb;
}

html.dark-mode .btn-secondary {
  background: #374151;
  border-color: #4b5563;
  color: #f3f4f6;
}

html.dark-mode .btn-secondary:hover {
  background: #4b5563;
}

/* Botão de Login Invertido */
html.dark-mode #btn-login {
  background-color: #1f2937;
  color: #ffffff;
  border-color: #374151;
}

html.dark-mode #btn-login:hover {
  background-color: #374151;
}

/* Estilo do Botão Flutuante de Toggle */
.dark-mode-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #111827;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s ease;
}

.dark-mode-btn:hover {
  transform: scale(1.1);
}

html.dark-mode .dark-mode-btn {
  background: #facc15;
  color: #111827;
}

html.dark-mode .sidebar-footer {
  border-top-color: #374151;
}

html.dark-mode .user-name {
  color: #f9fafb;
}

html.dark-mode .user-role {
  color: #9ca3af;
}

/* Classes Base Removidas de Inlines */
.campanha-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  margin-bottom: 8px;
  border-radius: 6px;
  cursor: pointer;
  color: #374151;
  font-weight: 500;
}

.kpi-card-success {
  border-left: 4px solid #10b981;
}

.kpi-card-alert {
  border-left: 4px solid #ef4444;
  background: #fff5f5;
}
.kpi-card-alert .kpi-title { color: #b91c1c; }
.kpi-card-alert .kpi-value { color: #991b1b; }
.kpi-card-alert .kpi-sub { color: #ef4444; }


/* COMPLEMENTOS DO MODO ESCURO */

/* Botões online do cabeçalho */
html.dark-mode .stat-badge {
  background: #374151;
  color: #f9fafb;
}

/* Container das Tabelas (onde estão os IDs) */
html.dark-mode .table-container {
  background: #1f2937;
  border-color: #374151;
}

/* Checkboxes no controle de tablets */
html.dark-mode .campanha-checkbox-label {
  background: #374151;
  border-color: #4b5563;
  color: #f3f4f6;
}

/* Ajustes nos KPIs removidos dos inlines */
html.dark-mode .kpi-card-alert {
  background: #450a0a;
  border-left-color: #ef4444;
}
html.dark-mode .kpi-card-alert .kpi-title { color: #fca5a5; }
html.dark-mode .kpi-card-alert .kpi-value { color: #f87171; }
html.dark-mode .kpi-card-alert .kpi-sub { color: #fca5a5; }


/* Correções Adicionais Modo Escuro - Motoristas e Infra */
html.dark-mode .calc-box {
  background: #1f2937;
}

html.dark-mode .calc-box label {
  color: #9ca3af;
}

html.dark-mode .input-currency {
  background: #374151;
  border-color: #4b5563;
  color: #f9fafb;
}

html.dark-mode .input-currency input {
  color: #f9fafb;
}

html.dark-mode .infra-card {
  background: #1f2937;
  border-color: #374151;
}

html.dark-mode .infra-card h3 {
  color: #f9fafb;
}

html.dark-mode .infra-card p {
  color: #d1d5db;
}

html.dark-mode .checklist-guide {
  color: #d1d5db;
}

html.dark-mode .checklist-guide code {
  background: #374151;
  color: #f9fafb;
}

html.dark-mode .code-block {
  background: #0f172a;
  border-color: #374151;
  color: #f9fafb;
}
html.dark-mode .input-currency span {
  color: #9ca3af;
}

/* Correções Adicionais Modo Escuro - Elementos Restantes */
html.dark-mode .toast {
  background: #1f2937;
  color: #f9fafb;
  border-color: #374151;
}

html.dark-mode .filter-btn {
  background: #1f2937;
  color: #d1d5db;
  border-color: #374151;
}

html.dark-mode .filter-btn:hover, html.dark-mode .filter-btn.active {
  background: #374151;
  color: #f9fafb;
}

html.dark-mode .action-btn.preview {
  background: #1f2937;
  color: #f9fafb;
  border-color: #374151;
}

html.dark-mode .action-btn.preview:hover {
  background: #374151;
}

html.dark-mode .video-modal-card,
html.dark-mode .extrato-modal-card {
  background: #1f2937;
  color: #f3f4f6;
  border-color: #374151;
}
