﻿[data-theme="dark"] body,
[data-theme="dark"] .general-body {
    background-color: var(--bg-base) !important;
    color: var(--text-primary);
}

[data-theme="dark"] .main-panel {
    background-color: var(--bg-base) !important;
}

[data-theme="dark"] .content {
    background-color: var(--bg-base);
}

[data-theme="dark"] .modern-sidebar .modern-sidebar-wrapper,
[data-theme="dark"] .sidebar[data-color="blue_cubiq"] .sidebar-background,
[data-theme="dark"] .sidebar[data-color="blue_cubiq"]::after {
    background: var(--bg-nav) !important;
}

[data-theme="dark"] .custom-modern-navbar,
[data-theme="dark"] .modern-navbar {
    background-color: var(--bg-nav) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .modern-logo-container {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] #sidebarSearch,
[data-theme="dark"] .modern-search-box input {
    background-color: transparent !important;
    color: #ffffff !important;
}

[data-theme="dark"] .content a,
[data-theme="dark"] .modal-content a,
[data-theme="dark"] .container a,
[data-theme="dark"] .modern-filters-card a,
[data-theme="dark"] .table a {
    color: var(--text-primary);
}

[data-theme="dark"] .btn-icon-action,
[data-theme="dark"] .btn-action-icon,
[data-theme="dark"] .floating-menu-item,
[data-theme="dark"] a.icon-btn,
[data-theme="dark"] a.btn,
[data-theme="dark"] a.btn-default,
[data-theme="dark"] a.btn-primary,
[data-theme="dark"] a.btn-info,
[data-theme="dark"] a.btn-modern,
[data-theme="dark"] a.btn-modern-secondary,
[data-theme="dark"] a.modern-nav-link,
[data-theme="dark"] a.logout-link,
[data-theme="dark"] a.logout-direct-btn,
[data-theme="dark"] .table a.btn-icon-action,
[data-theme="dark"] .table a.btn-action-icon,
[data-theme="dark"] .content a.btn-icon-action,
[data-theme="dark"] .content a.btn-action-icon,
[data-theme="dark"] .content a.btn,
[data-theme="dark"] .content a.btn-default,
[data-theme="dark"] .content a.btn-primary,
[data-theme="dark"] .content a.btn-info,
[data-theme="dark"] .content a.btn-modern,
[data-theme="dark"] .content a.floating-menu-item,
[data-theme="dark"] .ua-inline,
[data-theme="dark"] .ua-chip {
    color: inherit;
}

[data-theme="dark"] .modern-logo-text,
[data-theme="dark"] .modern-logo-text span,
[data-theme="dark"] .modern-nav-link,
[data-theme="dark"] .modern-nav-link p,
[data-theme="dark"] .user-profile,
[data-theme="dark"] .user-name,
[data-theme="dark"] .enterprise-info {
    color: inherit !important;
}

[data-theme="dark"] hr {
    border-color: var(--border);
}

[data-theme="dark"] label {
    color: var(--text-primary);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] p {
    color: var(--text-body);
}

[data-theme="dark"] .custom-modern-sidebar-nav .modern-nav-link:hover,
[data-theme="dark"] .custom-modern-sidebar-nav li.active .modern-nav-link {
    background-color: var(--primary-soft) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .custom-modern-sidebar-nav
[data-theme="dark"] .custom-modern-sidebar-nav {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .modern-nav-link:hover i, li.active .modern-nav-link i {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: var(--bg-surface);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(214, 51, 108, 0.25);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-tertiary);
}

[data-theme="dark"] .form-control[disabled],
[data-theme="dark"] .form-control[readonly] {
    background-color: var(--bg-muted);
    color: var(--text-tertiary);
}

[data-theme="dark"] .text-primary, .text-primary:hover {
    color: var(--primary-color) !important;
}

