﻿/* ==========================================================================
   SITE DARK PLUGINS / OVERRIDES
   DataTables + Bootstrap + modales
   ========================================================================== */

/* Tablas Bootstrap / DataTables */
[data-bs-theme="dark"] .table,
[data-bs-theme="dark"] table.dataTable {
   background-color: #212529 !important;
   color: #f8f9fa !important;
   border-color: #495057 !important;
}

   [data-bs-theme="dark"] .table > thead > tr > th,
   [data-bs-theme="dark"] table.dataTable thead th {
      background-color: #1e3a5f !important;
      color: #ffffff !important;
      border-bottom: 2px solid #325C93 !important;
   }

   [data-bs-theme="dark"] .table > tbody > tr > td {
      background-color: transparent !important;
      color: #dee2e6 !important;
      border-color: rgba(255, 255, 255, 0.05) !important;
   }

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-child(odd) > td {
   background-color: rgba(255, 255, 255, 0.03) !important;
}

/* Modal Bootstrap */
[data-bs-theme="dark"] .modal-content {
   background-color: #1e2125 !important;
   color: #ffffff !important;
   border: 1px solid rgba(255, 255, 255, 0.1) !important;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
   border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .modal-title {
   color: #ffffff !important;
   text-shadow: none !important;
}

[data-bs-theme="dark"] .btn-close {
   filter: invert(1) grayscale(100%) brightness(200%) !important;
}

/* Bootstrap card genérica */
[data-bs-theme="dark"] .card {
   background-color: #1e2125 !important;
   border: 1px solid rgba(255, 255, 255, 0.1) !important;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
   color: #ffffff !important;
}

/* DataTables controls */
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_info,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_length,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_filter,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_paginate {
   color: #adb5bd !important;
}

[data-bs-theme="dark"] .dataTables_filter input {
   background-color: #2b3035 !important;
   border: 1px solid #495057 !important;
   color: #ffffff !important;
   border-radius: 8px;
}

[data-bs-theme="dark"] .dt-buttons .dt-button,
[data-bs-theme="dark"] .dt-buttons button.dt-button,
[data-bs-theme="dark"] .btn-default {
   background: #2b3035 !important;
   color: #ffffff !important;
   border: 1px solid #495057 !important;
}
