.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(33, 33, 33, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
}

.sidebar.active ~ .sidebar-overlay {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 330px;
    height: 100vh;
    background-color: var(--color-white-1);
    z-index: 999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        right: -100%;
    }
}

.sidebar.active {
    right: 0;
}

.sidebar-header{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-white-2);
    padding: 26px 14px;
}

.sidebar-user {
    display: flex;
    align-items: flex-start;
}

.sidebar-initials{
    width: 41px;
    height: 41px;
    font-weight: 500;
    font-family: Roboto;
    background-color: var(--color-white-1);
    box-shadow: 0px 0px 10px 0px #00000040;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.sidebar-data{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-fullName{
    font-weight: 600;
    font-family: Roboto;
    padding-bottom: 3px;
}

.sidebar-fullName, .sidebar-email{
    display: block;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    padding-left: 8px;
}

.close-btn {
    background: none;
    border: none;
    position: absolute;
    top: 25px;
    right: 24px;
}

.openSidebar {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--color-white-1);
    padding: 0;
}

.arrow {
    transition: transform 0.3s ease;
}

.arrow.rotated {
    transform: rotate(180deg);
}

.openSidebar span {
    margin-left: 7px;
    margin-right: 6px;
    font-size: 14px;
    font-family: Roboto;
    font-weight: 400;
}

.sidebar-content{
    padding: 0 16px 16px;
    flex: 1;
}

.sidebar-title{
    font-size: 13px;
    font-weight: 500;
    font-family: Roboto;
    color: var(--color-blue-1);
    margin-top: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.btn-sidebar-appointment {
    width: 100%;
    border-radius: 20px;
    background-color: var(--color-purple-3);
    font-size: 14px;
    font-family: Roboto;
    font-weight: 400;
    padding: 10px 0;
    color: var(--color-white-1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-sidebar-appointment:focus-visible {
    outline: 2px solid var(--color-white-1);
    outline-offset: -2px;
    box-shadow: 0 0 0 2px var(--color-blue-2);
}

.btn-sidebar-appointment a {
    color: var(--color-white-1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-sidebar-appointment:hover{
    background-color: var(--color-purple-6);
}

.btn-sidebar-appointment:not(:last-of-type){
    margin-bottom: 12px;
}

.btn-sidebar-appointment-quantity{
    color: var(--color-black-1);
    font-size: 15px;
    font-weight: 400;
    font-family: Roboto;
    margin-bottom: 14px;
    margin-top: 14px;
    padding: 10px 8px;
}

.btn-sidebar-text{
    text-align: left;
    color: var(--color-black-1);
    font-size: 15px;
    font-weight: 400;
    font-family: Roboto;
    margin-bottom: 10px;
    padding: 10px 8px;
}

.visits-quantity-info{
    color: var(--color-black-3);
    background-color: var(--color-purple-1);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 400;
    font-family: Roboto;
    display: none;
    padding: 0 10px;
    position: absolute;
    right: 16px;
}

.sidebar hr{
    height: calc(3px/2);
    border: none;
    background-color: var(--color-white-3);
}

.sidebar-hr{
    margin-top: 24px;
}

.sidebar-help a{
    color: var(--color-black-1);
    font-size: 15px;
    font-weight: 400;
    padding: 10px 8px;
    font-family: Roboto;
    margin-top: 13px;
}

.sidebar-help a:not(:last-of-type){
    margin-top: 11px;
}

.sidebar-logout{
    color: var(--color-bordo-1) !important;
}

.btn-sidebar-text:hover,
.btn-sidebar-appointment-quantity:hover,
.sidebar-help a:hover {
    background-color: var(--color-white-2);
    border-radius: 4px;
    color: var(--color-black-1);
}

.btn-sidebar-text.active , .btn-sidebar-appointment-quantity.active  {
    background-color: var(--color-white-2);
    border-radius: 4px;
    color: var(--color-black-1);
}

.sidebar-help img,
.sidebar-logout img,
.btn-sidebar-text img,
.btn-sidebar-appointment-quantity img{
    padding-right: 12px;
}

.sidebar-footer{
    background-color: var(--color-white-2);
    width: 100%;
    color: var(--color-black-3);
    font-size: 13px;
    font-family: Roboto;
    padding: 10px 0;
    align-items: center;
    justify-content: center;
}
