/* ===== ИСПРАВЛЕНИЯ ДЛЯ ТЕМНОЙ ТЕМЫ ===== */

/* Убираем подсветку всех модальных окон в темной теме */
[data-bs-theme="dark"] .modal-content {
  border: 1px solid #444564 !important;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
  background: #2b2c40 !important;
}

[data-bs-theme="dark"] .modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Убираем подсветку кнопок закрытия в темной теме */
[data-bs-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Убираем подсветку форм в темной теме */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background: #2b2c40 !important;
  border-color: #444564 !important;
  color: #a3a4cc !important;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background: #2b2c40 !important;
  border-color: #696cff !important;
  color: #a3a4cc !important;
  box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.25) !important;
}

/* Убираем подсветку dropdown в темной теме */
[data-bs-theme="dark"] .dropdown-menu {
  background: #2b2c40 !important;
  border: 1px solid #444564 !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

[data-bs-theme="dark"] .dropdown-item {
  color: #a3a4cc !important;
}

[data-bs-theme="dark"] .dropdown-item:hover {
  background: #444564 !important;
  color: #c7c9ff !important;
}

/* Убираем подсветку tooltip в темной теме */
[data-bs-theme="dark"] .tooltip .tooltip-inner {
  background: #2b2c40 !important;
  color: #a3a4cc !important;
  border: 1px solid #444564 !important;
}

[data-bs-theme="dark"] .tooltip .tooltip-arrow::before {
  border-top-color: #2b2c40 !important;
}

/* Убираем подсветку popover в темной теме */
[data-bs-theme="dark"] .popover {
  background: #2b2c40 !important;
  border: 1px solid #444564 !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

[data-bs-theme="dark"] .popover-header {
  background: #444564 !important;
  border-bottom: 1px solid #444564 !important;
  color: #a3a4cc !important;
}

[data-bs-theme="dark"] .popover-body {
  color: #a3a4cc !important;
}

/* Убираем подсветку alert в темной теме */
[data-bs-theme="dark"] .alert {
  background: #2b2c40 !important;
  border: 1px solid #444564 !important;
  color: #a3a4cc !important;
}

/* Убираем подсветку badge в темной теме */
[data-bs-theme="dark"] .badge {
  border: 1px solid transparent !important;
}

/* Убираем подсветку table в темной теме */
[data-bs-theme="dark"] .table {
  color: #a3a4cc !important;
}

[data-bs-theme="dark"] .table th {
  background: #444564 !important;
  border-color: #444564 !important;
  color: #a3a4cc !important;
}

[data-bs-theme="dark"] .table td {
  border-color: #444564 !important;
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > td {
  background: rgba(68, 69, 100, 0.3) !important;
}

/* Убираем подсветку card в темной теме */
[data-bs-theme="dark"] .card {
  background: #2b2c40 !important;
  border: 1px solid #444564 !important;
}

[data-bs-theme="dark"] .card-header {
  background: #444564 !important;
  border-bottom: 1px solid #444564 !important;
  color: #a3a4cc !important;
}

[data-bs-theme="dark"] .card-footer {
  background: #444564 !important;
  border-top: 1px solid #444564 !important;
  color: #a3a4cc !important;
}

/* Убираем подсветку list-group в темной теме */
[data-bs-theme="dark"] .list-group-item {
  background: #2b2c40 !important;
  border: 1px solid #444564 !important;
  color: #a3a4cc !important;
}

[data-bs-theme="dark"] .list-group-item:hover {
  background: #444564 !important;
}

/* Убираем подсветку nav в темной теме */
[data-bs-theme="dark"] .nav-tabs .nav-link {
  color: #a3a4cc !important;
  border: 1px solid #444564 !important;
  background: #2b2c40 !important;
}

[data-bs-theme="dark"] .nav-tabs .nav-link:hover {
  background: #444564 !important;
  border-color: #444564 !important;
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
  background: #444564 !important;
  border-color: #444564 !important;
  color: #c7c9ff !important;
}

/* Убираем подсветку pagination в темной теме */
[data-bs-theme="dark"] .page-link {
  background: #2b2c40 !important;
  border: 1px solid #444564 !important;
  color: #a3a4cc !important;
}

[data-bs-theme="dark"] .page-link:hover {
  background: #444564 !important;
  border-color: #444564 !important;
  color: #c7c9ff !important;
}

[data-bs-theme="dark"] .page-item.active .page-link {
  background: #696cff !important;
  border-color: #696cff !important;
  color: #fff !important;
}

/* Убираем подсветку progress в темной теме */
[data-bs-theme="dark"] .progress {
  background: #444564 !important;
}

/* Убираем подсветку breadcrumb в темной теме */
[data-bs-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
  color: #a3a4cc !important;
}

[data-bs-theme="dark"] .breadcrumb-item.active {
  color: #a3a4cc !important;
}

/* Убираем подсветку spinner в темной теме */
[data-bs-theme="dark"] .spinner-border {
  border-color: #444564 !important;
  border-right-color: #696cff !important;
}

[data-bs-theme="dark"] .spinner-grow {
  background: #696cff !important;
}
