/* ---------------------------------------------------------------------- */
/* Accessibility Sidebar Styles */
/* ---------------------------------------------------------------------- */

.accessibility-sidebar {
    position: fixed;
    right: -20px;
    top: 80px;
    width: 60px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    padding: 15px 10px;
    z-index: 1000 !important;
    pointer-events: auto !important;
    border-radius: var(--borderRadius);
    background: var(--whiteColor);
    box-shadow: var(--boxShadow);
}

.accessibility-sidebar a,
.accessibility-sidebar button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primaryColor);
    color: var(--whiteColor);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.accessibility-sidebar a:hover,
.accessibility-sidebar button:hover {
    background: #002277;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.accessibility-sidebar button.active {
    background: #1a5c1a;
    box-shadow: 0 0 10px rgba(26, 92, 26, 0.5), inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.accessibility-sidebar button.active:hover {
    background: #228b22;
}

.accessibility-sidebar i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* VLibras Container */
.vlibras-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 30%;
    max-width: 500px;
    height: auto;
    z-index: 999;
    background: var(--boxColor);
    border-radius: var(--borderRadius);
    box-shadow: var(--boxShadow);
    padding: 15px;
    margin: 15px;
}

.vlibras-container iframe,
.vlibras-container embed {
    width: 100% !important;
    height: auto !important;
    min-height: 300px;
}

/* Close button for VLibras */
.vlibras-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--redColor);
    color: var(--whiteColor);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.vlibras-close:hover {
    background: darkred;
}

/* Contraste CSS - High contrast theme */
body.contrast-mode {
    --primaryColor: #000;
    --bgColor: #ffffff;
    --fontColor: #000;
    --boxColor: #f0f0f0;
    --whiteColor: #ffffff;
    --redColor: #ff0000;
    --grayColor: #e0e0e0;
    --gray2Color: #999;
    --gray3Color: #d0d0d0;
    --boxShadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

body.contrast-mode {
    background-color: #ffffff !important;
    color: #000 !important;
}

body.contrast-mode * {
    border-color: #000 !important;
}

body.contrast-mode a {
    color: #000 !important;
}

body.contrast-mode button {
    color: #000 !important;
    background-color: #f0f0f0 !important;
    border: 2px solid #000 !important;
}

body.contrast-mode button:hover {
    background-color: #e0e0e0 !important;
}

body.contrast-mode .accessibility-sidebar a,
body.contrast-mode .accessibility-sidebar button {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

body.contrast-mode .accessibility-sidebar a:hover,
body.contrast-mode .accessibility-sidebar button:hover {
    background: #333 !important;
}

body.contrast-mode .vlibras-container {
    background: #fff !important;
    border: 3px solid #000 !important;
    color: #000 !important;
}

body.contrast-mode footer {
    background-color: #f0f0f0 !important;
    color: #000 !important;
    border-top: 3px solid #000 !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    #vlibras {
        display: none;
    }

    .accessibility-sidebar {
        position: fixed;
        top: auto;
        bottom: -1px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 400px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 10px;
        background: var(--whiteColor);
        border-top: 2px solid var(--grayColor);
        border-radius: 15px 15px 0 0;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
    }

    .accessibility-sidebar a,
    .accessibility-sidebar button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .vlibras-container {
        width: 90%;
        max-width: 100%;
        height: auto;
        bottom: 20px;
        top: auto;
        right: 5%;
        left: auto;
    }
}
