/**
 * UniMatrix Modern Theme
 * Custom CSS with Dark Mode Support
 */

/* ========== CSS VARIABLES ========== */
:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --primary-rgb: 79, 70, 229;
    --secondary: #64748b;
    --success: #10b981;
    --success-rgb: 16, 185, 129;
    --danger: #ef4444;
    --danger-rgb: 239, 68, 68;
    --warning: #f59e0b;
    --warning-rgb: 245, 158, 11;
    --info: #06b6d4;
    --info-rgb: 6, 182, 212;

    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --bg-sidebar: #1e293b;
    --bg-sidebar-hover: #334155;
    --bg-navbar: #ffffff;
    --bg-input: #f8fafc;
    --bg-badge-light: #f1f5f9;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-sidebar: #e2e8f0;
    --text-sidebar-active: #ffffff;
    --text-on-primary: #ffffff;

    --border-color: #e2e8f0;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========== DARK MODE ========== */
[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-sidebar: #0f172a;
    --bg-sidebar-hover: #1e293b;
    --bg-navbar: #1e293b;
    --bg-input: #334155;
    --bg-badge-light: #334155;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-sidebar: #e2e8f0;
    --text-sidebar-active: #ffffff;

    --border-color: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.3);
}

[data-theme="dark"] .main-sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
}

