
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px;
    height: 100vh;
    background-color: var(--surface-elevated);
    z-index: 99901;
    transition: transform 0.3s ease-in-out;
}

.sidebar.collapsed {
    transform: translateX(-100%); /* Move sidebar to the left */
}

@media only screen and (max-width: 650px) {
    .sidebar {
        width: 90%;
        min-width: 280px;
    }

    .sidebar.collapsed {
        transform: translateX(-100%);
    }
}

.hidden {
    display: none;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--surface-overlay);
    z-index: 1000; /* logo abaixo do sidebar (1001) */
}

.icon {
    position: fixed;
    top: 16px; /* Position at the top for visibility */
    left: 300px; /* Initially positioned to the right of the sidebar */
    width: 30px;
    height: 30px;
    background-image: url('../images/expand.png');
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: left 0.3s ease-in-out;
    z-index: 5001;
}

/* Change background image on hover */
.icon:hover {
    background-image: url('../images/expand_on.png');
}

.icon.collapsed {
    left: 12px;
}

.sidebar.collapsed + .sidebar-collapse .icon {
    z-index: 5001;
    left: 0; /* Move icon to the screen's edge when sidebar is collapsed */
}

.welcome-text{
    padding-top: 5px;
    margin-left: 14px;
    color: var(--primary-color);
}

@media only screen and (max-width: 800px) {
    .welcome-text{
        font-size: 24px !important;
    }
}

@media only screen and (min-width: 800px) {
    .welcome-text{
        font-size: 24px !important;
    }

    .sidebar-collapse{
        display: none;
    }
}
