/* Global Dark Mode Overrides */
[data-bs-theme="dark"] body {
    background-color: #151521 !important;
    color: #a6a6c0;
}

[data-bs-theme="dark"] .page-content {
    background-color: #151521;
}

/* Cards */
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .premium-card,
[data-bs-theme="dark"] .profile-header-card {
    background: #1e1e2d !important;
    border-color: #2b2b40 !important;
    color: #ffffff;
}

[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-footer {
    background-color: transparent !important;
    border-color: #2b2b40 !important;
}

/* Text Colors */
[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-body,
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .text-muted {
    color: #7d7d9b !important;
}

/* Sidebar */
[data-bs-theme="dark"] .sidebar {
    background: #1e1e2d !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .sidebar .user-profile {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Sidebar Navigation */
[data-bs-theme="dark"] .sidebar .nav-link {
    color: #e4e6eb !important;
    /* Brighter text */
    transition: all 0.2s ease;
    margin: 2px 8px;
    /* Slight margin for hover box */
    border-radius: 6px;
}

[data-bs-theme="dark"] .sidebar .nav-link i {
    color: #b0b3b8 !important;
    /* Brighter icons */
}

[data-bs-theme="dark"] .sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    /* Subtle hover */
    color: #ffffff !important;
}

[data-bs-theme="dark"] .sidebar .nav-link.active {
    background-color: rgba(105, 108, 255, 0.15) !important;
    /* Primary tint */
    color: #696cff !important;
}

[data-bs-theme="dark"] .sidebar .nav-link.active i {
    color: #696cff !important;
}



/* Navbar / Topbar */
[data-bs-theme="dark"] .top-bar,
[data-bs-theme="dark"] .navbar {
    background: #1e1e2d !important;
    border-bottom: 1px solid #2b2b40 !important;
}

/* Tables */
[data-bs-theme="dark"] .table {
    color: #a6a6c0;
    --bs-table-bg: transparent;
    --bs-table-border-color: #2b2b40;
    --bs-table-striped-bg: #2b2b40;
}

[data-bs-theme="dark"] .table> :not(caption)>*>* {
    background-color: transparent !important;
    /* Ensure transparent to let row bg show or body bg show */
    color: #a6a6c0;
    border-bottom-color: #2b2b40;
}

[data-bs-theme="dark"] .table thead th {
    color: #ffffff;
    background-color: #1e1e2d !important;
    border-bottom: 1px solid #2b2b40;
}

/* Form Elements */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .input-group-text {
    background-color: #151521 !important;
    border-color: #2b2b40 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #151521 !important;
    border-color: #696cff !important;
    box-shadow: 0 0 0 0.25rem rgba(105, 108, 255, 0.25);
}

[data-bs-theme="dark"] .form-label {
    color: #a6a6c0;
}

/* Select2 */
[data-bs-theme="dark"] .select2-container--default .select2-selection--single,
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple {
    background-color: #151521 !important;
    border-color: #2b2b40 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .select2-dropdown {
    background-color: #1e1e2d !important;
    border-color: #2b2b40 !important;
}

[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #696cff !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #2b2b40 !important;
    color: #ffffff !important;
}

/* Modals */
[data-bs-theme="dark"] .modal-content {
    background-color: #1e1e2d !important;
    border-color: #2b2b40;
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
    border-color: #2b2b40 !important;
}

[data-bs-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Dropdowns */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #1e1e2d !important;
    border-color: #2b2b40 !important;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #a6a6c0 !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background-color: #2b2b40 !important;
    color: #ffffff !important;
}

/* Utilities */
[data-bs-theme="dark"] .bg-white {
    background-color: #1e1e2d !important;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #151521 !important;
    /* Slightly darker than card for contrast */
}

[data-bs-theme="dark"] .border {
    border-color: #2b2b40 !important;
}

[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-start,
[data-bs-theme="dark"] .border-end {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Stat Widgets */
[data-bs-theme="dark"] .stat-widget {
    background: #1e1e2d !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    /* Stronger shadow for depth */
}

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

[data-bs-theme="dark"] .stat-widget-label {
    color: #a6a6c0 !important;
}

/* Table Container & Search */
[data-bs-theme="dark"] .table-container {
    background: #1e1e2d !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .table-header {
    background: #1e1e2d !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .search-box {
    background: #151521 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

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

[data-bs-theme="dark"] .search-box i {
    color: #a6a6c0 !important;
}

/* DataTables Elements */
[data-bs-theme="dark"] .dataTables_length select {
    background-color: #151521 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .dataTables_filter input {
    background-color: #151521 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .page-link {
    background-color: #1e1e2d !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #a6a6c0 !important;
}

[data-bs-theme="dark"] .page-item.active .page-link {
    background-color: #696cff !important;
    border-color: #696cff !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .page-item.disabled .page-link {
    background-color: #151521 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #565674 !important;
}

/* Specific Table Fixes */
[data-bs-theme="dark"] .modern-table {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .modern-table th {
    background-color: #232333 !important;
    /* Slightly distinct header */
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: none !important;
}

[data-bs-theme="dark"] .modern-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #a6a6c0 !important;
}

[data-bs-theme="dark"] .table> :not(caption)>*>* {
    border-width: 0 0 1px 0 !important;
    /* Cleaner rows, horizontal lines only */
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .custom-table {
    background: transparent !important;
}

/* Badges */
[data-bs-theme="dark"] .badge.bg-label-primary {
    background-color: #2b2b40 !important;
    color: #696cff !important;
}

[data-bs-theme="dark"] .table-footer {
    background-color: #1e1e2d !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #a6a6c0 !important;
}

[data-bs-theme="dark"] .dataTables_info {
    color: #a6a6c0 !important;
}

[data-bs-theme="dark"] .dataTables_paginate .paginate_button.disabled,
[data-bs-theme="dark"] .dataTables_paginate .paginate_button.disabled:hover,
[data-bs-theme="dark"] .table-hover>tbody>tr:hover>* {
    color: #ffffff !important;
    background-color: #2b2b40 !important;
    /* Slightly lighter than row bg */
    box-shadow: inset 0 0 0 9999px #2b2b40 !important;
    /* Override bootstrap override */
}

[data-bs-theme="dark"] .modern-table tbody tr:hover td {
    background-color: #2b2b40 !important;
    color: #ffffff !important;
}


/* Action Buttons */
[data-bs-theme="dark"] .btn-action {
    background-color: #1e1e2d !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #a6a6c0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .btn-action:hover {
    background-color: #2b2b40 !important;
    color: #ffffff !important;
    border-color: #696cff !important;
}

/* Sidebar User Section */
[data-bs-theme="dark"] .user-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background-color: #1e1e2d !important;
}

[data-bs-theme="dark"] .user-link {
    color: #a6a6c0 !important;
}

[data-bs-theme="dark"] .user-link:hover {
    background-color: #2b2b40 !important;
    color: #ffffff !important;
    border-radius: 6px;
}

/* Ensure Dropdown sits above others and matches theme */
[data-bs-theme="dark"] .user-section .dropdown-menu {
    background-color: #1e1e2d !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    bottom: 100% !important;
    /* Make it pop up if needed, though bootstrap handles placement usually */
    top: auto !important;
    margin-bottom: 5px;
}

[data-bs-theme="dark"] .user-section .dropdown-item {
    color: #a6a6c0 !important;
}

[data-bs-theme="dark"] .user-section .dropdown-item:hover {
    background-color: #2b2b40 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .user-section .dropdown-item i {
    color: #7d7d9b !important;
}

/* Breadcrumbs */
[data-bs-theme="dark"] .breadcrumb-item.active {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .breadcrumb-item a {
    color: #696cff !important;
}

/* Reports & Analytics */
[data-bs-theme="dark"] .report-card,
[data-bs-theme="dark"] .metric-card,
[data-bs-theme="dark"] .chart-card-lg {
    background-color: #1e1e2d !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
    border-radius: 0.5rem;
    /* Ensure consistent rounding */
    padding: 1.5rem;
    /* Ensure padding if missing */
}

/* Specific fix for Analytics chart card which might need padding adjustment based on class usage */
[data-bs-theme="dark"] .chart-card-lg {
    padding: 1.5rem;
}

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

[data-bs-theme="dark"] .metric-label {
    color: #a6a6c0 !important;
}

/* Filter Buttons in Reports */
[data-bs-theme="dark"] .filter-btn {
    background-color: #151521 !important;
    color: #a6a6c0 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

[data-bs-theme="dark"] .filter-btn:hover {
    background-color: #2b2b40 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .filter-btn.active {
    background-color: #696cff !important;
    color: #ffffff !important;
    border-color: #696cff !important;
}

/* Fix for charts text colors where possible via CSS (canvas checks JS) */
[data-bs-theme="dark"] .text-muted {
    color: #7d7d9b !important;
}

/* Fix for subtle backgrounds in metrics */
[data-bs-theme="dark"] .bg-primary-subtle {
    background-color: rgba(105, 108, 255, 0.15) !important;
    color: #696cff !important;
}

[data-bs-theme="dark"] .bg-success-subtle {
    background-color: rgba(113, 221, 55, 0.15) !important;
    color: #71dd37 !important;
}

[data-bs-theme="dark"] .bg-warning-subtle {
    background-color: rgba(255, 171, 0, 0.15) !important;
    color: #ffab00 !important;
}

[data-bs-theme="dark"] .bg-info-subtle {
    background-color: rgba(3, 195, 236, 0.15) !important;
    color: #03c3ec !important;
}

/* Dark Mode Scrollbar */
[data-bs-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: #1e1e2d;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #2b2b40;
    border-radius: 4px;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #696cff;
}

/* Sidebar Specific Scrollbar */
[data-bs-theme="dark"] .sidebar::-webkit-scrollbar {
    width: 5px;
}

[data-bs-theme="dark"] .sidebar::-webkit-scrollbar-track {
    background: transparent;
}

[data-bs-theme="dark"] .sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Global Card Override for Dark Mode */
[data-bs-theme="dark"] .card {
    background-color: #1e1e2d !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff;
}

[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-footer {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Ensure chart containers don't have white backgrounds if they are separate */
/* Text Colors Fix */
[data-bs-theme="dark"] .text-dark {
    color: #e4e6eb !important;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: #e4e6eb !important;
}

[data-bs-theme="dark"] a {
    color: #696cff;
}

/* Custom Popover Editor */
[data-bs-theme="dark"] #custom-popover-editor {
    background-color: #1e1e2d !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] #custom-popover-editor .form-control {
    background-color: #151521 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] #custom-popover-editor .btn-light {
    background-color: #2b2b40 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #a6a6c0 !important;
}

/* DataTables Length & Controls */
[data-bs-theme="dark"] .dataTables_length select {
    background-color: #1e1e2d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a6a6c0;
    padding: 2px 5px;
    border-radius: 4px;
}

[data-bs-theme="dark"] .dataTables_length label {
    color: #a6a6c0 !important;
}

/* Global Dropdown Override */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #1e1e2d !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .dropdown-item {
    color: #a6a6c0 !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background-color: #2b2b40 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-outline-dark {
    color: #e4e6eb !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-bs-theme="dark"] .btn-outline-dark:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-outline-warning {
    color: #ffab00 !important;
    border-color: #ffab00 !important;
}

/* Global Modal Override */
[data-bs-theme="dark"] .modal-content {
    background-color: #1e1e2d !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #ffffff !important;
}

[data-bs-theme="dark"] .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

[data-bs-theme="dark"] .modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-bs-theme="dark"] .modal-body {
    color: #a6a6c0;
    background-color: #1e1e2c;
}

/* Ensure inputs in modals are consistent */
[data-bs-theme="dark"] .modal-content .form-control,
[data-bs-theme="dark"] .modal-content .form-select {
    background-color: #151521 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .modal-content .form-control:focus,
/* Timeline in Modals */
[data-bs-theme="dark"] .timeline-wrapper .timeline-item {
    border-left-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .timeline-wrapper .timeline-item::before {
    border-color: #1e1e2d !important;
    /* Match modal background */
}

/* Ensure modal body text is visible if specific classes are used */
/* Multi Change Modal Specifics */
[data-bs-theme="dark"] .multi-change-area .table-light th {
    background-color: #2b2b40 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .multi-change-area .table td {
    background-color: transparent !important;
    color: #a6a6c0 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .multi-change-area select,
[data-bs-theme="dark"] .multi-change-area input {
    background-color: #151521 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .swal2-popup {
    background-color: #1e1e2d !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .swal2-title,
/* Data View & Premium Cards */
[data-bs-theme="dark"] .premium-card,
[data-bs-theme="dark"] .stat-widget,
[data-bs-theme="dark"] .tab-content-area,
[data-bs-theme="dark"] .product-gallery {
    background-color: #1e1e2d !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
}

[data-bs-theme="dark"] .bg-white {
    background-color: #1e1e2d !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-outline-secondary {

    color: #ffffff !important;
}


/* Modal Footer Fix */
[data-bs-theme="dark"] .modal-footer {
    background-color: transparent !important;
}

/* Stat Icons in Data View */
[data-bs-theme="dark"] .stat-widget-icon.icon-sales {
    background-color: rgba(35, 131, 226, 0.15) !important;
    color: #2383e2 !important;
}

[data-bs-theme="dark"] .stat-widget-icon.icon-return {
    background-color: rgba(224, 49, 49, 0.15) !important;
    color: #e03131 !important;
}

[data-bs-theme="dark"] .stat-widget-icon.icon-revenue {
    background-color: rgba(47, 158, 68, 0.15) !important;
    color: #2f9e44 !important;
}

/* Data View Meta Badges */
[data-bs-theme="dark"] .meta-badge.stock {
    background: rgba(8, 127, 91, 0.15);
    color: #2b8a3e;
}

[data-bs-theme="dark"] .meta-badge.sku {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e6eb;
}

[data-bs-theme="dark"] .meta-badge.category {
    background: rgba(25, 113, 194, 0.15);
    color: #339af0;
}

/* Create Product Modal - Override Inline Styles */
[data-bs-theme="dark"] #create-product-modal .modal-body {
    background-color: transparent !important;
    /* Was #fbfbfa */
    color: #a6a6c0;
}

[data-bs-theme="dark"] .form-section-label {
    color: #e4e6eb !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .image-upload-area {
    background-color: #151521 !important;
    /* Was #f8f9fa */
    border-color: rgba(255, 255, 255, 0.08) !important;
    /* Was #e9e9e7 */
}

/* Input groups inside the modal */
[data-bs-theme="dark"] .input-group-text {
    background-color: #2b2b40 !important;
    /* Was #f8f9fa */
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #e4e6eb !important;
}

/* Fix generated barcode icon color */
[data-bs-theme="dark"] #generate-barcode {
    color: #696cff !important;
}

/* Ensure Select2 containers in input groups look correct */

/* Info Value fix (Data View) */
[data-bs-theme="dark"] .info-value,
[data-bs-theme="dark"] .product-title-group h1,
[data-bs-theme="dark"] .current-price,
[data-bs-theme="dark"] .stat-widget-value {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .info-label,
[data-bs-theme="dark"] .card-title-sm,
[data-bs-theme="dark"] .stat-widget-label,

[data-bs-theme="dark"] .info-row {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}


[data-bs-theme="dark"] .custom-tabs .nav-link {
    color: #a6a6c0 !important;
}

[data-bs-theme="dark"] .custom-tabs .nav-link.active {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .custom-tabs .nav-link.active::after {
    background-color: #696cff !important;
}

/* List Group */
[data-bs-theme="dark"] .list-group {
    background-color: transparent !important;
}

[data-bs-theme="dark"] .list-group-item {
    background-color: #1e1e2d !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #a6a6c0 !important;
}

[data-bs-theme="dark"] .list-group-item-action:hover,
[data-bs-theme="dark"] .list-group-item-action:focus {
    background-color: #2b2b40 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] .search-container {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] .logo-light {
    display: none !important;
}

[data-bs-theme="dark"] .logo-dark {
    display: block !important;
}

[data-bs-theme="dark"] .btn-light {
    background-color: #2b2b40 !important;
    border-color: #444564 !important;
    color: #a1b0cb !important;
}

[data-bs-theme="dark"] .btn-light:hover {
    background-color: #323249 !important;
    border-color: #444564 !important;
    color: #fff !important;
}

/* Employee Detail Page Overrides */
[data-bs-theme="dark"] .profile-header-card,
[data-bs-theme="dark"] .employee-stats-card {
    background: #2b2b40 !important;
    border-color: #444564 !important;
}

[data-bs-theme="dark"] .permission-card {
    background: #323249 !important;
    border-color: #444564 !important;
}

[data-bs-theme="dark"] .stat-value,
[data-bs-theme="dark"] .h3.text-dark,
[data-bs-theme="dark"] .fw-bold.text-dark {
    color: #e4e6eb !important;
}

[data-bs-theme="dark"] .stat-label,
[data-bs-theme="dark"] .text-secondary {
    color: #a1b0cb !important;
}

[data-bs-theme="dark"] .permission-switch {
    border-bottom-color: #444564 !important;
}

[data-bs-theme="dark"] .card-header.bg-white {
    background-color: #2b2b40 !important;
    color: #e4e6eb !important;
    border-bottom-color: #444564 !important;
}

[data-bs-theme="dark"] .employee-avatar-lg {
    background: #2b2b40 !important;
    border-color: #2b2b40 !important;
    color: #fff !important;
}