
.floating-role-switcher {
    position: fixed;
    top: 125px;
    right: 20px;
    z-index: 9999; 
    display: flex;
    border-radius: 30px;
    background-color: var(--primary-color); 
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    padding: 5px;
    transition: all 0.3s ease;
    overflow: hidden;
}


.floating-role-switcher .role-option {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    color: #333; 
    text-decoration: none;
}

[data-bs-theme="dark"] .floating-role-switcher .role-option {
    color: white;
}


.floating-role-switcher .role-option.active {
    color: white;
}


.floating-role-switcher .role-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    margin-right: 8px;
}

[data-bs-theme="dark"] .floating-role-switcher .role-icon {
    background-color: rgba(255, 255, 255, 0.1);
}


.floating-role-switcher .role-text {
    font-weight: 500;
    font-size: 0.9rem;
}


.role-slider {
    position: absolute;
    height: calc(100% - 10px);
    top: 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
    z-index: 1;
}

body.role-professor .role-slider {
    left: 5px;
    width: calc(55% - 5px);
    background-color: var(--professor-color);
}

body.role-aluno .role-slider {
    left: calc(55%);
    width: calc(45% - 5px);
    background-color: var(--aluno-color);
}


.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}


@media (max-width: 768px) {
    .floating-role-switcher {
        top: auto;
        bottom: 20px;
        right: 20px;
    }
}