﻿/* ==========================================================================
   SITE DARK THEME
   Variables + globales mínimas
   ========================================================================== */

[data-bs-theme="dark"] {
   --azul-primario: #5c8fce;
   --fondo-sello: #2b2b2b;
   --texto-flip: #ffffff;
   --fondo-footer: #1e2125;
   --texto-footer: #ffffff;
   --fondo-recuadro-index: rgba(0, 0, 0, 0.3);
}

   [data-bs-theme="dark"] .grad {
      background: linear-gradient(135deg, #1a2a40 0%, #0f172a 100%);
   }

   [data-bs-theme="dark"] .btn-entrar {
      background-color: var(--azul-primario);
      color: #ffffff;
   }

   [data-bs-theme="dark"] #box-login {
      background-color: #212529;
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.1);
   }

   [data-bs-theme="dark"] .footer-index {
      background-color: #1e2125 !important;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
   }

      [data-bs-theme="dark"] .footer-link-index,
      [data-bs-theme="dark"] .footer-index span,
      [data-bs-theme="dark"] .footer-index p {
         color: #adb5bd !important;
      }

   [data-bs-theme="dark"] img.compass,
   [data-bs-theme="dark"] .compass {
      filter: brightness(0) invert(1);
   }

   /* ==========================================================================
   SWEET ALERT / DATATABLES - DARK MODE
   ========================================================================== */

   [data-bs-theme="dark"] .swal2-popup {
      background: #1f2329 !important;
      color: #e5e7eb !important;
      border-radius: 16px;
   }

   [data-bs-theme="dark"] .swal2-title,
   [data-bs-theme="dark"] .swal-company-title {
      color: #e5e7eb !important;
      font-weight: 700;
   }

   [data-bs-theme="dark"] .swal2-html-container {
      color: #9ca3af !important;
   }

   [data-bs-theme="dark"] .swal2-close {
      color: #9ca3af !important;
   }

      [data-bs-theme="dark"] .swal2-close:hover {
         color: #ffffff !important;
      }

   
   [data-bs-theme="dark"] table.dataTable {
      color: #e5e7eb !important;
   }

      [data-bs-theme="dark"] table.dataTable thead {
         background: #2a2f36 !important;
      }

      [data-bs-theme="dark"] table.dataTable tbody tr {
         background: #1f2329 !important;
      }

         [data-bs-theme="dark"] table.dataTable tbody tr:nth-child(even) {
            background: #252a31 !important;
         }

         [data-bs-theme="dark"] table.dataTable tbody tr:hover {
            background: rgba(50, 92, 147, 0.25) !important;
         }


   [data-bs-theme="dark"] .dt-button {
      background: #2a2f36 !important;
      border: 1px solid rgba(255,255,255,0.08) !important;
      color: #e5e7eb !important;
      border-radius: 8px !important;
      transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
   }

      [data-bs-theme="dark"] .dt-button:hover {
         background: #325C93 !important;
         color: #ffffff !important;
      }

   
   [data-bs-theme="dark"] .dataTables_filter input {
      background: #1f2329 !important;
      border: 1px solid rgba(255,255,255,0.1) !important;
      color: #e5e7eb !important;
      border-radius: 8px;
   }
      [data-bs-theme="dark"] .dataTables_filter input:focus {
         outline: none;
         border-color: #5c8fce !important;
         box-shadow: 0 0 0 3px rgba(92, 143, 206, 0.18);
      }
   [data-bs-theme="dark"] .swal2-container,
   [data-bs-theme="dark"] .swal2-backdrop-show {
      background: rgba(6, 10, 18, 0.72) !important;
   }
   [data-bs-theme="dark"] .app-swal-popup {
      background: #1f2329 !important;
      color: #e5e7eb !important;
   }