/* =============================================================
   BOTÃO FLUTUANTE + PAINEL DE ACESSIBILIDADE (ESTILO CARD)
   ============================================================= */

/* ── Botão flutuante (canto superior esquerdo) ── */
#accessibility-trigger {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;
    background: #011522;
    color: #fff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    padding: 0;
    margin: -20px;
    line-height: 1;
}

#accessibility-trigger:hover {
    background: #26b9dc;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(38, 220, 196, 0.5);
}

#accessibility-trigger svg {
    width: 36px;
    height: 36px;
    display: block;
    fill: #fff;
    stroke: none;
}

#accessibility-trigger:hover svg {
    fill: #0b1c27;
}

/* ── Painel (card) ── */
#accessibility-panel {
    position: fixed;
    top: 70px;
    left: 10px;
    z-index: 9999;
    display: none;
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#accessibility-panel[aria-hidden="false"] {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── Estilo do card ── */
.card {
    width: 240px;          /* um pouco mais largo para acomodar os botões */
    background-color: #011522;
    border-radius: 12px;
    padding: 12px 16px 16px 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.08);
}

/* Bolinhas (tools) */
.tools {
    display: flex;
    align-items: center;
    padding: 0 0 10px 0;
    gap: 6px;
}

.circle {
    padding: 0;
}

.box {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background-color: #26b9dc;
}

.yellow {
    background-color: rgb(77, 191, 143);
}

.green {
    background-color: #7dbf4dff;
}

/* ── Conteúdo interno do card ── */
.card__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Botões de acessibilidade dentro do card */
.ac-font-controls {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.ac-panel-inner .ac-btn,
.card__content .ac-btn {
    color: #26b9dc;
    background: transparent;
    cursor: pointer;
    transition: ease-out 0.5s;
    border: 1px solid #26b9dc;
    border-radius: 10px;
    border-radius: 8px;
    padding: 8px 8px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
    flex: 1;
}

.card__content .ac-btn:hover,
.card__content .ac-btn:focus-visible {
    color: white;
  box-shadow: inset 0 -100px 0 0 #26b9dc;
}
.card__content .ac-btn:active{
    transform: scale(0.9);
}
.card__content .ac-btn[aria-pressed="true"] {
    background: #26b9dc;
    border-color: #26b9dc;
    color: #ffffff;
    font-weight: 700;
}

.card__content .ac-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.6);
}

/* Tamanhos das letras nos botões de fonte */
.ac-small {
    font-size: 11px;
    vertical-align: middle;
}
.ac-large {
    font-size: 20px;
    vertical-align: middle;
    font-weight: 700;
}

/* Divisor */
.ac-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 4px 0;
}

/* ── Ajuste para mobile ── */
@media (max-width: 600px) {
    #accessibility-trigger {
        top: 8px;
        left: 8px;
        width: 50px;
        height: 50px;
    }
    #accessibility-trigger svg {
        width: 28px;
        height: 28px;
    }
    #accessibility-panel {
        top: 60px;
        left: 8px;
        right: 8px;
    }
    .card {
        width: 100%;
        padding: 12px;
    }
    .card__content .ac-btn {
        font-size: 14px;
        padding: 6px 10px;
    }
}

/* ============================================
   BOTÃO DE ACESSIBILIDADE - MODO ESCURO
   ============================================ */
body.dark #accessibility-trigger,
body.dark-mode #accessibility-trigger {
    background-color: #7dbf4dff !important;
}

body.dark #accessibility-trigger:hover,
body.dark-mode #accessibility-trigger:hover {
    background-color: #4dd9f5 !important;
}

body.dark #accessibility-trigger svg,
body.dark-mode #accessibility-trigger svg {
    fill: #000000 !important;
}