[data-theme="dark"] .sidebar-brand {
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .sidebar-menu .menu-header {
    color: var(--text-muted);
}

[data-theme="dark"] .sidebar-menu li a {
    color: var(--text-sidebar);
}

[data-theme="dark"] .sidebar-menu li a:hover {
    color: var(--text-sidebar-active);
    background: var(--bg-sidebar-hover);
}

[data-theme="dark"] .sidebar-menu li.active > a {
    color: var(--text-sidebar-active);
    background: var(--primary);
}

[data-theme="dark"] .main-navbar {
    background: var(--bg-navbar);
    border-bottom: 1px solid var(--border-color);
}

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

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

[data-theme="dark"] .card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

[data-theme="dark"] .card-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

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

[data-theme="dark"] .statistic-body h4,
[data-theme="dark"] .statistic-body h1,
[data-theme="dark"] .media-title,
[data-theme="dark"] h1, [data-theme="dark"] h2,
[data-theme="dark"] h3, [data-theme="dark"] h4 {
    color: var(--text-primary);
}

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

[data-theme="dark"] .form-control {
    background: var(--bg-input);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus {
    background: var(--bg-input);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

[data-theme="dark"] label,
[data-theme="dark"] .control-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

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

[data-theme="dark"] .dropdown-item:hover {
    background: var(--bg-sidebar-hover);
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-title {
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

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

[data-theme="dark"] .list-unstyled-border .media {
    border-color: var(--border-color);
}

[data-theme="dark"] .badge-light {
    background: var(--bg-badge-light);
    color: var(--text-secondary);
}

[data-theme="dark"] .section-header h1 {
    color: var(--text-primary);
}

[data-theme="dark"] .alert {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

[data-theme="dark"] .simple-footer {
    color: var(--text-muted);
}

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

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: var(--border-color);
}

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

[data-theme="dark"] .table thead th {
    background: var(--bg-sidebar-hover);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .table td,
[data-theme="dark"] .table th {
    border-color: var(--border-color);
}

[data-theme="dark"] .modal-header .close {
    color: var(--text-primary);
}

/* ========== DARK MODE TOGGLE ========== */
.dark-mode-toggle {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--bg-badge-light);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.dark-mode-toggle:hover {
    background: var(--primary);
    color: var(--text-on-primary);
    border-color: var(--primary);
    text-decoration: none;
}

.dark-mode-toggle i {
    font-size: 14px;
}

/* ========== GLOBAL MODERN OVERRIDES ========== */
body {
    font-family: var(--font-family) !important;
    background: var(--bg-body) !important;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 700;
    color: var(--text-primary);
}

a {
    color: var(--primary);
    transition: var(--transition);
}

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

::selection {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--text-primary);
}

/* ========== MODERN CARDS ========== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    overflow: hidden;
    background: var(--bg-card);
    margin-bottom: 24px;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

.card-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 20px;
}

/* Statistic Cards */
.card-statistic-1 {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.card-statistic-1 .card-icon {
    border-radius: var(--border-radius);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
}

.card-statistic-1:hover .card-icon {
    transform: scale(1.1);
}

.card-statistic-1 .card-body {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-statistic-1 .card-header h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ========== MODERN BUTTONS ========== */
.btn {
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    padding: 10px 20px;
    transition: var(--transition);
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-danger {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
}

.btn-success {
    background: var(--success) !important;
    border-color: var(--success) !important;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 14px;
}

.btn-round {
    border-radius: 50px;
}

.btn-icon-split {
    padding: 0;
    overflow: hidden;
}

.btn-icon-split .btn-icon {
    padding: 12px 16px;
}

.btn-icon-split .btn-text {
    padding: 12px 20px;
}

/* ========== MODERN BADGES ========== */
.badge {
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.3px;
    padding: 6px 12px;
    border-radius: 50px;
}

.badge-success {
    background: rgba(var(--success-rgb), 0.12);
    color: var(--success);
}

.badge-danger {
    background: rgba(var(--danger-rgb), 0.12);
    color: var(--danger);
}

.badge-warning {
    background: rgba(var(--warning-rgb), 0.12);
    color: var(--warning);
}

.badge-info {
    background: rgba(var(--info-rgb), 0.12);
    color: var(--info);
}

.badge-primary {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
}

.badge-light {
    background: var(--bg-badge-light);
    color: var(--text-muted);
}

/* ========== MODERN SIDEBAR ========== */
body .main-sidebar {
    background: #1e293b !important;
    transition: var(--transition);
}

body .sidebar-brand {
    background: #1e293b !important;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

body .sidebar-brand a {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: 0.5px;
}

body .sidebar-brand-sm a {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff !important;
}

body .sidebar-menu li.menu-header {
    color: rgba(255,255,255,0.5) !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 16px 16px 8px;
}

body .sidebar-menu li a {
    color: #e2e8f0 !important;
    border-radius: var(--border-radius-sm);
    margin: 2px 8px;
    padding: 10px 16px;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
    height: auto !important;
}

body .sidebar-menu li a:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.1) !important;
}

body .sidebar-menu li a i {
    font-size: 16px;
    width: 24px;
    text-align: center;
    margin-right: 8px;
    color: #94a3b8 !important;
}

body .sidebar-menu li a:hover i {
    color: #ffffff !important;
}

body .sidebar-menu li.active > a {
    color: #ffffff !important;
    background: #4f46e5 !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

body .sidebar-menu li.active > a i {
    color: #ffffff !important;
}

/* Fix Stisla defaults that override sidebar colors */
body .main-sidebar .sidebar-menu li a {
    color: #e2e8f0 !important;
    background-color: transparent !important;
}

body .main-sidebar .sidebar-menu li a:hover {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.1) !important;
}

body .main-sidebar .sidebar-menu li.active a,
body .main-sidebar .sidebar-menu li.active > a {
    color: #ffffff !important;
    background-color: var(--primary) !important;
}

body .main-sidebar .sidebar-menu li.menu-header {
    color: rgba(255,255,255,0.5) !important;
}

body .main-sidebar .sidebar-menu li ul.dropdown-menu li a {
    color: #e2e8f0 !important;
}

body .main-sidebar .sidebar-menu li ul.dropdown-menu li a:hover {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.1) !important;
}

body .main-sidebar .sidebar-menu li ul.dropdown-menu li.active > a {
    color: #ffffff !important;
}

body .main-sidebar .sidebar-menu li a i {
    color: #94a3b8 !important;
}

body .main-sidebar .sidebar-menu li a:hover i {
    color: #ffffff !important;
}

body .main-sidebar .sidebar-menu li.active a i {
    color: #ffffff !important;
}

/* Sidebar mini mode (collapsed) */
body.sidebar-mini .main-sidebar .sidebar-menu li a {
    color: #e2e8f0 !important;
}

body.sidebar-mini .main-sidebar .sidebar-menu li.active a {
    color: #ffffff !important;
    background-color: var(--primary) !important;
}

/* Layout-2 mode */
body.layout-2 .main-sidebar .sidebar-menu li a {
    color: #e2e8f0 !important;
}

body.layout-2 .main-sidebar .sidebar-menu li.active a {
    color: #ffffff !important;
    background-color: var(--primary) !important;
}

/* Sidebar style variations */
body:not(.sidebar-mini) .sidebar-style-1 .sidebar-menu li.active a,
body:not(.sidebar-mini) .sidebar-style-2 .sidebar-menu > li.active > a {
    color: #ffffff !important;
    background-color: var(--primary) !important;
}

/* ========== MODERN NAVBAR ========== */
.main-navbar {
    background: var(--bg-navbar) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 0 16px;
}

.navbar-bg {
    background: var(--bg-navbar) !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link-user img {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.nav-link-user:hover img {
    border-color: var(--primary);
}

/* ========== MODERN FORMS ========== */
.form-control {
    border-radius: var(--border-radius-sm);
    border: 1.5px solid var(--border-color);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-input);
    height: 44px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
    background: var(--bg-card);
}

.form-control-label,
label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.invalid-feedback {
    font-size: 12px;
}

/* Custom checkbox */
.custom-control-label {
    font-weight: 500;
    color: var(--text-secondary);
}

/* ========== SECTION HEADER ========== */
.section-header {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.section-header h1 i {
    color: var(--primary);
    margin-right: 8px;
}

.section-body {
    padding: 0;
}

/* ========== MODERN ALERTS ========== */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-sm);
}

.alert-has-icon {
    padding-left: 16px;
}

.alert-icon {
    font-size: 20px;
}

.alert-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

/* ========== MODERN TABLES ========== */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 0;
}

.table thead th {
    background: var(--bg-sidebar-hover);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 12px 16px;
}

.table td {
    padding: 12px 16px;
    vertical-align: middle;
    border-color: var(--border-color);
    font-size: 14px;
    color: var(--text-primary);
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(0,0,0,0.015);
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255,255,255,0.02);
}

.table td:hover {
    background: rgba(var(--primary-rgb), 0.03);
}

/* ========== MODERN LIST ITEMS ========== */
.list-unstyled-border .media {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.list-unstyled-border .media:last-child {
    border-bottom: none;
}

.media-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.media-title a {
    color: var(--primary);
}

.media-title a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ========== MODERN SUMMARY ========== */
.summary-info h3 {
    font-weight: 700;
    font-size: 24px;
}

.summary-info h4 {
    font-size: 18px;
    font-weight: 600;
}

/* ========== MODERN FOOTER ========== */
.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 12px 24px;
    font-size: 13px;
    color: var(--text-muted);
    transition: var(--transition);
}

/* ========== LOGIN / REGISTER MODERN ========== */
.login-brand {
    text-align: center;
    margin-bottom: 24px;
}

.login-brand img {
    border-radius: 50%;
    border: 3px solid var(--border-color);
    transition: var(--transition);
    margin-bottom: 12px;
}

.login-brand img:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.login-brand div {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-primary .card-header {
    background: var(--primary);
    color: var(--text-on-primary);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 16px 20px;
}

.card-primary .card-header h4 {
    color: var(--text-on-primary);
    margin: 0;
    font-weight: 700;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ========== PLACEHOLDER ========== */
::placeholder {
    font-size: 0.9em;
    font-family: var(--font-family);
    color: var(--text-muted) !important;
}

/* ========== TEXTAREA ========== */
textarea.rowsize-sm { height: 80px !important; }
textarea.rowsize-md { height: 128px !important; }
textarea.rowsize-lg { height: 256px !important; }

/* ========== SELECT2 ========== */
.select2 {
    width: 100% !important;
}

/* ========== TOOLTIP ========== */
.tooltip-inner {
    max-width: 320px !important;
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
    font-size: 13px;
}

/* ========== PAGINATION ========== */
.pagination {
    border-radius: var(--border-radius);
    overflow: hidden;
    gap: 4px;
}

.page-link {
    border: none;
    border-radius: var(--border-radius-sm) !important;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 14px;
    transition: var(--transition);
}

.page-link:hover {
    background: var(--primary);
    color: var(--text-on-primary);
}

.page-item.active .page-link {
    background: var(--primary);
    color: var(--text-on-primary);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

/* ========== MODERN EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 15px;
    margin: 0;
}

/* ========== MODERN DROPDOWN ========== */
.dropdown-menu {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    margin-top: 8px;
}

.dropdown-item {
    border-radius: var(--border-radius-sm);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
}

.dropdown-item.has-icon i {
    margin-right: 8px;
    font-size: 14px;
}

.dropdown-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 8px 14px;
}

/* ========== MODERN PACE LOADING BAR ========== */
.pace .pace-progress {
    background: var(--primary) !important;
}

.pace .pace-progress-inner {
    background: rgba(var(--primary-rgb), 0.4) !important;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .section-header {
    animation: fadeInUp 0.4s ease-out;
}

/* ========== MODAL ========== */
.modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .section-header {
        padding: 16px 20px;
    }

    .section-header h1 {
        font-size: 16px;
    }

    .card-statistic-1 .card-body {
        font-size: 22px;
    }

    .sidebar-menu li a {
        padding: 10px 12px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ========== FIX SECTION HEADER DARK & LIGHT MODE ========== */
.section-header {
    background: var(--bg-card) !important;
    border-radius: var(--border-radius) !important;
    padding: 18px 24px !important;
    margin-bottom: 24px !important;
    box-shadow: var(--shadow-card) !important;
    border: 1px solid var(--border-color) !important;
}

.section-header h1 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: var(--text-primary) !important;
}

.section-header h1 i {
    color: var(--primary) !important;
    margin-right: 8px !important;
}

[data-theme= dark] .section-header {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme=dark] .section-header h1 {
    color: #38bdf8 !important;
}

[data-theme=dark] .section-header h1 i {
    color: #38bdf8 !important;
}

/* ========== BADGES HIGH CONTRAST DARK MODE ========== */
.badge-success {
    background-color: #10b981 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
}

.badge-warning {
    background-color: #f59e0b !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
}

.badge-info {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
}

.badge-primary {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
}

[data-theme= dark] .badge-success {
    background-color: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.4) !important;
}

[data-theme=dark] .badge-warning {
    background-color: #d97706 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.4) !important;
}

[data-theme=dark] .badge-info {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4) !important;
}

/* ========== HIGHLIGHT DASHBOARD SIDEBAR ITEM ========== */
.sidebar-menu li.menu-highlight-dashboard {
    margin: 8px 12px 14px 12px !important;
}

.sidebar-menu li.menu-highlight-dashboard a.nav-link {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.25s ease !important;
}

.sidebar-menu li.menu-highlight-dashboard a.nav-link i {
    color: #ffffff !important;
    font-size: 16px !important;
    margin-right: 10px !important;
}

.sidebar-menu li.menu-highlight-dashboard a.nav-link:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6) !important;
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%) !important;
}

[data-theme= dark] .sidebar-menu li.menu-highlight-dashboard a.nav-link {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
}
