.admin-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    transition: margin-left 0.3s ease;
    background-color: #e3e3e3;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1e2a38;
    color: white;
    padding: 15px 30px;
    height: 70px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: position 0.3s ease, top 0.3s ease, background-color 0.3s ease, left 0.3s ease;
    &.scrolled {
        position: fixed;
        top: 0;
        width: 100%;
        background-color: #162230;
    }
    &.header-collapsed {
        left: 0px;
    }
}

.logo {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo h4 {
    margin-right: 8px;
}

.sidebar {
    background-color: #2c3e50;
    color: white;
    height: calc(100vh - 70px);
    transition: width 0.3s ease, transform 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 70px;
    left: 0;
    z-index: 900;
    overflow-y: auto;
    width: 260px;
    &.collapsed {
        transform: translateX(-100%);
        width: 0;
    }
    ul {
        list-style: none;
        padding: 0;
        margin: 0;
        li {
            padding: 15px 20px;
            a {
                text-decoration: none;
                color: white;
                display: block;
                transition: color 0.3s ease, padding-left 0.3s ease;
            }
        }
    }
}

.content {
    flex: 1;
    padding: 25px;
    transition: margin-left 0.3s ease;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin: 20px;
    margin-top: 35px;
    overflow-y: scroll;
    margin-left: 290px;
    overflow-x: hidden;
    &.sidebar-collapsed {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 0;
        transform: translateX(0%);
        position: fixed;
        top: 70px;
    }
    .sidebar.collapsed {
        transform: translateX(0);
        /* Show sidebar */
        width: 260px;
        /* Restore full width */
    }
    .content {
        margin-left: 0;
        /* Reset margin */
    }
}