/* Estilos do Botão Flutuante da Ouvidoria */
.ouvidoria-button {
    position: fixed;
    display: flex;
    align-items: center;
    padding: 11px 20px;
    min-width: 140px;
    max-width: 280px;
    width: auto;
    height: 46px;
    background-color: #39ba69;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    font-size: 12px;
    line-height: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Posições do botão */
.ouvidoria-button-bottom-right {
    bottom: 20px;
    right: 20px;
}

.ouvidoria-button-bottom-left {
    bottom: 20px;
    left: 20px;
}

.ouvidoria-button-top-right {
    top: 20px;
    right: 20px;
}

.ouvidoria-button-top-left {
    top: 20px;
    left: 20px;
}

.ouvidoria-button:hover {
    background-color: #2da55a;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0px 10px 16px rgba(0, 0, 0, 0.15);
}

.ouvidoria-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(57, 186, 105, 0.3);
}

.ouvidoria-button .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    flex-shrink: 0;
}

.ouvidoria-button .icon:before {
    font-size: 22px;
    color: white;
}

.ouvidoria-button .text {
    font-family: inherit;
    font-weight: 700;
    white-space: nowrap;
}

/* Responsividade para tablet */
@media (max-width: 1024px) {
    .ouvidoria-button {
        right: 15px;
        bottom: 15px;
        padding: 8px 14px;
        max-width: 220px;
        font-size: 10px;
    }

    .ouvidoria-button .icon {
        width: 20px;
        height: 20px;
        margin-right: 7px;
    }

    .ouvidoria-button .icon:before {
        font-size: 20px;
    }
}

/* Responsividade para smartphone */
@media (max-width: 768px) {
    .ouvidoria-button {
        width: 46px;
        height: 46px;
        padding: 0;
        border-radius: 23px;
        right: 15px;
        bottom: 15px;
        max-width: none;
        justify-content: center;
    }

    .ouvidoria-button .text {
        display: none;
    }

    .ouvidoria-button .icon {
        margin-right: 0;
        width: 20px;
        height: 20px;
    }

    .ouvidoria-button .icon:before {
        font-size: 20px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 480px) {
    .ouvidoria-button {
        width: 42px;
        height: 42px;
        border-radius: 21px;
        right: 12px;
        bottom: 12px;
    }

    .ouvidoria-button .icon {
        width: 18px;
        height: 18px;
    }

    .ouvidoria-button .icon:before {
        font-size: 18px;
    }
}

/* Alto contraste */
body.alto_contraste .ouvidoria-button {
    background: #000;
    border: 2px solid #fff;
    color: #fff;
}

body.alto_contraste .ouvidoria-button:hover {
    background: #333;
    border-color: #fff;
}

body.alto_contraste .ouvidoria-button .icon:before {
    color: #fff;
}

/* Reduz movimento para usuários que preferem */
@media (prefers-reduced-motion: reduce) {
    .ouvidoria-button {
        transition: none;
    }

    .ouvidoria-button:hover {
        transform: none;
    }
}

/* Modo escuro */
@media (prefers-color-scheme: dark) {
    .ouvidoria-button {
        box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.3);
    }

    .ouvidoria-button:hover {
        box-shadow: 0px 10px 16px rgba(0, 0, 0, 0.4);
    }
}
