@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #e3e9f7;
    overflow-y: auto;
}

body.sidebar-open {
    overflow: hidden;
}

main {
    padding: 20px;
    margin-left: 82px;
}

main #titulo {
    font: normal bold 2em serif;
}

main #conteudo {
    font: normal bold 1.3em Arial, sans-serif;
}

#sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    
    width: 82px;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    border-radius: 0px 18px 18px 0px;

    transition: width .4s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);

    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#sidebar_content {
    padding: 12px;
}

#user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

#user_avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 20px;
}

#user_infos {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#user_infos span:last-child {
    color: #6b6b6b;
    font-size: 12px;
}

#side_items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.side-item {
    border-radius: 10px;
    padding: 12px;
    width: 100%;
    cursor: pointer;
}

.side-item.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.side-item:hover:not(.active),
#logout_btn:hover {
    background-color: #e3e9f7;
}

.side-item a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    color: #0a0a0a;
}

.side-item.active a {
    color: #e3e9f7;
}

.side-item a i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

#logout {
    border-top: 1px solid #e3e9f7;
    padding: 12px;
}

#logout_btn {
    border: none;
    padding: 12px;
    font-size: 14px;
    display: flex;
    gap: 5px;
    align-items: center;
    border-radius: 8px;
    text-align: start;
    cursor: pointer;
    background-color: transparent;
}

#open_btn {
    position: fixed;
    top: 30px;
    left: 82px;
    transform: translateX(-50%);

    background-color: #4f46e5;
    color: #e3e9f7;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    border: none;
    cursor: pointer;

    z-index: 1100;
    transition: left .4s ease;
}

#open_btn_icon {
    transition: transform .3s ease;
}

#sidebar.open-sidebar ~ #open_btn #open_btn_icon {
    transform: rotate(180deg);
}

.item-description {
    width: 0px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    transition: width .6s;
}

#sidebar.open-sidebar {
    width: 190px;
}

#sidebar.open-sidebar .item-description {
    width: 110px;
    height: auto;
}

#sidebar:not(.open-sidebar) .side-item a {
    justify-content: center;
}

#sidebar.open-sidebar .side-item a {
    justify-content: flex-start;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);

    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;

    z-index: 999;
}

#overlay.active {
    opacity: 1;
    pointer-events: all;
}

#sidebar.open-sidebar ~ #open_btn {
    left: 190px;
}