/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 80px;
    /* Below the header */
    left: 0;
    bottom: 0;
    width: 250px;
    padding: 1rem 0.5rem;
    background-color: #0073AA;
    /* Primary Color */
    color: white;
    transition: width 0.3s ease-in-out, padding 0.3s ease-in-out;
    z-index: 900;
    /* Below header */
    overflow-x: hidden;
    white-space: nowrap;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-collapsed {
    width: 60px;
    padding: 1rem 0.5rem;
}

/* Content Area Styles */
.content {
    margin-left: 250px;
    margin-top: 80px;
    /* Push content down below header */
    padding: 2rem;
    transition: margin-left 0.3s ease-in-out;
    background-color: #E0EBF1;
    min-height: calc(100vh - 80px);
}

.content-collapsed {
    margin-left: 60px;
}

/* Toggle Button */
.toggle-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 1rem;
    outline: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-collapsed .toggle-btn {
    align-self: center;
}

/* Navigation Links/Buttons */
.nav-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 15px;
    text-align: left;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-btn.active {
    background-color: white;
    color: #0073AA;
    font-weight: bold;
}

/* Icons/Text handling */
.nav-icon {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
    color: white;
    /* Ensure icons are white */
}

.nav-btn.active .nav-icon {
    color: #0073AA;
    /* Active icon matches active text color */
}

.sidebar-collapsed .nav-text {
    display: none;
}

.sidebar-collapsed .nav-icon {
    margin-right: 0;
}

/* Header Styles (Enforce layout) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    height: 60px;
    margin-right: 20px;
}

.header-title {
    margin: 0;
    color: #0073AA;
    font-size: 1.5rem;
}

/* Hide Logo in sidebar if present (cleanup) */
.sidebar-logo {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 1rem 0.5rem;
    }

    .content {
        margin-left: 60px;
    }

    .nav-text,
    .sidebar-filters,
    .header-title {
        display: none;
    }

    .nav-icon {
        margin-right: 0;
    }

    .toggle-btn {
        display: none;
    }

    .header {
        justify-content: center;
    }

    .logo {
        margin-right: 0;
    }
}

/* Sidebar Filters */
.sidebar-filters {
    margin-top: 20px;
    transition: opacity 0.3s;
    opacity: 1;
    padding: 0 5px;
    /* slight padding */
}

.sidebar-collapsed .sidebar-filters {
    display: none;
    opacity: 0;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-label {
    display: block;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Ensure Dropdown Text is Black */
.sidebar-dropdown {
    color: black;
    font-size: 0.85rem;
}

/* Tweaks to ensure dropdown content is visible inside sidebar */
.sidebar-dropdown .Select-control {
    min-height: 30px;
}