/* resources/css/custom-sidebar.css */

/* Custom Sidebar Styling - Highly Professional (Borgogna & Gold) */

:root {
    --sidebar-bg-color: #3b0918; /* Deep Burgundy */
    --sidebar-text-color: #f8f9fa;
    --sidebar-hover-bg: #5a1125; /* Lighter Burgundy for hover */
    --gold-accent: #d4af37; /* Professional Gold */
    --gold-accent-hover: #b5952f;
}

/* Sidebar Background */
.fi-sidebar {
    background-color: var(--sidebar-bg-color) !important;
    border-right: 1px solid rgba(212, 175, 55, 0.2) !important; /* Subtle gold border */
}

/* Dark mode overrides (if the user toggles dark mode, keep the sidebar elegant) */
.dark .fi-sidebar {
    background-color: #24040d !important; /* Even deeper burgundy in dark mode */
}

/* Sidebar Header / Logo area */
.fi-sidebar-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
}

/* Sidebar Navigation Items */
.fi-sidebar-item-button {
    color: var(--sidebar-text-color) !important;
    transition: all 0.3s ease !important;
    border-radius: 0.5rem !important;
    margin: 0.125rem 0.5rem !important;
    padding: 0.625rem 0.75rem !important;
}

.fi-sidebar-group-label {
    color: var(--gold-accent) !important; /* Groups in Gold */
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    font-family: "Playfair Display", serif !important;
    opacity: 0.9 !important;
}

/* Sidebar Item Icons */
.fi-sidebar-item-icon {
    color: rgba(248, 249, 250, 0.7) !important; /* Light icon color */
    transition: color 0.3s ease !important;
}

/* Active State */
.fi-sidebar-item-active > button,
.fi-sidebar-item-active > a {
    background-color: var(--gold-accent) !important;
    color: #1a1a1a !important; /* Dark text on gold backgound for contrast */
    box-shadow:
        0 4px 6px -1px rgba(212, 175, 55, 0.3),
        0 2px 4px -1px rgba(212, 175, 55, 0.2) !important;
}

.fi-sidebar-item-active .fi-sidebar-item-icon {
    color: #1a1a1a !important;
}

/* Hover State */
.fi-sidebar-item-button:hover:not(.fi-sidebar-item-active) {
    background-color: var(--sidebar-hover-bg) !important;
    transform: translateX(4px) !important; /* Subtle slide effect */
}

.fi-sidebar-item-button:hover:not(.fi-sidebar-item-active)
    .fi-sidebar-item-icon {
    color: var(--gold-accent) !important; /* Icon turns gold on hover */
}

/* Customizing scrollbar for webkit */
.fi-sidebar-nav::-webkit-scrollbar {
    width: 6px;
}
.fi-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.fi-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}
.fi-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.7);
}
