/* Sidebar Toggle Button */
.sidebar-toggle-btn {
    position: absolute;
    top: 20px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: var(--theme-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #18181b;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.sidebar-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.5);
}

.sidebar.collapsed .sidebar-toggle-btn {
    transform: rotate(180deg);
}

/* Collapsed Sidebar State */
.sidebar.collapsed {
    width: 80px;
    padding: 2.5rem 0.5rem;
}

.sidebar.collapsed .logo {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

.sidebar.collapsed #sidebar-title {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
}

.sidebar.collapsed nav ul li a {
    justify-content: center;
    padding: 0.8rem 0;
}

.sidebar.collapsed nav ul li a .sidebar-text,
.sidebar.collapsed nav ul li a::after {
    /* Hide arrow indicators if any */
    display: none;
}

.sidebar.collapsed nav ul li a .sidebar-icon {
    margin-right: 0;
    font-size: 1.2rem;
}

/* Submenus in collapsed state - Hide them or make them popovers? 
   For simplicity in V1, we hide submenus in collapsed mode 
   or allow hover if we had a complex implementation. 
   Right now, hiding text makes submenus unusable if they are just indented logic.
   Let's ensure they are hidden or handled gracefully.
*/
.sidebar.collapsed .submenu {
    display: none;
}

/* Body adjustment */
body.sidebar-collapsed {
    padding-left: 80px;
}

/* Sidebar Icon Styling */
.sidebar-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 1.1rem;
    flex-shrink: 0;
}