/* ============================================
   ТЕМНАЯ ТЕМА - ФИКС С !important
   ============================================ */

html[data-theme="dark"] body {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .header {
    background: linear-gradient(135deg, #333333 0%, #555555 100%) !important;
    border-bottom: 2px solid #444 !important;
}

html[data-theme="dark"] .header-content {
    background: transparent !important;
}

html[data-theme="dark"] .header h1,
html[data-theme="dark"] .header p,
html[data-theme="dark"] .header .logo h1,
html[data-theme="dark"] .header .logo p,
html[data-theme="dark"] .header .current-date p,
html[data-theme="dark"] .header .current-date a {
    color: #ffffff !important;
}

html[data-theme="dark"] .admin-header {
    background: linear-gradient(135deg, #333333 0%, #555555 100%) !important;
    border-bottom: 2px solid #444 !important;
}

html[data-theme="dark"] .admin-header h1,
html[data-theme="dark"] .admin-header p {
    color: #ffffff !important;
}

html[data-theme="dark"] .process-container,
html[data-theme="dark"] .form-container {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .form-title,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 {
    color: #f0f0f0 !important;
}

html[data-theme="dark"] .form-group label {
    color: #cccccc !important;
}

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border: 1px solid #555 !important;
}

html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group select:focus,
html[data-theme="dark"] .form-group textarea:focus {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 0.2rem rgba(198, 40, 40, 0.25) !important;
    background-color: #333333 !important;
}

/* Кнопки */
html[data-theme="dark"] .btn {
    background-color: #555 !important;
    color: #fff !important;
    border: 1px solid #666 !important;
}

html[data-theme="dark"] .btn-primary {
    background-color: #c62828 !important;
    color: white !important;
    border: 1px solid #8B0000 !important;
}

html[data-theme="dark"] .btn-primary:hover {
    background-color: #8B0000 !important;
}

html[data-theme="dark"] .btn-secondary {
    background-color: #666 !important;
    color: #fff !important;
    border: 1px solid #777 !important;
}

/* Футер */
html[data-theme="dark"] .footer {
    background-color: #2d2d2d !important;
    color: #aaaaaa !important;
    border-top: 2px solid #444 !important;
}

/* Унифицированный документ */
html[data-theme="dark"] .unified-document-header {
    background: linear-gradient(135deg, #444444 0%, #666666 100%) !important;
}

html[data-theme="dark"] .unified-document-header h2,
html[data-theme="dark"] .unified-document-header p {
    color: #ffffff !important;
}

/* Общие поля */
html[data-theme="dark"] .shared-fields {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%) !important;
}

/* Таблицы */
html[data-theme="dark"] .results-table,
html[data-theme="dark"] .medics-table {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .results-table th,
html[data-theme="dark"] .medics-table th {
    background-color: #333333 !important;
    color: #ffffff !important;
    border-bottom: 2px solid #555555 !important;
}

html[data-theme="dark"] .results-table td,
html[data-theme="dark"] .medics-table td {
    border-bottom: 1px solid #444444 !important;
}

/* Карточки */
html[data-theme="dark"] .card {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border: 1px solid #444444 !important;
}

html[data-theme="dark"] .card-title {
    color: #c62828 !important;
}

/* Шаги процесса */
html[data-theme="dark"] .step {
    background-color: #555555 !important;
    color: #aaaaaa !important;
}

html[data-theme="dark"] .step.active {
    background-color: #c62828 !important;
    color: white !important;
}

html[data-theme="dark"] .step.completed {
    background-color: #4caf50 !important;
    color: white !important;
}

/* Кнопки выхода */
html[data-theme="dark"] .logout-btn {
    background-color: #444444 !important;
    color: #ffffff !important;
    border: 1px solid #555555 !important;
}

/* Селекты */
html[data-theme="dark"] select option {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
}

/* Ссылки */
html[data-theme="dark"] a {
    color: #64b5f6 !important;
}

/* Сообщения */
html[data-theme="dark"] .success-message {
    background-color: #1b5e20 !important;
    color: #c8e6c9 !important;
}

html[data-theme="dark"] .error-message {
    background-color: #b71c1c !important;
    color: #ffcdd2 !important;
}

/* Автозаполненные поля */
html[data-theme="dark"] .auto-filled {
    background-color: #1b5e20 !important;
    border-color: #4caf50 !important;
    color: #c8e6c9 !important;
}
/* ============================================
   ТЕМНАЯ ТЕМА - ФИКС ДЛЯ ADMIN.PHP
   ============================================ */

/* Админ хедер */
html[data-theme="dark"] .admin-header {
    background: linear-gradient(135deg, #333333 0%, #555555 100%) !important;
    border-bottom: 2px solid #444444 !important;
}

html[data-theme="dark"] .admin-header h1,
html[data-theme="dark"] .admin-header p {
    color: #ffffff !important;
}

/* Основной контейнер */
html[data-theme="dark"] .container {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

/* Карточки статистики */
html[data-theme="dark"] .dashboard-cards {
    background-color: transparent !important;
}

html[data-theme="dark"] .dashboard-cards .card {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border: 1px solid #444444 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .card .card-title {
    color: #c62828 !important;
}

html[data-theme="dark"] .card .card-value {
    color: #ffffff !important;
    font-size: 2.5rem !important;
}

/* Формы поиска */
html[data-theme="dark"] .search-section {
    background-color: #2d2d2d !important;
    border: 1px solid #444444 !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .search-form .form-group label {
    color: #cccccc !important;
}

html[data-theme="dark"] .search-form input,
html[data-theme="dark"] .search-form select {
    background-color: #333333 !important;
    color: #e0e0e0 !important;
    border: 1px solid #555555 !important;
}

html[data-theme="dark"] .search-form input:focus,
html[data-theme="dark"] .search-form select:focus {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 0.2rem rgba(198, 40, 40, 0.25) !important;
}

/* Таблицы результатов */
html[data-theme="dark"] .results-section {
    background-color: transparent !important;
}

html[data-theme="dark"] .results-table {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border: 1px solid #444444 !important;
}

html[data-theme="dark"] .results-table th {
    background-color: #333333 !important;
    color: #ffffff !important;
    border-bottom: 2px solid #555555 !important;
}

html[data-theme="dark"] .results-table td {
    border-bottom: 1px solid #444444 !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .results-table tr:hover {
    background-color: #3a3a3a !important;
}

/* Кнопки в таблице */
html[data-theme="dark"] .view-btn {
    background-color: #444444 !important;
    color: #ffffff !important;
    border: 1px solid #555555 !important;
}

html[data-theme="dark"] .view-btn:hover {
    background-color: #555555 !important;
}

/* Секция отчетов */
html[data-theme="dark"] .report-section {
    background-color: #2d2d2d !important;
    border: 1px solid #444444 !important;
    color: #e0e0e0 !important;
}

/* Кнопки фильтров */
html[data-theme="dark"] .report-filters .btn {
    background-color: #444444 !important;
    color: #e0e0e0 !important;
    border: 1px solid #555555 !important;
}

html[data-theme="dark"] .report-filters .btn-primary {
    background-color: #c62828 !important;
    color: #ffffff !important;
    border: 1px solid #8B0000 !important;
}

html[data-theme="dark"] .report-filters .btn-secondary {
    background-color: #555555 !important;
    color: #ffffff !important;
    border: 1px solid #666666 !important;
}

/* Лейблы и мелкий текст */
html[data-theme="dark"] small {
    color: #aaaaaa !important;
}

/* Кнопки выхода */
html[data-theme="dark"] .logout-btn {
    background-color: #444444 !important;
    color: #ffffff !important;
    border: 1px solid #555555 !important;
}

html[data-theme="dark"] .logout-btn:hover {
    background-color: #555555 !important;
}

/* Бейджи */
html[data-theme="dark"] .badge {
    background-color: #444444 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .badge-medical {
    background-color: #c62828 !important;
}

html[data-theme="dark"] .badge-vvk {
    background-color: #2196f3 !important;
}

html[data-theme="dark"] .badge-success {
    background-color: #4caf50 !important;
}

html[data-theme="dark"] .badge-danger {
    background-color: #f44336 !important;
}

/* Ссылки в хедере */
html[data-theme="dark"] .current-date a {
    color: #64b5f6 !important;
}

html[data-theme="dark"] .current-date a:hover {
    color: #90caf9 !important;
}
/* ============================================
   ТЕМНАЯ ТЕМА ДЛЯ SETTINGS.PHP
   ============================================ */

/* Контейнер настроек */
html[data-theme="dark"] .settings-container {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

/* Секции настроек */
html[data-theme="dark"] .settings-section {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    color: #e0e0e0 !important;
}

/* Хедер секции */
html[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #444444 0%, #666666 100%) !important;
    border: 3px solid #555 !important;
}

html[data-theme="dark"] .section-header h2,
html[data-theme="dark"] .section-header p {
    color: #ffffff !important;
}

/* Опции темы */
html[data-theme="dark"] .theme-option {
    background-color: #333 !important;
    border: 2px solid #555 !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .theme-option:hover {
    background-color: #3a3a3a !important;
    border-color: #666 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .theme-option.selected {
    background-color: rgba(198, 40, 40, 0.1) !important;
    border-color: #c62828 !important;
}

/* Иконки тем */
html[data-theme="dark"] .theme-icon.light {
    background: linear-gradient(135deg, #555 0%, #777 100%) !important;
    color: #fff !important;
}

html[data-theme="dark"] .theme-icon.dark {
    background: linear-gradient(135deg, #222 0%, #444 100%) !important;
    color: #fff !important;
}

/* Информация о теме */
html[data-theme="dark"] .theme-info h4 {
    color: #fff !important;
}

html[data-theme="dark"] .theme-info p {
    color: #aaa !important;
}

/* Предпросмотр темы */
html[data-theme="dark"] .theme-preview {
    background-color: #3a3a3a !important;
    border: 1px solid #555 !important;
    color: #ccc !important;
}

html[data-theme="dark"] .theme-preview strong {
    color: #fff !important;
}

/* Превью окно */
html[data-theme="dark"] .preview-window {
    background-color: #333 !important;
    border: 1px solid #555 !important;
}

html[data-theme="dark"] .preview-header {
    background-color: #c62828 !important;
}

html[data-theme="dark"] .preview-line {
    background-color: #555 !important;
}

/* Сетка настроек */
html[data-theme="dark"] .settings-grid {
    background-color: transparent !important;
}

html[data-theme="dark"] .settings-grid .form-group label {
    color: #ccc !important;
}

html[data-theme="dark"] .settings-grid .form-group select {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border: 1px solid #555 !important;
}

/* Информационный блок */
html[data-theme="dark"] .info-box {
    background-color: #2d3a4b !important;
    border-left: 4px solid #2196f3 !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .info-box strong {
    color: #fff !important;
}

/* Кнопки действий */
html[data-theme="dark"] .form-actions {
    border-top: 1px solid #444 !important;
}

html[data-theme="dark"] .form-actions .btn {
    background-color: #444 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
}

html[data-theme="dark"] .form-actions .btn-primary {
    background-color: #c62828 !important;
    border-color: #8B0000 !important;
}

html[data-theme="dark"] .form-actions .btn-secondary {
    background-color: #555 !important;
    border-color: #666 !important;
}

/* Стили для выбора темы в реальном времени */
html[data-theme="dark"] input[name="theme"]:checked + .theme-content .theme-icon {
    box-shadow: 0 0 0 3px #c62828 !important;
}

/* Подсказки */
html[data-theme="dark"] .form-group small {
    color: #888 !important;
}

/* Переключатель темы */
html[data-theme="dark"] .theme-toggle {
    background-color: #444 !important;
    border: 1px solid #555 !important;
    color: #fff !important;
}

/* Активная тема */
html[data-theme="dark"] [data-theme="dark"] {
    border-color: #c62828 !important;
}

/* Ховер эффекты */
html[data-theme="dark"] .theme-option:not(.selected):hover {
    background-color: #3a3a3a !important;
}

/* Фокус состояния */
html[data-theme="dark"] input[name="theme"]:focus-visible + .theme-content {
    outline: 2px solid #c62828 !important;
    outline-offset: 2px !important;
}

/* Сообщения на странице настроек */
html[data-theme="dark"] .settings-container .success-message {
    background-color: #1b5e20 !important;
    color: #c8e6c9 !important;
    border: 1px solid #2e7d32 !important;
}

html[data-theme="dark"] .settings-container .error-message {
    background-color: #b71c1c !important;
    color: #ffcdd2 !important;
    border: 1px solid #c62828 !important;
}

/* Радио кнопки тем */
html[data-theme="dark"] .theme-radio:checked ~ .theme-content .theme-info h4 {
    color: #c62828 !important;
}

/* Адаптивность для настроек */
@media (max-width: 768px) {
    html[data-theme="dark"] .theme-options {
        grid-template-columns: 1fr !important;
    }
    
    html[data-theme="dark"] .settings-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Интерактивные элементы */
html[data-theme="dark"] .theme-option {
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .theme-option.selected {
    transform: translateY(-2px) !important;
}

/* Текст на странице настроек */
html[data-theme="dark"] .settings-section h3 {
    color: #c62828 !important;
    border-bottom: 2px solid #444 !important;
    padding-bottom: 10px !important;
}

html[data-theme="dark"] .settings-section h4 {
    color: #ddd !important;
}

/* Разделители */
html[data-theme="dark"] .settings-section > *:not(:last-child) {
    border-bottom: 1px solid #444 !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
}
/* ============================================
   ТЕМНАЯ ТЕМА - ДОПОЛНЕНИЯ ДЛЯ ADMIN.PHP И REPORTS.PHP
   ============================================ */

/* ========== ADMIN.PHP ========== */

/* Сообщения поиска */
html[data-theme="dark"] .search-message {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-left: 4px solid #c62828 !important;
}

html[data-theme="dark"] .search-message i {
    color: #c62828 !important;
}

/* Кнопки быстрого поиска */
html[data-theme="dark"] button[onclick*="quickSearch"] {
    background-color: #444 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
}

html[data-theme="dark"] button[onclick*="quickSearch"]:hover {
    background-color: #555 !important;
}

/* Фильтры отчетов */
html[data-theme="dark"] .report-filters {
    background-color: transparent !important;
}

/* Иконки в таблицах */
html[data-theme="dark"] .results-table .fa-eye {
    color: #64b5f6 !important;
}

html[data-theme="dark"] .results-table .fa-file-medical {
    color: #c62828 !important;
}

html[data-theme="dark"] .results-table .fa-stethoscope {
    color: #2196f3 !important;
}

html[data-theme="dark"] .results-table .fa-check-circle {
    color: #4caf50 !important;
}

html[data-theme="dark"] .results-table .fa-times-circle {
    color: #f44336 !important;
}

/* Пагинация (если есть) */
html[data-theme="dark"] .pagination {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
}

html[data-theme="dark"] .pagination a {
    background-color: #444 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
}

html[data-theme="dark"] .pagination .active {
    background-color: #c62828 !important;
    color: white !important;
}

/* Мелкий текст */
html[data-theme="dark"] .search-form small {
    color: #888 !important;
}

/* Плейсхолдеры */
html[data-theme="dark"] ::placeholder {
    color: #888 !important;
}

/* Выделение строк в таблице */
html[data-theme="dark"] .results-table tr:nth-child(even) {
    background-color: #2a2a2a !important;
}

html[data-theme="dark"] .results-table tr:nth-child(odd) {
    background-color: #2d2d2d !important;
}

/* Код (DS ID) */
html[data-theme="dark"] code {
    background-color: #333 !important;
    color: #4caf50 !important;
    border: 1px solid #444 !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
}

/* Сообщение "Ничего не найдено" */
html[data-theme="dark"] .results-section[style*="text-align: center"] {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
}

html[data-theme="dark"] .results-section[style*="text-align: center"] h3 {
    color: #c62828 !important;
}

html[data-theme="dark"] .results-section[style*="text-align: center"] p {
    color: #aaa !important;
}

/* Заголовки таблиц */
html[data-theme="dark"] .results-section h2,
html[data-theme="dark"] .report-section h2,
html[data-theme="dark"] .report-section h3 {
    color: #c62828 !important;
    border-bottom: 2px solid #444 !important;
    padding-bottom: 10px !important;
}

/* Иконки в заголовках */
html[data-theme="dark"] .results-section h2 i,
html[data-theme="dark"] .report-section h2 i,
html[data-theme="dark"] .report-section h3 i {
    color: #c62828 !important;
}

/* ========== REPORTS.PHP ========== */

/* Контейнер отчетов */
html[data-theme="dark"] .report-container {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

/* Фильтры периодов */
html[data-theme="dark"] .report-filters a.btn {
    background-color: #444 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
}

html[data-theme="dark"] .report-filters a.btn-primary {
    background-color: #c62828 !important;
    border-color: #8B0000 !important;
}

html[data-theme="dark"] .report-filters a.btn-secondary {
    background-color: #555 !important;
    border-color: #666 !important;
}

/* Графики */
html[data-theme="dark"] canvas {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
    border-radius: 8px !important;
    padding: 10px !important;
}

/* Кнопки экспорта/печати */
html[data-theme="dark"] button[onclick*="exportToExcel"],
html[data-theme="dark"] button[onclick*="window.print"] {
    background-color: #444 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
}

html[data-theme="dark"] button[onclick*="exportToExcel"]:hover,
html[data-theme="dark"] button[onclick*="window.print"]:hover {
    background-color: #555 !important;
}

html[data-theme="dark"] button[onclick*="exportToExcel"] i {
    color: #4caf50 !important;
}

html[data-theme="dark"] button[onclick*="window.print"] i {
    color: #2196f3 !important;
}

/* "Нет данных" сообщение */
html[data-theme="dark"] .report-section[style*="text-align: center"] {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
}

html[data-theme="dark"] .report-section[style*="text-align: center"] h2 {
    color: #c62828 !important;
}

html[data-theme="dark"] .report-section[style*="text-align: center"] p {
    color: #aaa !important;
}

html[data-theme="dark"] .report-section[style*="text-align: center"] .fa-database {
    color: #444 !important;
}

/* Таблицы в отчетах */
html[data-theme="dark"] .results-table td[style*="text-align: center"] {
    color: #e0e0e0 !important;
}

/* Проценты в таблицах */
html[data-theme="dark"] td div[style*="background-color"] {
    background-color: #333 !important;
    color: #fff !important;
}

html[data-theme="dark"] td div[style*="background-color: #ffebee"] {
    background-color: #b71c1c !important;
    color: #ffcdd2 !important;
}

html[data-theme="dark"] td div[style*="background-color: #e8f5e9"] {
    background-color: #1b5e20 !important;
    color: #c8e6c9 !important;
}

/* Активность подразделений */
html[data-theme="dark"] .badge-success {
    background-color: #4caf50 !important;
    color: white !important;
}

html[data-theme="dark"] .badge-medical {
    background-color: #c62828 !important;
    color: white !important;
}

/* Хедер отчетов */
html[data-theme="dark"] .admin-header p[style*="font-size: 12px"] {
    color: #aaa !important;
}

/* Ссылки в отчетах */
html[data-theme="dark"] .report-section a {
    color: #64b5f6 !important;
}

/* ========== ОБЩИЕ СТИЛИ ДЛЯ ОБЕИХ СТРАНИЦ ========== */

/* Инпут группы */
html[data-theme="dark"] .form-group {
    background-color: transparent !important;
}

/* Выпадающие списки */
html[data-theme="dark"] select option {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] select option:hover {
    background-color: #c62828 !important;
    color: white !important;
}

/* Фокус состояния */
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] button:focus {
    outline: 2px solid #c62828 !important;
    outline-offset: 2px !important;
}

/* Границы контейнеров */
html[data-theme="dark"] .container > * {
    border-color: #444 !important;
}

/* Тени */
html[data-theme="dark"] .card,
html[data-theme="dark"] .search-section,
html[data-theme="dark"] .results-section,
html[data-theme="dark"] .report-section {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Скроллбар для таблиц */
html[data-theme="dark"] .results-table {
    scrollbar-color: #555 #2d2d2d !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    html[data-theme="dark"] .dashboard-cards {
        grid-template-columns: 1fr !important;
    }
    
    html[data-theme="dark"] .card {
        margin-bottom: 15px !important;
    }
    
    html[data-theme="dark"] .results-table {
        font-size: 0.9rem !important;
    }
}

/* Улучшение читаемости */
html[data-theme="dark"] strong {
    color: #fff !important;
}

html[data-theme="dark"] em {
    color: #aaa !important;
}

/* Подсветка текущего элемента */
html[data-theme="dark"] :focus {
    border-color: #c62828 !important;
}

/* Улучшение контрастности для доступности */
html[data-theme="dark"] a:focus,
html[data-theme="dark"] button:focus {
    background-color: #c62828 !important;
    color: white !important;
}
/* ============================================
   ТЕМНАЯ ТЕМА ДЛЯ UNIFIED_VIEW.PHP
   ============================================ */

/* Основной контейнер просмотра */
html[data-theme="dark"] .unified-view-container {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

/* Хедер единого документа */
html[data-theme="dark"] .unified-header {
    background: linear-gradient(135deg, #444444 0%, #666666 100%) !important;
    border: 3px solid #555 !important;
}

html[data-theme="dark"] .unified-header h2,
html[data-theme="dark"] .unified-header p {
    color: #ffffff !important;
}

/* Большой номер документа */
html[data-theme="dark"] .unified-number-large {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Статус документов */
html[data-theme="dark"] .document-status {
    background-color: transparent !important;
}

html[data-theme="dark"] .status-badge {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .status-badge.completed {
    background: rgba(76, 175, 80, 0.3) !important;
    border-color: #4caf50 !important;
}

html[data-theme="dark"] .status-badge.pending {
    background: rgba(255, 193, 7, 0.3) !important;
    border-color: #ffc107 !important;
}

/* Секция поиска */
html[data-theme="dark"] .search-section {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .search-form label {
    color: #cccccc !important;
}

html[data-theme="dark"] .search-form input {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border: 1px solid #555 !important;
}

html[data-theme="dark"] .search-form input:focus {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 0.2rem rgba(198, 40, 40, 0.25) !important;
}

html[data-theme="dark"] .search-form small {
    color: #888 !important;
}

/* Сообщение поиска */
html[data-theme="dark"] .search-message {
    background-color: #2d2d2d !important;
    border-left: 4px solid #c62828 !important;
    color: #e0e0e0 !important;
}

/* Карточка информации о военнослужащем */
html[data-theme="dark"] .soldier-info-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%) !important;
    border-left: 5px solid #c62828 !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .soldier-info-card h3 {
    color: #c62828 !important;
}

/* Детали солдата */
html[data-theme="dark"] .soldier-details {
    background-color: transparent !important;
}

html[data-theme="dark"] .info-item {
    background-color: #333 !important;
    border: 1px solid #444 !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .info-label {
    color: #c62828 !important;
}

html[data-theme="dark"] .info-value {
    color: #ffffff !important;
}

html[data-theme="dark"] .info-value code {
    background-color: #2d2d2d !important;
    color: #4caf50 !important;
    border: 1px solid #444 !important;
}

/* Вкладки документов */
html[data-theme="dark"] .documents-tabs {
    background-color: #2d2d2d !important;
    border-bottom: 1px solid #444 !important;
}

html[data-theme="dark"] .doc-tab {
    color: #aaa !important;
    background-color: #333 !important;
    border-bottom: 3px solid transparent !important;
}

html[data-theme="dark"] .doc-tab:hover {
    background-color: #3a3a3a !important;
    color: #fff !important;
}

html[data-theme="dark"] .doc-tab.active {
    border-bottom-color: #c62828 !important;
    color: #c62828 !important;
    background-color: #3a3a3a !important;
}

html[data-theme="dark"] .doc-tab.disabled {
    color: #666 !important;
    background-color: #2a2a2a !important;
    cursor: not-allowed !important;
}

/* Контент документов */
html[data-theme="dark"] .document-content {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
    border-top: none !important;
}

/* Секции документа */
html[data-theme="dark"] .document-section {
    border-bottom: 2px solid #444 !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .document-section:last-child {
    border-bottom: none !important;
}

html[data-theme="dark"] .section-title {
    color: #c62828 !important;
}

/* Баллы и результаты */
html[data-theme="dark"] .score-result {
    background-color: #2d2d2d !important;
    border: 3px solid #444 !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .score-good {
    background-color: #1b5e20 !important;
    color: #c8e6c9 !important;
    border-color: #2e7d32 !important;
}

html[data-theme="dark"] .score-bad {
    background-color: #b71c1c !important;
    color: #ffcdd2 !important;
    border-color: #c62828 !important;
}

/* Бейджи в таблице */
html[data-theme="dark"] .badge {
    background-color: #444 !important;
    color: #fff !important;
}

html[data-theme="dark"] .badge[style*="background-color: #ffebee"] {
    background-color: #b71c1c !important;
    color: #ffcdd2 !important;
}

html[data-theme="dark"] .badge[style*="background-color: #fff3cd"] {
    background-color: #856404 !important;
    color: #fff3cd !important;
}

html[data-theme="dark"] .badge[style*="background-color: #d4edda"] {
    background-color: #1b5e20 !important;
    color: #d4edda !important;
}

/* Сообщение "Нет документов" */
html[data-theme="dark"] .no-documents {
    background-color: #2d2d2d !important;
    color: #aaa !important;
    border: 1px solid #444 !important;
}

html[data-theme="dark"] .no-documents h3 {
    color: #c62828 !important;
}

html[data-theme="dark"] .no-documents p {
    color: #888 !important;
}

html[data-theme="dark"] .no-documents i {
    color: #444 !important;
}

/* Кнопки действий */
html[data-theme="dark"] .actions-section {
    background-color: transparent !important;
}

html[data-theme="dark"] .actions-section .btn {
    background-color: #444 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
}

html[data-theme="dark"] .actions-section .btn-primary {
    background-color: #c62828 !important;
    border-color: #8B0000 !important;
}

html[data-theme="dark"] .actions-section .btn-secondary {
    background-color: #555 !important;
    border-color: #666 !important;
}

html[data-theme="dark"] .actions-section .btn[style*="background-color: var(--medical-accent)"] {
    background-color: #c62828 !important;
    color: white !important;
}

/* Ссылки в сообщениях */
html[data-theme="dark"] .no-documents a {
    color: #64b5f6 !important;
}

/* Заголовки секций */
html[data-theme="dark"] .search-section h2,
html[data-theme="dark"] .soldier-info-card h3,
html[data-theme="dark"] .document-content h4 {
    color: #c62828 !important;
}

/* Иконки в заголовках */
html[data-theme="dark"] .search-section h2 i,
html[data-theme="dark"] .soldier-info-card h3 i,
html[data-theme="dark"] .section-title i {
    color: #c62828 !important;
}

/* Цвета для разных типов иконок */
html[data-theme="dark"] .fa-file-medical {
    color: #c62828 !important;
}

html[data-theme="dark"] .fa-stethoscope {
    color: #2196f3 !important;
}

html[data-theme="dark"] .fa-check-circle {
    color: #4caf50 !important;
}

html[data-theme="dark"] .fa-clock {
    color: #ffc107 !important;
}

html[data-theme="dark"] .fa-search {
    color: #2196f3 !important;
}

html[data-theme="dark"] .fa-search-minus {
    color: #c62828 !important;
}

/* Границы и разделители */
html[data-theme="dark"] .soldier-details,
html[data-theme="dark"] .info-item,
html[data-theme="dark"] .document-section {
    border-color: #444 !important;
}

/* Стили для дат */
html[data-theme="dark"] .info-value[style*="font-weight: bold"] {
    color: #fff !important;
}

/* Ховер эффекты для таблиц */
html[data-theme="dark"] .soldier-details .info-item:hover {
    background-color: #3a3a3a !important;
    border-color: #555 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    html[data-theme="dark"] .document-status {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    html[data-theme="dark"] .status-badge {
        width: 100% !important;
        justify-content: center !important;
    }
    
    html[data-theme="dark"] .documents-tabs {
        flex-direction: column !important;
    }
    
    html[data-theme="dark"] .doc-tab {
        width: 100% !important;
        text-align: center !important;
        border-bottom: 1px solid #444 !important;
    }
    
    html[data-theme="dark"] .actions-section {
        flex-direction: column !important;
    }
    
    html[data-theme="dark"] .actions-section .btn {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
}

/* Улучшение контрастности */
html[data-theme="dark"] .unified-view-container strong {
    color: #fff !important;
}

html[data-theme="dark"] .unified-view-container em {
    color: #aaa !important;
}

/* Стили для кнопки печати */
html[data-theme="dark"] button[onclick*="window.print"] i {
    color: #2196f3 !important;
}

/* Стили для ссылки "Найти в базе" */
html[data-theme="dark"] .btn-secondary i {
    color: #fff !important;
}
/* ============================================
   ТЕМНАЯ ТЕМА ДЛЯ ADD_ACCOUNT.PHP
   ============================================ */

/* Контейнер создания медика */
html[data-theme="dark"] .create-medic-container {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

/* Хедер секции */
html[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #444444 0%, #666666 100%) !important;
    border: 3px solid #555 !important;
}

html[data-theme="dark"] .section-header h2,
html[data-theme="dark"] .section-header p {
    color: #ffffff !important;
}

/* Секции формы и списка */
html[data-theme="dark"] .form-section,
html[data-theme="dark"] .list-section {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    color: #e0e0e0 !important;
}

/* Сетка формы */
html[data-theme="dark"] .medic-form-grid {
    background-color: transparent !important;
}

html[data-theme="dark"] .medic-form-grid .form-group label {
    color: #cccccc !important;
}

html[data-theme="dark"] .medic-form-grid .form-group input,
html[data-theme="dark"] .medic-form-grid .form-group select {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border: 1px solid #555 !important;
}

html[data-theme="dark"] .medic-form-grid .form-group input:focus,
html[data-theme="dark"] .medic-form-grid .form-group select:focus {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 0.2rem rgba(198, 40, 40, 0.25) !important;
}

html[data-theme="dark"] .medic-form-grid .form-group small {
    color: #888 !important;
}

/* Бейджи ролей */
html[data-theme="dark"] .role-badge {
    color: white !important;
    font-weight: 600 !important;
}

html[data-theme="dark"] .role-superadmin {
    background-color: #ff9800 !important;
}

html[data-theme="dark"] .role-admin {
    background-color: #2196f3 !important;
}

html[data-theme="dark"] .role-medic {
    background-color: #4caf50 !important;
}

/* Таблица медиков */
html[data-theme="dark"] .medics-table {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
}

html[data-theme="dark"] .medics-table th {
    background-color: #333 !important;
    color: #ffffff !important;
    border-bottom: 2px solid #555 !important;
}

html[data-theme="dark"] .medics-table td {
    border-bottom: 1px solid #444 !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .medics-table tr:hover {
    background-color: #3a3a3a !important;
}

/* Время последнего входа */
html[data-theme="dark"] .last-login {
    color: #aaa !important;
}

html[data-theme="dark"] span[style*="color: #999"] {
    color: #666 !important;
}

/* Сообщение "Нет данных" */
html[data-theme="dark"] .no-data {
    background-color: #2d2d2d !important;
    color: #aaa !important;
    border: 1px solid #444 !important;
}

html[data-theme="dark"] .no-data h4 {
    color: #c62828 !important;
}

html[data-theme="dark"] .no-data p {
    color: #888 !important;
}

html[data-theme="dark"] .no-data i {
    color: #444 !important;
}

/* Кнопки действий */
html[data-theme="dark"] .action-buttons {
    background-color: transparent !important;
}

html[data-theme="dark"] .delete-btn {
    background-color: #f44336 !important;
    color: white !important;
    border: 1px solid #d32f2f !important;
}

html[data-theme="dark"] .delete-btn:hover {
    background-color: #d32f2f !important;
}

/* Информация о ролях */
html[data-theme="dark"] .form-section[style*="background-color: #f8f9fa"] {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
}

html[data-theme="dark"] div[style*="padding: 20px; background: white"] {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border-left: 4px solid #2196f3 !important;
}

html[data-theme="dark"] div[style*="padding: 20px; background: white"] h4 {
    color: #2196f3 !important;
}

html[data-theme="dark"] div[style*="padding: 20px; background: white"] ul {
    color: #ccc !important;
}

html[data-theme="dark"] div[style*="border-left: 4px solid #4caf50"] {
    border-left-color: #4caf50 !important;
}

html[data-theme="dark"] div[style*="border-left: 4px solid #2196f3"] {
    border-left-color: #2196f3 !important;
}

html[data-theme="dark"] div[style*="border-left: 4px solid #ff9800"] {
    border-left-color: #ff9800 !important;
}

/* Кнопка переключения видимости пароля */
html[data-theme="dark"] .toggle-password {
    background-color: transparent !important;
    color: #888 !important;
}

html[data-theme="dark"] .toggle-password:hover {
    color: #fff !important;
}

/* Заголовки */
html[data-theme="dark"] .create-medic-container h3 {
    color: #c62828 !important;
    border-bottom: 2px solid #444 !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
}

/* Иконки в заголовках */
html[data-theme="dark"] .create-medic-container h3 i {
    color: #c62828 !important;
}

/* Сообщения об ошибках/успехе */
html[data-theme="dark"] .success-message {
    background-color: #1b5e20 !important;
    color: #c8e6c9 !important;
    border: 1px solid #2e7d32 !important;
}

html[data-theme="dark"] .error-message {
    background-color: #b71c1c !important;
    color: #ffcdd2 !important;
    border: 1px solid #c62828 !important;
}

/* Кнопка создания аккаунта */
html[data-theme="dark"] button[name="create_medic"] {
    background-color: #c62828 !important;
    color: white !important;
    border: 1px solid #8B0000 !important;
}

html[data-theme="dark"] button[name="create_medic"]:hover {
    background-color: #8B0000 !important;
}

/* Плейсхолдеры */
html[data-theme="dark"] .medic-form-grid input::placeholder {
    color: #888 !important;
}

/* Четные строки в таблице */
html[data-theme="dark"] .medics-table tr:nth-child(even) {
    background-color: #2a2a2a !important;
}

/* Ссылки в информационных блоках */
html[data-theme="dark"] div[style*="padding: 20px; background: white"] a {
    color: #64b5f6 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    html[data-theme="dark"] .medic-form-grid {
        grid-template-columns: 1fr !important;
    }
    
    html[data-theme="dark"] .medics-table {
        font-size: 0.9rem !important;
    }
    
    html[data-theme="dark"] .action-buttons {
        flex-direction: column !important;
        gap: 5px !important;
    }
    
    html[data-theme="dark"] div[style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }
}

/* Улучшение читаемости */
html[data-theme="dark"] .create-medic-container strong {
    color: #fff !important;
}

html[data-theme="dark"] .create-medic-container code {
    color: #4caf50 !important;
    background-color: #333 !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
}

/* Ховер эффекты для информационных блоков */
html[data-theme="dark"] div[style*="padding: 20px; background: white"]:hover {
    background-color: #3a3a3a !important;
    transform: translateY(-2px) !important;
    transition: all 0.3s ease !important;
}

/* Стили для подсказок о ролях */
html[data-theme="dark"] .form-group small br + strong {
    color: #fff !important;
}

/* Границы для разделов */
html[data-theme="dark"] .form-section,
html[data-theme="dark"] .list-section {
    margin-bottom: 30px !important;
}

/* Иконки в бейджах ролей */
html[data-theme="dark"] .role-badge i {
    color: white !important;
}

/* Стили для текста "Недоступно" */
html[data-theme="dark"] span[style*="color: #999; font-size: 0.9rem"] {
    color: #666 !important;
}
/* ============================================
   ТЕМНАЯ ТЕМА ДЛЯ МЕДИК-ИНСТРУМЕНТОВ
   ============================================ */

/* Основной контейнер */
html[data-theme="dark"] .medic-tools-container {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

/* Хедер инструментов */
html[data-theme="dark"] .tools-header {
    background: linear-gradient(135deg, #444444 0%, #666666 100%) !important;
    border: 3px solid #555 !important;
}

html[data-theme="dark"] .tools-header h2,
html[data-theme="dark"] .tools-header p {
    color: #ffffff !important;
}

/* Карточки действий */
html[data-theme="dark"] .action-card {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .action-card:hover {
    border-color: #555 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .action-card.confirm {
    border-top-color: #4caf50 !important;
}

html[data-theme="dark"] .action-card.fix {
    border-top-color: #ff9800 !important;
}

html[data-theme="dark"] .action-card.cleanup {
    border-top-color: #2196f3 !important;
}

html[data-theme="dark"] .card-title {
    color: #ffffff !important;
}

html[data-theme="dark"] .card-description {
    color: #aaa !important;
}

/* Кнопки инструментов */
html[data-theme="dark"] .btn-tool {
    background: #444 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
}

html[data-theme="dark"] .btn-confirm {
    background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
    border-color: #1b5e20 !important;
}

html[data-theme="dark"] .btn-confirm:hover {
    background: linear-gradient(135deg, #1b5e20, #0d4212) !important;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.4) !important;
}

html[data-theme="dark"] .btn-fix {
    background: linear-gradient(135deg, #f57c00, #e65100) !important;
    border-color: #f57c00 !important;
}

html[data-theme="dark"] .btn-fix:hover {
    background: linear-gradient(135deg, #e65100, #bf360c) !important;
    box-shadow: 0 5px 15px rgba(245, 124, 0, 0.4) !important;
}

html[data-theme="dark"] .btn-cleanup {
    background: linear-gradient(135deg, #1976d2, #0d47a1) !important;
    border-color: #1976d2 !important;
}

html[data-theme="dark"] .btn-cleanup:hover {
    background: linear-gradient(135deg, #0d47a1, #002171) !important;
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.4) !important;
}

/* Секции статистики */
html[data-theme="dark"] .stats-section {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    color: #e0e0e0 !important;
}

/* Карточки статистики */
html[data-theme="dark"] .stat-card {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border-left: 4px solid !important;
}

html[data-theme="dark"] .stat-value {
    color: #ffffff !important;
}

html[data-theme="dark"] .stat-label {
    color: #aaa !important;
}

html[data-theme="dark"] .stat-date {
    color: #888 !important;
}

/* Таблица проблемных записей */
html[data-theme="dark"] .problematic-table {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
}

html[data-theme="dark"] .problematic-table th {
    background-color: #333 !important;
    color: #c62828 !important;
    border-bottom: 2px solid #555 !important;
}

html[data-theme="dark"] .problematic-table td {
    border-bottom: 1px solid #444 !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .problematic-table tr:hover {
    background-color: #3a3a3a !important;
}

/* Бейджи статусов */
html[data-theme="dark"] .status-badge {
    background-color: #444 !important;
    color: #fff !important;
}

html[data-theme="dark"] .status-reserved {
    background: linear-gradient(135deg, #856404, #664d03) !important;
    color: #fff3cd !important;
}

html[data-theme="dark"] .status-processing {
    background: linear-gradient(135deg, #004085, #002752) !important;
    color: #cce5ff !important;
}

html[data-theme="dark"] .status-completed {
    background: linear-gradient(135deg, #155724, #0d4212) !important;
    color: #d4edda !important;
}

/* Бейджи документов */
html[data-theme="dark"] .doc-badge {
    background-color: #444 !important;
    color: #fff !important;
}

html[data-theme="dark"] .badge-yes {
    background: linear-gradient(135deg, #155724, #0d4212) !important;
    color: #d4edda !important;
}

html[data-theme="dark"] .badge-no {
    background: linear-gradient(135deg, #721c24, #4a1318) !important;
    color: #f8d7da !important;
}

/* Форма очистки */
html[data-theme="dark"] .cleanup-form {
    background-color: #333 !important;
    border: 1px solid #444 !important;
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .cleanup-form label {
    color: #ccc !important;
}

html[data-theme="dark"] .cleanup-form input {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border: 1px solid #555 !important;
}

html[data-theme="dark"] .cleanup-form input:focus {
    border-color: #2196f3 !important;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25) !important;
}

/* Сообщения */
html[data-theme="dark"] .success-message {
    background-color: #1b5e20 !important;
    color: #c8e6c9 !important;
    border-left: 4px solid #28a745 !important;
}

html[data-theme="dark"] .error-message {
    background-color: #b71c1c !important;
    color: #ffcdd2 !important;
    border-left: 4px solid #dc3545 !important;
}

/* Инструкции */
html[data-theme="dark"] .stats-section h3 {
    color: #c62828 !important;
    border-bottom: 2px solid #444 !important;
}

html[data-theme="dark"] .stats-section p[style*="color: #666"] {
    color: #aaa !important;
}

html[data-theme="dark"] div[style*="background: #e8f5e9"] {
    background: linear-gradient(135deg, #1b5e20, #0d4212) !important;
    color: #c8e6c9 !important;
    border: 1px solid #2e7d32 !important;
}

html[data-theme="dark"] div[style*="background: #fff3cd"] {
    background: linear-gradient(135deg, #856404, #664d03) !important;
    color: #fff3cd !important;
    border: 1px solid #ffc107 !important;
}

html[data-theme="dark"] div[style*="background: #e3f2fd"] {
    background: linear-gradient(135deg, #0d47a1, #002171) !important;
    color: #e3f2fd !important;
    border: 1px solid #2196f3 !important;
}

html[data-theme="dark"] div[style*="background: #e8f5e9"] h4,
html[data-theme="dark"] div[style*="background: #fff3cd"] h4,
html[data-theme="dark"] div[style*="background: #e3f2fd"] h4 {
    color: #fff !important;
}

html[data-theme="dark"] div[style*="background: #e8f5e9"] ul,
html[data-theme="dark"] div[style*="background: #fff3cd"] ul,
html[data-theme="dark"] div[style*="background: #e3f2fd"] ul {
    color: #ddd !important;
}

/* Сообщение "нет проблемных записей" */
html[data-theme="dark"] div[style*="text-align: center; padding: 30px; color: #666"] {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
    color: #aaa !important;
}

html[data-theme="dark"] div[style*="text-align: center; padding: 30px; color: #666"] h4 {
    color: #4caf50 !important;
}

/* Иконки */
html[data-theme="dark"] .card-icon i {
    color: inherit !important;
}

html[data-theme="dark"] .fa-check-double {
    color: #4caf50 !important;
}

html[data-theme="dark"] .fa-bug {
    color: #ff9800 !important;
}

html[data-theme="dark"] .fa-broom {
    color: #2196f3 !important;
}

html[data-theme="dark"] .fa-chart-bar,
html[data-theme="dark"] .fa-exclamation-triangle,
html[data-theme="dark"] .fa-info-circle {
    color: #c62828 !important;
}

/* Кнопки в хедере */
html[data-theme="dark"] .admin-header .logout-btn[style*="background-color: #4caf50"] {
    background-color: #4caf50 !important;
}

html[data-theme="dark"] .admin-header .logout-btn[style*="background-color: #2196f3"] {
    background-color: #2196f3 !important;
}

/* Подсказки для инпутов */
html[data-theme="dark"] .cleanup-form input::placeholder {
    color: #888 !important;
}

/* Анимации */
html[data-theme="dark"] .action-card {
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .btn-tool {
    transition: all 0.3s ease !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    html[data-theme="dark"] .action-cards {
        grid-template-columns: 1fr !important;
    }
    
    html[data-theme="dark"] .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    html[data-theme="dark"] div[style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }
}

/* Улучшение читаемости */
html[data-theme="dark"] .medic-tools-container strong {
    color: #fff !important;
}

html[data-theme="dark"] .medic-tools-container em {
    color: #aaa !important;
}

/* Стили для текста в таблице */
html[data-theme="dark"] .problematic-table small {
    color: #888 !important;
}

/* Стили для ховера на информационных блоках */
html[data-theme="dark"] div[style*="background: #e8f5e9"]:hover,
html[data-theme="dark"] div[style*="background: #fff3cd"]:hover,
html[data-theme="dark"] div[style*="background: #e3f2fd"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) !important;
}