/* Navigation Styles */
.sidebar {
    width: 270px;
    background-color: #002147; /* Darker blue */
    color: var(--white);
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 100; /* Lower z-index so footer can be above when needed */
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    margin-bottom: 1rem;
}

.logo-icon {
    color: #d4af37; /* Gold color */
    font-size: 2rem;
    margin-right: 0.8rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.search-box {
    position: relative;
    margin: 1rem 0;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

.nav-menu {
    list-style: none;
    padding: 0;
}

.nav-item {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.nav-link i {
    margin-right: 1rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-dropdown {
    background: rgba(0, 0, 0, 0.2);
    padding: 0;
    display: none;
}

.nav-dropdown.show {
    display: block;
}

.nav-dropdown .nav-link {
    padding-left: 3.5rem;
}

.nav-link .arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.nav-link.active .arrow {
    transform: rotate(180deg);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1001; /* Higher z-index when mobile menu is active */
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1002;
        background: none;
        border: none;
        color: var(--text-color);
        font-size: 1.5rem;
        cursor: pointer;
    }
}

/* Theme Switch */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 1rem 1.5rem;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #d4af37;
}

input:checked + .slider:before {
    transform: translateX(26px);
} 