/**
 * Estilos da Roleta
 * Animações e estilos específicos para o sistema de roleta
 */

/* Animação de confetes */
@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Animação de rotação do spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animação de pulso para botões */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Estilos para o spinner de loading */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.2em;
}

/* Estilos para o modal da roleta */
#rouletteModal {
    backdrop-filter: blur(8px);
}

/* Otimização de performance para SVG */
.roulette-svg {
    will-change: transform;
}

.wheel-segments {
    will-change: transform;
}

/* Animação do ponteiro */
.roulette-pointer {
    transition: transform 0.1s ease;
}

/* Estilos para resultados */
.result-div {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade adicional */
@media (max-width: 640px) {
    .roulette-svg {
        max-width: 280px;
    }
}

/* Estilos para o scroll customizado no histórico */
.max-h-80::-webkit-scrollbar {
    width: 8px;
}

.max-h-80::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.max-h-80::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.max-h-80::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Dark mode adjustments */
.dark .max-h-80::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.dark .max-h-80::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
}

.dark .max-h-80::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

