
body {
    margin-left: 50px;
    margin-top: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
}
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 60px;
    background: #222;
    z-index: 1000;
    transition: width 0.3s;
    transition: background 0.3s;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar.expanded {
    width: 220px;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    width: 100%;
    transition: background 0.2s;
    background-color: #222;
    justify-content: center;
    border: none; 
}
.sidebar-toggle img {
    width: 32px;
    height: 32px;
    margin-right: 0;
    transition: margin 0.3s;
}
.sidebar-toggle:hover{
    background: #444;
    cursor: pointer;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    width: 100%;
    align-items: flex-start;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    width: 100%;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
    border-radius: 0px;
}

.sidebar-item:hover {
    background: #444;
}

.sidebar-item img {
    width: 32px;
    height: 32px;
    margin-right: 0;
    transition: margin 0.3s;
}

.sidebar-text {
    opacity: 0;
    margin-left: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    font-size: 1.1rem;
}

.sidebar.expanded .sidebar-text {
    opacity: 1;
    margin-left: 16px;
}

.sidebar.expanded .sidebar-item img {
    margin-right: 8px;
}

@media screen and (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: 10%;
        transition: height 0.3s;
        transition: width 0.3s;
        aspect-ratio: 1 / 1;
        background-color: transparent;
    }
    .sidebar.expanded {  
        width: 100%;
        height: 100%;
        background: #222;
    }
    .sidebar.expanded .sidebar-item {
        display: block;
    }
    .sidebar-item{
        display: none;
    }
    body{
        margin-left: 0;
    }

}

