/*
*****************************************************
BOTÃO FLUTUANTE ACESSIBILIDADE
*****************************************************
*/



/* --- CSS DO WIDGET FLUTUANTE --- */
.accessibility-fab-container {
    position: fixed;
    top: 48%;
    left: 10px;
    z-index: 1060;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;

}

/* Botão Principal */
.fab-main {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    /* Cor do tema */
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessibility-fab-container:hover .fab-main {
    transform: rotate(360deg);
}

/* Opções (Escondidas por padrão) */
.fab-options {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Mostrar opções ao passar o mouse no container */
.accessibility-fab-container:hover .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Botões Menores */
.fab-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: white;
    color: #333;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    position: relative;
    /* Para o tooltip */
}

.fab-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Tooltip CSS puro (Aparece ao lado) */
.fab-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 55px;
    /* Joga para a direita */
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    pointer-events: none;
}

.fab-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* --- MODO ALTO CONTRASTE (ROBUSTO) --- */
/* Usa !important para garantir que sobrescreva o Bootstrap */

body.high-contrast {
    background-color: #000 !important;
    color: #ffff00 !important;
    /* Amarelo Padrão Acessibilidade */
}

body.high-contrast * {
    background-color: transparent !important;
    color: inherit !important;
    border-color: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
    background-image: none !important;
}

/* Re-aplicar fundo preto em containers principais para não ficar transparente sobre nada */
body.high-contrast header,
body.high-contrast nav,
body.high-contrast footer,
body.high-contrast section,
body.high-contrast .card,
body.high-contrast .modal-content,
body.high-contrast .dropdown-menu {
    background-color: #000 !important;
    border: 1px solid #fff !important;
}

/* Links e Botões no Alto Contraste */
body.high-contrast a {
    color: #00ffff !important;
    /* Ciano para links */
    text-decoration: underline !important;
}

body.high-contrast .btn {
    border: 2px solid #ffff00 !important;
    color: #ffff00 !important;
    background-color: #000 !important;
}

body.high-contrast .btn:hover {
    background-color: #333 !important;
}

/* Inputs */
body.high-contrast input,
body.high-contrast select,
body.high-contrast textarea {
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
}

/* Imagens */
body.high-contrast img {
    filter: grayscale(100%) contrast(150%);
}

/* Exceção para o próprio Widget para ele não sumir */
body.high-contrast .accessibility-fab-container * {
    border-color: #ffff00 !important;
}

body.high-contrast .fab-main {
    background-color: #ffff00 !important;
    color: #000 !important;
}

/*
*****************************************************
FIM BOTÃO FLUTUANTE ACESSIBILIDADE
*****************************************************
*/


/*
*****************************************************
HEADER ACESSIBILIDADE
*****************************************************
*/

/* CSS DA BARRA SUPERIOR */
.access-top-bar {
    background-color: var(--primary);
    /* Slate 800 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 5px 0;
    font-size: 0.75rem;
    position: relative;
    z-index: 1050;
}

.access-keys a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.2s;
}

.access-keys a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.badge-key {
    background: rgba(255, 255, 255, 0.15);
    padding: 0 4px;
    border-radius: 3px;
    font-size: 0.65rem;
    margin-left: 3px;
}

.access-actions-top {
    display: flex;
    align-items: center;
    gap: 5px;
}

.access-actions-top .label {
    color: #ffffff;
    margin-right: 5px;
}

.access-actions-top button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.access-actions-top button:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white !important;
}


/*
*****************************************************
FIM HEADER ACESSIBILIDADE
*****************************************************
*/