/* Professional Navigation Menu Styles */

/* Main sidebar styling */
.sidebar {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-right: 1px solid #dee2e6 !important;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
}

/* Top navbar */
.top-row {
    background: linear-gradient(90deg, #343a40 0%, #495057 100%) !important;
    border-bottom: 2px solid #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.2rem;
    color: #ffffff !important;
}

/* Section headers */
.nav-section-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

/* Base nav link styling */
.nav-link {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    color: #495057 !important;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin-bottom: 2px;
}

.nav-link:hover {
    background-color: rgba(0, 123, 255, 0.05) !important;
    color: #007bff !important;
    border-left-color: #007bff;
    transform: translateX(2px);
}

.nav-link.active {
    font-weight: 500;
    background-color: rgba(0, 123, 255, 0.1) !important;
    color: #007bff !important;
    border-left-color: #007bff;
}

/* Admin-specific styling */
.admin-link {
    border-left: 3px solid transparent;
}

.admin-link:hover,
.admin-link.active {
    border-left-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
    transform: translateX(2px);
}

/* Commissioner-specific styling */
.commissioner-link {
    border-left: 3px solid transparent;
}

.commissioner-link:hover,
.commissioner-link.active {
    border-left-color: #28a745 !important;
    background-color: rgba(40, 167, 69, 0.1) !important;
    color: #28a745 !important;
    transform: translateX(2px);
}

/* Sub-menu styling */
.commissioner-sub-link {
    font-size: 0.85rem;
    padding-left: 3rem !important;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    color: #6c757d !important;
    background-color: rgba(248, 249, 250, 0.5);
    border-left: 3px solid transparent;
}

.commissioner-sub-link:hover {
    border-left-color: #6c757d !important;
    background-color: rgba(108, 117, 125, 0.1) !important;
    color: #495057 !important;
    transform: translateX(2px);
}

.commissioner-sub-link.active {
    border-left-color: #6c757d !important;
    background-color: rgba(108, 117, 125, 0.15) !important;
    color: #495057 !important;
    font-weight: 500;
}

/* Icon styling */
.nav-link span[class^="oi"] {
    width: 1.2rem;
    margin-right: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-link:hover span[class^="oi"],
.nav-link.active span[class^="oi"] {
    opacity: 1;
}

/* Mobile responsiveness */
@media (max-width: 767.98px) {
    .nav-section-header {
        margin-top: 0.5rem;
        margin-bottom: 0.25rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 0.7rem 1rem;
    }
    
    .commissioner-sub-link {
        padding-left: 2.5rem !important;
    }
}

/* Smooth transitions for collapsible menu */
.collapse {
    transition: all 0.3s ease;
}

/* Remove any existing colorful styling */
.nav-item {
    margin: 0 !important;
    background-color: transparent !important;
    border-radius: 0 !important;
}

/* Professional focus states for accessibility */
.nav-link:focus {
    outline: 2px solid #007bff;
    outline-offset: -2px;
}

/* Subtle animation for expand/collapse arrows */
.nav-link:hover {
    text-decoration: none;
}

/* Professional scrollbar for sidebar if needed */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}