:root {
    --fivi-blue: #00205B;
    --fivi-gold: #C5A017;
    --fivi-white: #FFFFFF;
    --fivi-light-grey: #F4F4F4;
    --fivi-font-heading: 'Montserrat', sans-serif;
    --fivi-font-body: 'Open Sans', sans-serif;
}

/* Sidebar Styles */
.sidebar {
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, var(--fivi-blue) 0%, #003d8a 100%);
    color: white;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out; /* Add transition for smoothness */
}

.sidebar-header {
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid var(--fivi-gold);
    flex-shrink: 0;
}

.sidebar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: block;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--fivi-gold) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar-nav li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--fivi-gold);
    border-left-color: var(--fivi-gold);
}

.sidebar-nav li a i {
    width: 25px;
    text-align: center;
    margin-right: 0.5rem !important;
}

.sidebar-footer {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sidebar-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: block;
}

/* [NEW] Mobile & Responsive Fixes (Global) */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 4px 0 10px rgba(0,0,0,0.2);
    }

    /* Override inline styles in modules */
    .main-content {
        margin-left: 0 !important;
        padding: 1rem !important;
        width: 100% !important;
    }
}
