.main-container {
    position: relative;
    transition: margin-left 0.3s ease;
}

.sidebar-hidden {
    padding-top: 16rem;
    position: fixed;
    left: -30rem;
    top: 0;
    width: 30rem;
    height: 100vh;
    background-color: rgba(145, 168, 243, 0.233) !important;
    backdrop-filter: blur(0.8rem);
    -webkit-backdrop-filter: blur(0.8rem);
    z-index: 1020;
    overflow-y: auto;
    transition: left 0.3s ease;
}

.sidebar-visible {
    left: 0;
}

.content-full {
    width: 100%;
    transition: margin-left 0.3s ease;
}

.content-shifted {
    margin-left: 30rem;
}

.sidebar-toggle-btn {
    position: relative;
    z-index: 1040;
    background-color: rgba(145, 168, 243, 0.233) !important;
    backdrop-filter: blur(0.8rem);
    -webkit-backdrop-filter: blur(0.8rem);
    color: white;
    border: none;
    border-radius: 50%;
    width: 4.5rem;
    height: 4.5rem;
    font-size: 2.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0.2rem 1rem rgba(0,0,0,0.2);
    margin-right: 1rem;
}

.sidebar-toggle-btn:hover {
    transform: scale(1.1);
    background-color: rgba(212, 145, 243, 0.3) !important;
}

.sidebar-toggle-btn:focus {
    outline: 0.1rem solid transparent;
    outline-offset: 0.3rem;
}

.sidebar-toggle-btn.active {
    background-color: rgba(212, 145, 243, 0.4) !important;
    transform: rotate(90deg);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.main-content::before {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 100%;
    z-index: 990;
    background: transparent;
}

@media (max-width: 768px) {
    .sidebar-hidden {
        width: 25rem;
        left: -25rem;
    }
    
    .content-shifted {
        margin-left: 0;
    }
    
    .sidebar-toggle-btn {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
        margin-right: 0.5rem;
    }
    
    .navbar .container {
        display: flex;
        align-items: center;
    }
    
    .sidebar-toggle-btn {
        order: 1;
    }
    
    .navbar-brand {
        order: 2;
        flex-grow: 1;
        text-align: center;
        margin: 0;
    }
    
    .navbar-toggler {
        order: 3;
    }
}

@media (max-width: 576px) {
    .sidebar-toggle-btn {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.8rem;
    }
}