
.theme-customizer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -3px 0 10px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: right 0.3s ease-in-out;
    padding: 20px;
    overflow-y: auto;
    color: #566a7f;
}

[data-theme="dark"] .theme-customizer {
    background-color: #1e2440;
    color: #e5e7eb;
}

.theme-customizer.open {    
    right: 0;
}

.customizer-toggle {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: var(--primary-color, #ADB7FF);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .customizer-toggle {
    background: linear-gradient(135deg, #A12428, #E4B119) !important;
}

.customizer-toggle i {
    font-size: 24px;
    animation: spin-slow 4s linear infinite;
}

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

.customizer-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
}

.customizer-section {
    margin-top: 25px;
    border-top: 1px solid #d9dee3;
    padding-top: 15px;
}

[data-theme="dark"] .customizer-section {
    border-top-color: #2a3050;
}

.color-palette {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.color-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.color-swatch:hover {
    transform: scale(1.12);
}

.color-swatch.active {
    border: 3px solid #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.15);
}

[data-theme="dark"] .color-swatch.active {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

.palette-trigger {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.palette-trigger:hover {
    background: #f3f4f6;
    transform: scale(1.1);
}

[data-theme="dark"] .palette-trigger {
    border-color: #2a3050;
    color: #9ca3af;
}

.customizer-reset-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    transition: background 0.2s;
    padding: 0;
}

.customizer-reset-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

[data-theme="light"] .layout-menu .menu-inner .menu-item.active > .menu-link,
[data-theme="light"] .layout-menu .menu-inner .menu-item.active > .menu-link:not(.menu-toggle) {
    background: var(--primary-color, #ADB7FF) !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    border-radius: 8px !important;
}

[data-theme="light"] .layout-menu .menu-inner .menu-item.active > .menu-link .menu-icon,
[data-theme="light"] .layout-menu .menu-inner .menu-item.active > .menu-link .menu-text,
[data-theme="light"] .layout-menu .menu-inner .menu-item.active > .menu-link i {
    color: #fff !important;
}

[data-theme="light"] .menu-link:hover {
    background: color-mix(in sRGB, var(--primary-color, #ADB7FF) 15%, transparent) !important;
    border-radius: 8px !important;
}


[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-success,
[data-theme="light"] .btn-dark,
[data-theme="light"] .custom-btn,
[data-theme="light"] button.custom-btn {
    background: var(--primary-color, #ADB7FF) !important;
    background-image: none !important;
    border-color: var(--primary-color, #ADB7FF) !important;
    color: #fff !important;
}

[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .btn-success:hover {
    filter: brightness(0.9);
}

[data-theme="light"] .pagination .page-item.active .page-link {
    background: var(--primary-color, #ADB7FF) !important;
    border-color: var(--primary-color, #ADB7FF) !important;
    color: #fff !important;
}

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

[data-theme="light"] .nav-link[data-bs-toggle="dropdown"] {
    background: var(--primary-color, #ADB7FF) !important;
    border-color: var(--primary-color, #ADB7FF) !important;
    color: #fff !important;
    border-radius: 20px;
}


[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-success,
[data-theme="dark"] .btn-dark,
[data-theme="dark"] .custom-btn,
[data-theme="dark"] button.custom-btn {
    background: linear-gradient(90deg, #A12428, #E4B119) !important;
    border: none !important;
    color: #fff !important;
}

[data-theme="dark"] .menu-item.active > .menu-link {
    background: linear-gradient(90deg, #A12428, #E4B119) !important;
    color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(161,36,40,0.35) !important;
}

[data-theme="dark"] .menu-item.active > .menu-link i,
[data-theme="dark"] .menu-item.active > .menu-link .menu-icon,
[data-theme="dark"] .menu-item.active > .menu-link .menu-text {
    color: #fff !important;
}

[data-theme="dark"] .nav-link[data-bs-toggle="dropdown"] {
    background: linear-gradient(90deg, #A12428, #E4B119) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 20px;
}

[data-theme="dark"] .pagination .page-item.active .page-link {
    background: linear-gradient(90deg, #A12428, #E4B119) !important;
    border: none !important;
    color: #fff !important;
}