/*Write your custom css in this file.*/

/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #272F3A;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #1e242c;
    transform: scale(1.1);
    box-shadow: 3px 3px 5px #666;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #FFF;
    display: block;
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

.tooltip-content {
    background-color: #272F3A;
    color: #FFF;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #272F3A;
}

.tooltip-text {
    display: inline-block;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 47, 58, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(39, 47, 58, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 47, 58, 0);
    }
}

/* Ajuste para mobile - evitar conflito com menu inferior */
@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 80px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-tooltip {
        right: 65px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .whatsapp-float:hover .whatsapp-tooltip {
        transform: translateY(-50%) translateX(-5px);
    }
    
    .tooltip-content {
        font-size: 12px;
        padding: 10px 12px;
        white-space: nowrap;
    }
    
    .tooltip-content::after {
        right: -6px;
        top: 50%;
        transform: translateY(-50%);
        border-top-width: 6px;
        border-bottom-width: 6px;
        border-left-width: 6px;
        border-right: none;
    }
}

/* Footer box - alteração de cor de #171F3A e #17203B para #F8FAFC */
/* REGRA GERAL - aplica a TODOS os boxes */
.box {
    background-color: #F8FAFC !important;
}

.box-content {
    background-color: #F8FAFC !important;
}

/* REGRAS ESPECÍFICAS PARA FOOTER - máxima especificidade */
/* Qualquer box dentro de footer */
.footer .box,
.footer .box-content,
div.footer .box,
div.footer .box-content,
.footer div.box,
.footer div.box-content {
    background-color: #F8FAFC !important;
    color: inherit;
}

/* Footer em páginas públicas */
.public-page-container .footer .box,
.public-page-container .footer .box-content,
.scrollable-page .footer .box,
.scrollable-page .footer .box-content,
.main-scrollable-page .footer .box,
.main-scrollable-page .footer .box-content {
    background-color: #F8FAFC !important;
}

/* Footer com container-fluid */
.container-fluid .footer .box,
.container-fluid .footer .box-content,
.footer .container-fluid .box,
.footer .container-fluid .box-content {
    background-color: #F8FAFC !important;
}

/* Datatable e summation */
.datatable-tools .box,
.datatable-tools .box-content,
.summation-section .box,
.summation-section .box-content,
.footer .summation-section .box,
.footer .summation-section .box-content,
.datatable-tools .summation-section .box,
.datatable-tools .summation-section .box-content,
.datatable-tools .footer .box,
.datatable-tools .footer .box-content,
.footer .datatable-tools .box,
.footer .datatable-tools .box-content {
    background-color: #F8FAFC !important;
}

/* Força a cor mesmo se houver estilos inline - cobre #171F3A e #17203B */
.box[style*="171F3A"],
.box[style*="#171F3A"],
.box[style*="17203B"],
.box[style*="#17203B"],
.footer .box[style*="171F3A"],
.footer .box[style*="#171F3A"],
.footer .box[style*="17203B"],
.footer .box[style*="#17203B"],
.datatable-tools .box[style*="171F3A"],
.datatable-tools .box[style*="#171F3A"],
.datatable-tools .box[style*="17203B"],
.datatable-tools .box[style*="#17203B"],
.summation-section .box[style*="171F3A"],
.summation-section .box[style*="#171F3A"],
.summation-section .box[style*="17203B"],
.summation-section .box[style*="#17203B"] {
    background-color: #F8FAFC !important;
}