/*testing*/
.sidebarr {
    /* Set a fixed height if you want it to scroll independently, or use min-vh-100 */
    /* Example: min-vh-100 from HTML helps it fill height */
    position: sticky; /* Keep it in view during content scroll */
    top: 0; /* Adjust if you have a sticky header */
    height: 100vh; /* Make it take full viewport height */
    overflow-y: auto; /* Enable scrolling for sidebar content */
    overflow-x: hidden; /* Hide horizontal overflow, crucial for collapsed state */
    z-index: 1050; /* Ensure it stays on top */
    transition: all 0.3s ease; /* Smooth transition for width/transform */
}

/* --- MODIFIED CSS BASED ON SPECIFICATION --- */

/* Container for each nav item */
.sidebarr .nav-item {
    margin-bottom: 4px; /* Spacing between items */
}

/* Core styling for the clickable navigation link */
.sidebarr .nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;

    /* Spec: Font & Sizing */
    font-size: 16px;
    font-weight: 400; /* 'regular' */
    line-height: 24px;
    
    /* Spec: Layout & Spacing */
    padding: 8px 12px;
    border-radius: 4px;
    
    /* Spec: Default State */
    color: #5E6D7A;
    background-color: transparent;
}

/* Icon-specific styles */
.sidebarr .nav-link i {
    /* Spec: Icon Size & Spacing */
    font-size: 20px !important; /* Override Bootstrap's 'fs-4' */
    margin-right: 10px;
    color: inherit; /* Icon color matches text color */
}

/* Spec: Hover State */
.sidebarr .nav-link:hover:not(.active) {
    background-color: #E0F2FF;
    color: #5E6D7A; /* Text color remains the same */
}

/* Spec: Selected (Active) State */
.sidebarr .nav-link.active {
    background-color: #006DC0;
    color: #F9FAFB;
    font-weight: 400; /* Ensure font-weight stays 'regular' */
    box-shadow: none; /* Remove interfering shadows */
}

/* --- END OF MODIFIED CSS --- */


/* --- Manual Collapse (for desktop toggle button) --- */
.sidebarr.manual-collapsed {
    width: 60px !important; /* Force smaller width when manually collapsed */
    padding-left: 5px !important;
    padding-right: 5px !important;
}

.sidebarr.manual-collapsed .nav-item {
    text-align: center; /* Center icons when text is hidden */
}

.sidebarr.manual-collapsed .nav-link {
    justify-content: center; /* Center icons */
    padding: 10px 0 !important; /* Adjust padding for collapsed items */
}

.sidebarr.manual-collapsed .nav-link i {
    margin-right: 0 !important; /* Remove margin */
}

.sidebarr.manual-collapsed .nav-link span {
    display: none !important; /* Hide text label */
}

/* --- Content Areas --- */
.content-area {
    display: none; /* Initially hide all content areas */
}

.content-area:first-child {
    display: block; /* Show the first content area by default */
}

/* --- Overlay for Mobile Sidebar (when it slides out) --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    /*z-index: 1049; *//* Just below the sidebar */
    display: none;
}

.overlay.active {
    display: block;
}

/* --- Scrollbar Styling --- */
.sidebarr::-webkit-scrollbar {
    width: 6px;
    background-color: transparent;
}

.sidebarr::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.sidebarr::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

.sidebarr::-webkit-scrollbar-track {
    background-color: #f8f9fa; /* Match .sidebarr background */
}


/******************************************************************************bootstrp 5 *************************************************

/* --- Custom Toggle Button Styling --- */
.custom-toggle-button {
    width: fit-content;
    margin: 0 auto 1rem auto;
    display: block;
    border: 1px solid #ccc;
    background: transparent;
    padding: 6px 12px;
}

/* --- MODIFIED: Explicitly set icon color for default state and hover --- */
.custom-toggle-button i {
    color: #333; /* Dark gray for the icon by default */
    transition: transform 0.3s ease, color 0.2s ease; /* Add color to transition */
}

.custom-toggle-button:hover i {
    color: #007bff; /* Blue on hover */
}

/* --- MODIFIED: Ensure no rotation for hamburger/X icons --- */
/* This is crucial to prevent unintended transformations on these icons */
.custom-toggle-button .bi-list,
.custom-toggle-button .bi-x {
    transform: none !important; /* No rotation for hamburger/X icons */
}
/* Ensure the desktop chevron icon rotates correctly */
.sidebarr:not(.manual-collapsed) .custom-toggle-button .bi-chevron-left {
    transform: rotate(0deg); /* Chevron points left when open */
}
.sidebarr.manual-collapsed .custom-toggle-button .bi-chevron-right {
    transform: rotate(180deg); /* Chevron points right when collapsed */
} 
/*.tmp-main-left-navigation {
position: fixed;
top: 130px;
background: #fff;
}*/