/* Modern Admin Panel Styles */

/* Enhanced form controls */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--card-bg);
    color: var(--text-primary);
}

/* Dark theme form controls */
[data-theme="dark"] .form-control {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

[data-theme="dark"] .form-control:focus {
    background: #374151;
    border-color: var(--primary-color);
    color: #f9fafb;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .form-control::placeholder {
    color: #9ca3af;
}

/* Select dropdowns */
[data-theme="dark"] .form-select {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

[data-theme="dark"] .form-select:focus {
    background: #374151;
    border-color: var(--primary-color);
    color: #f9fafb;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Textareas */
[data-theme="dark"] textarea.form-control {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

[data-theme="dark"] textarea.form-control:focus {
    background: #374151;
    border-color: var(--primary-color);
    color: #f9fafb;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Form check labels */
.form-check-label {
    color: var(--text-primary);
}

/* Dark theme form check labels */
[data-theme="dark"] .form-check-label {
    color: #f1f5f9;
}

/* Dark theme profile parameters */
[data-theme="dark"] .fw-bold.text-primary {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .text-primary {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .text-muted {
    color: #cbd5e1 !important;
}

/* Light theme list group items with dark background */
[data-theme="light"] .list-group-item.bg-dark {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .list-group-item.bg-dark a {
    color: #1e293b !important;
}

[data-theme="light"] .list-group-item.bg-dark a:hover {
    color: #3b82f6 !important;
}

/* Dark theme list group items with dark background - keep dark styling */
[data-theme="dark"] .list-group-item.bg-dark {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .list-group-item.bg-dark a {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .list-group-item.bg-dark a:hover {
    color: #a78bfa !important;
}

/* Enhanced buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    border: none;
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-outline-danger {
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-outline-success {
    color: var(--success-color);
    border: 1px solid var(--success-color);
    background: transparent;
}

.btn-outline-success:hover {
    background: var(--success-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Enhanced modals */
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 12px 12px 0 0;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0 0 12px 12px;
}

/* Light theme modals */
[data-theme="light"] .modal-content {
    background: #ffffff;
    border-color: #dee2e6;
    color: #1e293b;
}

[data-theme="light"] .modal-header {
    background: #f8f9fa;
    border-bottom-color: #dee2e6;
    color: #1e293b;
}

[data-theme="light"] .modal-body {
    background: #ffffff;
    color: #1e293b;
}

[data-theme="light"] .modal-footer {
    background: #f8f9fa;
    border-top-color: #dee2e6;
}

/* Enhanced list groups */
.list-group-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateX(4px);
}

.list-group-item:first-child {
    border-radius: 8px 8px 0 0;
}

.list-group-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Enhanced badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.badge.bg-info {
    background: var(--info-color) !important;
    color: white;
}

.badge.bg-success {
    background: var(--success-color) !important;
    color: white;
}

.badge.bg-warning {
    background: var(--warning-color) !important;
    color: white;
}

.badge.bg-danger {
    background: var(--danger-color) !important;
    color: white;
}

/* Enhanced alerts */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Enhanced breadcrumbs */
.breadcrumb {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

/* Dark theme breadcrumbs */
[data-theme="dark"] .breadcrumb-item {
    color: #cbd5e1;
}

[data-theme="dark"] .breadcrumb-item a {
    color: #60a5fa;
    text-decoration: none;
}

[data-theme="dark"] .breadcrumb-item a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

[data-theme="dark"] .breadcrumb-item.active {
    color: #f1f5f9;
    font-weight: 500;
}

/* Enhanced pagination */
.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Responsive Design */

/* Mobile First - Base styles */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding-top: 2px; /* Отступ сверху для видимости границы при hover */
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    z-index: 10; /* Поднимаем карточку поверх других элементов */
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Tablet styles (768px - 1024px) */
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-value {
        font-size: 2.25rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Таблицы управляются через responsive-tables.css */
}

/* Desktop styles (1024px - 1440px) */
@media (min-width: 1024px) {
    /* Карточки статистики с card-body сохраняют стиль как на 1000px */
    .stats-grid .card.bg-primary .card-body,
    .stats-grid .card.bg-success .card-body,
    .stats-grid .card.bg-info .card-body,
    .stats-grid .card.bg-warning .card-body,
    .stats-grid .card.bg-danger .card-body,
    .stats-grid .card.bg-secondary .card-body {
        padding: 1.5rem;
    }
    
    .stats-grid .card.bg-primary .card-title,
    .stats-grid .card.bg-success .card-title,
    .stats-grid .card.bg-info .card-title,
    .stats-grid .card.bg-warning .card-title,
    .stats-grid .card.bg-danger .card-title,
    .stats-grid .card.bg-secondary .card-title {
        font-size: 2rem;
    }
    
    .stats-grid .card.bg-primary .card-text,
    .stats-grid .card.bg-success .card-text,
    .stats-grid .card.bg-info .card-text,
    .stats-grid .card.bg-warning .card-text,
    .stats-grid .card.bg-danger .card-text,
    .stats-grid .card.bg-secondary .card-text {
        font-size: 0.875rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .main-content {
        padding: 2rem;
    }
    
    /* Таблицы управляются через responsive-tables.css */
    
    .modal-lg {
        max-width: 900px;
    }
}

/* Large Desktop styles (1440px - 1920px) */
@media (min-width: 1440px) {
    /* Карточки статистики с card-body сохраняют стиль как на 1000px */
    .stats-grid .card.bg-primary .card-body,
    .stats-grid .card.bg-success .card-body,
    .stats-grid .card.bg-info .card-body,
    .stats-grid .card.bg-warning .card-body,
    .stats-grid .card.bg-danger .card-body,
    .stats-grid .card.bg-secondary .card-body {
        padding: 1.5rem;
    }
    
    .stats-grid .card.bg-primary .card-title,
    .stats-grid .card.bg-success .card-title,
    .stats-grid .card.bg-info .card-title,
    .stats-grid .card.bg-warning .card-title,
    .stats-grid .card.bg-danger .card-title,
    .stats-grid .card.bg-secondary .card-title {
        font-size: 2rem;
    }
    
    .stats-grid .card.bg-primary .card-text,
    .stats-grid .card.bg-success .card-text,
    .stats-grid .card.bg-info .card-text,
    .stats-grid .card.bg-warning .card-text,
    .stats-grid .card.bg-danger .card-text,
    .stats-grid .card.bg-secondary .card-text {
        font-size: 0.875rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .main-content {
        padding: 2.5rem;
    }
    
    .stat-card {
        padding: 2rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
}

/* Extra Large Desktop styles (1920px+) */
@media (min-width: 1920px) {
    /* Карточки статистики с card-body сохраняют стиль как на 1000px */
    .stats-grid .card.bg-primary .card-body,
    .stats-grid .card.bg-success .card-body,
    .stats-grid .card.bg-info .card-body,
    .stats-grid .card.bg-warning .card-body,
    .stats-grid .card.bg-danger .card-body,
    .stats-grid .card.bg-secondary .card-body {
        padding: 1.5rem;
    }
    
    .stats-grid .card.bg-primary .card-title,
    .stats-grid .card.bg-success .card-title,
    .stats-grid .card.bg-info .card-title,
    .stats-grid .card.bg-warning .card-title,
    .stats-grid .card.bg-danger .card-title,
    .stats-grid .card.bg-secondary .card-title {
        font-size: 2rem;
    }
    
    .stats-grid .card.bg-primary .card-text,
    .stats-grid .card.bg-success .card-text,
    .stats-grid .card.bg-info .card-text,
    .stats-grid .card.bg-warning .card-text,
    .stats-grid .card.bg-danger .card-text,
    .stats-grid .card.bg-secondary .card-text {
        font-size: 0.875rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .container-fluid {
        max-width: 1800px;
        margin: 0 auto;
    }
}

/* Mobile specific improvements */
@media (max-width: 767px) {
    .main-content {
        padding: 0.75rem;
        overflow-x: hidden;
    }
    
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .stat-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0.75rem;
        box-sizing: border-box;
        overflow: hidden;
        word-wrap: break-word;
    }
    
    .stat-value {
        font-size: 1.5rem;
        line-height: 1.2;
        word-break: break-word;
    }
    
    .stat-label {
        font-size: 0.75rem;
        line-height: 1.3;
        word-break: break-word;
        hyphens: auto;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .card-body {
        padding: 0.75rem;
        overflow: hidden;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 100%;
        table-layout: fixed;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        word-wrap: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-lg {
        max-width: calc(100% - 1rem);
    }
    
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .form-control {
        font-size: 0.875rem;
        width: 100%;
        max-width: 100%;
    }
    
    .form-label {
        font-size: 0.875rem;
    }
    
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        word-wrap: break-word;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.375rem 0.5rem;
        white-space: nowrap;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Fix for any content that might overflow */
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-12 {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Ensure all content fits within viewport */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Landscape mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* Enhanced Modal Responsiveness */
@media (max-width: 767px) {
    .modal-xl {
        max-width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }
    
    .modal-lg {
        max-width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
}

/* Enhanced Form Responsiveness */
@media (max-width: 767px) {
    .form-row .col-md-6,
    .form-row .col-md-4,
    .form-row .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .input-group {
        flex-wrap: wrap;
    }
    
    .input-group .form-control {
        border-radius: 0.375rem !important;
    }
    
    .input-group-text {
        border-radius: 0.375rem !important;
    }
}

/* Enhanced Table Responsiveness */
@media (max-width: 767px) {
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.4rem;
    }
}

/* Enhanced Navigation Responsiveness */
@media (max-width: 767px) {
    .nav-tabs {
        border-bottom: 1px solid #dee2e6;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tabs .nav-item {
        flex-shrink: 0;
    }
    
    .nav-tabs .nav-link {
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Fix for nav-tabs border-radius - ensure equal top and bottom radius for all states */
.nav-tabs .nav-link,
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    border-top-left-radius: var(--bs-nav-tabs-border-radius, var(--bs-border-radius)) !important;
    border-top-right-radius: var(--bs-nav-tabs-border-radius, var(--bs-border-radius)) !important;
    border-bottom-left-radius: var(--bs-nav-tabs-border-radius, var(--bs-border-radius)) !important;
    border-bottom-right-radius: var(--bs-nav-tabs-border-radius, var(--bs-border-radius)) !important;
}

/* Enhanced Card Responsiveness */
@media (max-width: 767px) {
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
}

/* Enhanced Button Responsiveness */
@media (max-width: 767px) {
    .btn-group-vertical .btn {
        margin-bottom: 0.25rem;
    }
    
    .btn-group .btn {
        margin-right: 0.25rem;
    }
    
    .btn-group .btn:last-child {
        margin-right: 0;
    }
}

/* Enhanced Alert Responsiveness */
@media (max-width: 767px) {
    .alert {
        margin-bottom: 1rem;
        font-size: 0.875rem;
    }
    
    .alert-dismissible .btn-close {
        padding: 0.75rem 1rem;
    }
}

/* Enhanced Progress Bar Responsiveness */
@media (max-width: 767px) {
    .progress {
        height: 0.5rem;
    }
    
    .progress-bar {
        font-size: 0.7rem;
    }
}

/* Enhanced List Group Responsiveness */
@media (max-width: 767px) {
    .list-group-item {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .list-group-item .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Form improvements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
}

.dark-theme .form-text {
    color: #adb5bd;
}

/* Table improvements */
.table th {
    border-top: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Light theme tables */
[data-theme="light"] .table {
    color: #1e293b;
}

[data-theme="light"] .table th {
    background-color: #f8f9fa;
    color: #1e293b;
    border-color: #dee2e6;
}

[data-theme="light"] .table td {
    color: #1e293b;
    border-color: #dee2e6;
}

[data-theme="light"] .table-striped > tbody > tr:nth-of-type(odd) > td,
[data-theme="light"] .table-striped > tbody > tr:nth-of-type(odd) > th {
    background-color: #f8f9fa;
}

[data-theme="light"] .table-hover > tbody > tr:hover > td,
[data-theme="light"] .table-hover > tbody > tr:hover > th {
    background-color: #e9ecef;
    color: #1e293b;
}

/* Light theme cards */
[data-theme="light"] .card {
    background: #ffffff;
    border-color: #dee2e6;
    color: #1e293b;
}

[data-theme="light"] .card-header {
    background: #f8f9fa;
    border-bottom-color: #dee2e6;
    color: #1e293b;
}

[data-theme="light"] .card-body {
    color: #1e293b;
}

/* Dark theme cards */
[data-theme="dark"] .card {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .card-header {
    background: #0f172a;
    border-bottom-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .card-body {
    color: #f1f5f9;
}

/* Light theme lists */
[data-theme="light"] .list-group-item {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #1e293b;
}

[data-theme="light"] .list-group-item:hover {
    background: #f8fafc;
}

[data-theme="light"] .list-group-item a {
    color: #1e293b;
}

[data-theme="light"] .list-group-item a:hover {
    color: #3b82f6;
}

/* Sidebar categories - Premium Enhanced */
.nav-category {
    margin-bottom: 0;
    position: relative;
}

.nav-category-title {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    padding: 0.625rem 1.375rem;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-theme="light"] .nav-category-title {
    color: rgba(30, 41, 59, 0.5);
}

.nav-category-title::before {
    content: '';
    position: absolute;
    left: 1.375rem;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(139, 92, 246, 0.6) 0%,
        rgba(99, 102, 241, 0.4) 50%,
        transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.nav-category .nav-item {
    margin: 0;
}

/* Sidebar content indentation - Premium */
.sidebar-nav {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.nav-category,
.nav-section {
    padding-left: 0;
    margin-bottom: 0;
}

.nav-category-title,
.nav-section-title {
    padding-left: 1.375rem;
}

.nav-item {
    padding-left: 0;
}

/* Active menu item - Premium */
.nav-item .nav-link.active {
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px;
    position: relative;
}

.nav-item .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #C60997;
    border-radius: 1px;
}

/* Module info cards */
.module-info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.75rem;
    margin: 0.5rem 0 1rem 0;
    font-size: 0.8rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    padding: 0.125rem 0;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.info-value {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.8rem;
}

/* Stats Grid Styles - Updated for card-body format */
.stats-grid {
    margin-bottom: 2rem;
}

/* Enhanced card styles for statistics */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning,
.card.bg-danger,
.card.bg-secondary {
    transition: none !important;
    transform: none !important;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hover effects removed for stat cards */
.card.bg-primary:hover,
.card.bg-success:hover,
.card.bg-info:hover,
.card.bg-warning:hover,
.card.bg-danger:hover,
.card.bg-secondary:hover {
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: none !important;
}

.card.bg-primary .card-body,
.card.bg-success .card-body,
.card.bg-info .card-body,
.card.bg-warning .card-body,
.card.bg-danger .card-body,
.card.bg-secondary .card-body {
    padding: 1.5rem;
    transform: none !important;
}

.card.bg-primary:hover .card-body,
.card.bg-success:hover .card-body,
.card.bg-info:hover .card-body,
.card.bg-warning:hover .card-body,
.card.bg-danger:hover .card-body,
.card.bg-secondary:hover .card-body {
    transform: none !important;
}

.card.bg-primary .card-body i,
.card.bg-success .card-body i,
.card.bg-info .card-body i,
.card.bg-warning .card-body i,
.card.bg-danger .card-body i,
.card.bg-secondary .card-body i {
    margin-bottom: 0.75rem;
    display: block;
}

.card.bg-primary .card-title,
.card.bg-success .card-title,
.card.bg-info .card-title,
.card.bg-warning .card-title,
.card.bg-danger .card-title,
.card.bg-secondary .card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.card.bg-primary .card-text,
.card.bg-success .card-text,
.card.bg-info .card-text,
.card.bg-warning .card-text,
.card.bg-danger .card-text,
.card.bg-secondary .card-text {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Dark theme stats cards */
[data-theme="dark"] .card.bg-primary,
[data-theme="dark"] .card.bg-success,
[data-theme="dark"] .card.bg-info,
[data-theme="dark"] .card.bg-warning,
[data-theme="dark"] .card.bg-danger,
[data-theme="dark"] .card.bg-secondary {
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: none !important;
    transform: none !important;
}

[data-theme="dark"] .card.bg-primary .card-body,
[data-theme="dark"] .card.bg-success .card-body,
[data-theme="dark"] .card.bg-info .card-body,
[data-theme="dark"] .card.bg-warning .card-body,
[data-theme="dark"] .card.bg-danger .card-body,
[data-theme="dark"] .card.bg-secondary .card-body {
    transform: none !important;
}

/* Hover effects removed for stat cards in dark theme */
[data-theme="dark"] .card.bg-primary:hover,
[data-theme="dark"] .card.bg-success:hover,
[data-theme="dark"] .card.bg-info:hover,
[data-theme="dark"] .card.bg-warning:hover,
[data-theme="dark"] .card.bg-danger:hover,
[data-theme="dark"] .card.bg-secondary:hover {
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    transition: none !important;
}

[data-theme="dark"] .card.bg-primary:hover .card-body,
[data-theme="dark"] .card.bg-success:hover .card-body,
[data-theme="dark"] .card.bg-info:hover .card-body,
[data-theme="dark"] .card.bg-warning:hover .card-body,
[data-theme="dark"] .card.bg-danger:hover .card-body,
[data-theme="dark"] .card.bg-secondary:hover .card-body {
    transform: none !important;
}

/* Enhanced dashboard styles */
.welcome-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.quick-action-btn {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.quick-action-btn:hover::before {
    left: 100%;
}

/* Progress bars */
.progress {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* System info badges */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .stats-number {
        font-size: 2rem;
    }
    
    .quick-action-btn {
        padding: 1rem !important;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Animation for stats cards */
.stats-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Stagger animation for grid items */
.stats-card:nth-child(1) { animation-delay: 0.1s; }
.stats-card:nth-child(2) { animation-delay: 0.2s; }
.stats-card:nth-child(3) { animation-delay: 0.3s; }
.stats-card:nth-child(4) { animation-delay: 0.4s; }
.stats-card:nth-child(5) { animation-delay: 0.5s; }
.stats-card:nth-child(6) { animation-delay: 0.6s; }

.table td {
    vertical-align: middle;
}

/* Button improvements */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Modal improvements */
.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.dark-theme .modal-header {
    border-bottom-color: #444;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

.dark-theme .modal-footer {
    border-top-color: #444;
}

/* Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Utilities */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* Таблицы управляются через responsive-tables.css - все правила адаптивности там */

/* Гарантируем горизонтальный скролл для всех таблиц */
.table-responsive,
.table-responsive.scrollable,
.main-content .table-responsive,
.main-content .card-body .table-responsive,
.main-content .tab-content .table-responsive,
.main-content .tab-pane .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Крестик закрытия для модальных окон */
/* В светлой теме - темный крестик */
[data-theme="light"] .modal .btn-close,
body:not(.dark):not([data-bs-theme="dark"])[data-theme="light"] .modal .btn-close {
    filter: none !important;
    opacity: 1 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
}

[data-theme="light"] .modal .btn-close:hover {
    opacity: 0.75 !important;
}

/* В темной теме - светлый крестик */
body.dark .modal .btn-close,
[data-bs-theme="dark"] .modal .btn-close,
[data-theme="dark"] .modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

@media (prefers-color-scheme: dark) {
    .modal .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
    }
    
    /* Если явно указана светлая тема, переопределяем */
    [data-theme="light"] .modal .btn-close,
    body:not(.dark):not([data-bs-theme="dark"])[data-theme="light"] .modal .btn-close {
        filter: none !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
    }
}

/* Стили для кликабельных названий в таблицах */
table td[onclick] {
    transition: background-color 0.2s ease;
}

table td[onclick]:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] table td[onclick]:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="dark"] table td[onclick]:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

@media (prefers-color-scheme: dark) {
    table td[onclick]:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
}

/* Плашки параметров фильтров */
.param-filter-card {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

[data-theme="dark"] .param-filter-card,
body.dark .param-filter-card,
[data-bs-theme="dark"] .param-filter-card {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

[data-theme="dark"] .param-filter-card h6,
body.dark .param-filter-card h6,
[data-bs-theme="dark"] .param-filter-card h6 {
    color: #f9fafb;
}

[data-theme="dark"] .param-filter-card .text-muted,
body.dark .param-filter-card .text-muted,
[data-bs-theme="dark"] .param-filter-card .text-muted {
    color: #9ca3af;
}

/* Стили для модального окна задач */
[data-theme="dark"] #taskModal .modal-body,
body.dark #taskModal .modal-body,
[data-bs-theme="dark"] #taskModal .modal-body {
    color: #f9fafb;
}

[data-theme="dark"] #taskModal .modal-body strong,
body.dark #taskModal .modal-body strong,
[data-bs-theme="dark"] #taskModal .modal-body strong {
    color: #f9fafb;
}

/* Темный фон для блока результата задачи */
.task-result-pre {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #212529;
}

[data-theme="dark"] .task-result-pre,
body.dark .task-result-pre,
[data-bs-theme="dark"] .task-result-pre {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

/* Выравнивание badges в модальном окне задач */
#taskModal .modal-body .mb-3 {
    line-height: 1.8;
}

#taskModal .badge {
    vertical-align: middle;
    margin-left: 0.25rem;
}

[data-theme="dark"] .param-filter-card .form-label,
body.dark .param-filter-card .form-label,
[data-bs-theme="dark"] .param-filter-card .form-label {
    color: #f9fafb;
}

/* Double Range Slider Styles */
.dual-range-slider {
    position: relative;
    width: 100%;
    padding: 20px 0 50px 0;
    margin: 20px 0;
}

.dual-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 18px;
    background: transparent;
    -webkit-appearance: none;
    pointer-events: none;
    top: 20px;
    left: 0;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    z-index: 3;
}

.dual-range-slider input[type="range"]:first-of-type {
    z-index: 4;
}

.dual-range-slider input[type="range"]:last-of-type {
    z-index: 5;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #0d6efd;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background 0.2s;
    position: relative;
    margin-top: -6.5px;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb:hover {
    background: #0b5ed7;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb:active {
    background: #0a58ca;
}

.dual-range-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #0d6efd;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background 0.2s;
    -moz-appearance: none;
    position: relative;
}

.dual-range-slider input[type="range"]::-moz-range-thumb:hover {
    background: #0b5ed7;
}

.dual-range-slider input[type="range"]::-moz-range-thumb:active {
    background: #0a58ca;
}

.dual-range-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.dual-range-slider input[type="range"]::-moz-range-track {
    height: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.dual-range-slider .slider-track {
    position: absolute;
    width: 100%;
    height: 5px;
    background: #dee2e6;
    border-radius: 5px;
    top: 20px;
    left: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.dual-range-slider .slider-range {
    position: absolute;
    height: 5px;
    background: #0d6efd;
    border-radius: 5px;
    top: 20px;
    left: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.dual-range-slider .slider-values {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    font-size: 0.875rem;
    color: #6c757d;
}

.dual-range-slider .slider-value {
    font-weight: 500;
    color: #0d6efd;
}

/* Подписи значений под точками */
.dual-range-slider .slider-thumb-label {
    position: absolute;
    top: 32px;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #0d6efd;
    pointer-events: none;
    white-space: nowrap;
    z-index: 6;
    text-align: center;
    line-height: 1;
    margin-top: 2px;
    left: 0;
    display: block;
}

[data-theme="dark"] .dual-range-slider .slider-track,
body.dark .dual-range-slider .slider-track,
[data-bs-theme="dark"] .dual-range-slider .slider-track {
    background: #4b5563;
}

[data-theme="dark"] .dual-range-slider input[type="range"]::-webkit-slider-runnable-track,
body.dark .dual-range-slider input[type="range"]::-webkit-slider-runnable-track,
[data-bs-theme="dark"] .dual-range-slider input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
}

[data-theme="dark"] .dual-range-slider input[type="range"]::-moz-range-track,
body.dark .dual-range-slider input[type="range"]::-moz-range-track,
[data-bs-theme="dark"] .dual-range-slider input[type="range"]::-moz-range-track {
    background: transparent;
}

[data-theme="dark"] .dual-range-slider .slider-values,
body.dark .dual-range-slider .slider-values,
[data-bs-theme="dark"] .dual-range-slider .slider-values {
    color: #9ca3af;
}

[data-theme="dark"] .dual-range-slider .slider-value,
body.dark .dual-range-slider .slider-value,
[data-bs-theme="dark"] .dual-range-slider .slider-value {
    color: #60a5fa;
}

/* Tasks button styles - белая в светлой теме, светлая в темной */
.tasks-btn {
    background-color: #ffffff;
    border-color: #dee2e6;
    color: #1e293b;
}

.tasks-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #1e293b;
    text-decoration: none !important;
}

[data-theme="dark"] .tasks-btn,
body.dark .tasks-btn,
[data-bs-theme="dark"] .tasks-btn {
    background-color: #1e293b;
    border-color: #1e293b;
    color: #f1f5f9;
}

[data-theme="dark"] .tasks-btn:hover,
body.dark .tasks-btn:hover,
[data-bs-theme="dark"] .tasks-btn:hover {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #f1f5f9;
    text-decoration: none !important;
}

/* Content card header spacing */
.content-card-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

/* Темный текст для светлой темы */
[data-theme="light"] .content-card-header,
[data-theme="light"] .content-card-header h5,
[data-theme="light"] .page-title,
[data-theme="light"] .page-subtitle,
[data-theme="light"] .stat-label,
[data-theme="light"] .stat-value,
[data-theme="light"] .btn-link,
[data-theme="light"] a:not(.nav-link):not(.btn) {
    color: #1e293b !important;
}

/* Убираем подчеркивание у элементов выпадающих списков при наведении */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    text-decoration: none !important;
}

/* Убираем подчеркивание у всех выпадающих списков с поиском */
#subway1DropdownMenu .dropdown-item:hover,
#subway2DropdownMenu .dropdown-item:hover,
#subway3DropdownMenu .dropdown-item:hover,
#userDropdownMenu .dropdown-item:hover,
#cityDropdownMenu .dropdown-item:hover,
#filterDropdownMenu .dropdown-item:hover,
#modalCityDropdownMenu .dropdown-item:hover,
#modalFilterDropdownMenu .dropdown-item:hover {
    text-decoration: none !important;
}

/* Светлая тема для выпадающих списков с поиском */
[data-theme="light"] .dropdown-menu,
[data-theme="light"] #subway1DropdownMenu,
[data-theme="light"] #subway2DropdownMenu,
[data-theme="light"] #subway3DropdownMenu,
[data-theme="light"] #userDropdownMenu,
[data-theme="light"] #cityDropdownMenu,
[data-theme="light"] #filterDropdownMenu,
[data-theme="light"] #modalCityDropdownMenu,
[data-theme="light"] #modalFilterDropdownMenu {
    background-color: #ffffff !important;
    border-color: #dee2e6 !important;
    color: #1e293b !important;
}

[data-theme="light"] .dropdown-menu .dropdown-item,
[data-theme="light"] #subway1DropdownMenu .dropdown-item,
[data-theme="light"] #subway2DropdownMenu .dropdown-item,
[data-theme="light"] #subway3DropdownMenu .dropdown-item,
[data-theme="light"] #userDropdownMenu .dropdown-item,
[data-theme="light"] #cityDropdownMenu .dropdown-item,
[data-theme="light"] #filterDropdownMenu .dropdown-item,
[data-theme="light"] #modalCityDropdownMenu .dropdown-item,
[data-theme="light"] #modalFilterDropdownMenu .dropdown-item {
    color: #1e293b !important;
    background-color: transparent !important;
}

[data-theme="light"] .dropdown-menu .dropdown-item:hover,
[data-theme="light"] .dropdown-menu .dropdown-item:focus,
[data-theme="light"] #subway1DropdownMenu .dropdown-item:hover,
[data-theme="light"] #subway2DropdownMenu .dropdown-item:hover,
[data-theme="light"] #subway3DropdownMenu .dropdown-item:hover,
[data-theme="light"] #userDropdownMenu .dropdown-item:hover,
[data-theme="light"] #cityDropdownMenu .dropdown-item:hover,
[data-theme="light"] #filterDropdownMenu .dropdown-item:hover,
[data-theme="light"] #modalCityDropdownMenu .dropdown-item:hover,
[data-theme="light"] #modalFilterDropdownMenu .dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #1e293b !important;
    text-decoration: none !important;
}

[data-theme="light"] .dropdown-menu .dropdown-item.active,
[data-theme="light"] .dropdown-menu .dropdown-item:active,
[data-theme="light"] #subway1DropdownMenu .dropdown-item.active,
[data-theme="light"] #subway2DropdownMenu .dropdown-item.active,
[data-theme="light"] #subway3DropdownMenu .dropdown-item.active,
[data-theme="light"] #userDropdownMenu .dropdown-item.active,
[data-theme="light"] #cityDropdownMenu .dropdown-item.active,
[data-theme="light"] #filterDropdownMenu .dropdown-item.active,
[data-theme="light"] #modalCityDropdownMenu .dropdown-item.active,
[data-theme="light"] #modalFilterDropdownMenu .dropdown-item.active {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

/* Убираем подчеркивание у всех кнопок Bootstrap при наведении */
.btn:hover,
.btn:focus,
.btn:active,
a.btn:hover,
a.btn:focus,
a.btn:active {
    text-decoration: none !important;
}
