body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Fundo azul (#0d6efd) descendo em gradiente para o branco */
    background: linear-gradient(180deg, #0d6efd 0%, #0a58ca 40%, #f8f9fa 100%);
    background-attachment: fixed;
}

/* Classes de cores customizadas */
.bg-custom-blue {
    background-color: #0d6efd !important;
}
.bg-custom-dark-blue {
    background-color: #0a58ca !important;
}

.offcanvas.bg-custom-blue {
    background: linear-gradient(180deg, #0d6efd 0%, #084298 100%);
}

/* Centralização vertical ideal para o web component do iconify */
iconify-icon {
    vertical-align: middle;
}

.nav-hover {
    transition: background-color 0.2s ease-in-out;
}

.nav-hover:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

/* Customização do Acordeão de FAQ para o tom Azul */
.accordion-button {
    background-color: #f8f9fa;
    color: #084298;
}
.accordion-button:not(.collapsed) {
    background-color: #e9ecef;
    color: #0d6efd;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.accordion-body {
    background-color: #ffffff;
}

/* Scrollbar estilizada pro Chat */
.overflow-auto::-webkit-scrollbar {
    width: 8px;
}
.overflow-auto::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.overflow-auto::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 4px;
}

/* --- ESTILOS DO JOGO DE BINGO --- */

/* Animação da bola surgindo */
@keyframes popIn {
    0% { transform: scale(0.3) rotate(-20deg); opacity: 0; }
    70% { transform: scale(1.1) rotate(10deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.ball-pop {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Nova animação: Entra da direita, grande, e diminui pro tamanho normal */
@keyframes slideAndShrink {
    0% { transform: translateX(80%) scale(1.5); opacity: 0; }
    60% { transform: translateX(-5%) scale(1.1); opacity: 1; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}
.ball-slide {
    animation: slideAndShrink 0.55s ease-out forwards;
}

/* Botão Flutuante do Chat */
.btn-floating-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 1040;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}
.btn-floating-chat:hover {
    transform: scale(1.1) translateY(-5px);
}

/* Estilo das Cartelas */
.bingo-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.bingo-card-header {
    background: #0d6efd;
    color: white;
    display: flex;
    justify-content: space-around;
    font-weight: 800;
    font-size: 1rem;
    padding: 4px 0;
    letter-spacing: 1px;
}
.bingo-card-body {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: #dee2e6;
    padding: 1px;
}
.bingo-cell {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    position: relative;
}
.bingo-cell.marked {
    color: #000;
}
.bingo-cell.marked::after {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    background: rgba(25, 135, 84, 0.4); /* Marcação verde semi-transparente */
    border-radius: 50%;
    border: 3px solid #198754;
}
.bingo-cell.free {
    background: #f8f9fa;
}
.bingo-cell.free::after {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.2);
}

/* Media query para desktop */
@media (min-width: 768px) {
    .bingo-cell { font-size: 1.2rem; }
    .bingo-card-header { font-size: 1.3rem; padding: 8px 0; letter-spacing: 3px; }
    .bingo-card { border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-width: 2px; }
}

/* Animações e Textos da Espera */
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}
.animation-pulse {
    animation: pulse 1.5s infinite ease-in-out;
}
.tracking-widest {
    letter-spacing: 0.6em;
}

/* Animação do Pop-up (Toast) de Prêmios */
.toast-slide-in {
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes slideInRight {
    0% { transform: translateX(120%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Animação das Mini Bolas Aguardando (B-I-N-G-O) */
.bingo-waiting-balls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 1rem;
}
.mini-ball {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.4rem;
    color: white;
    box-shadow: inset -3px -3px 6px rgba(0,0,0,0.3), 0 4px 8px rgba(0,0,0,0.2);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: miniBallBounce 1.5s infinite ease-in-out;
}
@keyframes miniBallBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}
.mini-ball:nth-child(1) { background-color: #dc3545; animation-delay: 0.0s; } /* B - Vermelho */
.mini-ball:nth-child(2) { background-color: #0d6efd; animation-delay: 0.15s; } /* I - Azul */
.mini-ball:nth-child(3) { background-color: #ffc107; animation-delay: 0.3s; color: #000; text-shadow: none;} /* N - Amarelo */
.mini-ball:nth-child(4) { background-color: #198754; animation-delay: 0.45s; } /* G - Verde */
.mini-ball:nth-child(5) { background-color: #6f42c1; animation-delay: 0.6s; } /* O - Roxo */

.text-purple {
    color: #6f42c1 !important;
}
