/* Fontes */
.font-fredoka {
    font-family: 'Fredoka One', cursive;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #2c2c2c 50%, #000000 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Confetes animados */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f1c40f;
    animation: confetti-fall 3s linear infinite;
}

.confetti:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    background: #FFD700;
}

.confetti:nth-child(2) {
    left: 30%;
    animation-delay: 0.5s;
    background: #FFFFFF;
}

.confetti:nth-child(3) {
    left: 50%;
    animation-delay: 1s;
    background: #FFD700;
}

.confetti:nth-child(4) {
    left: 70%;
    animation-delay: 1.5s;
    background: #FFFFFF;
}

.confetti:nth-child(5) {
    left: 90%;
    animation-delay: 2s;
    background: #FFD700;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Card principal */
.card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid #FFD700;
    z-index: 10;
    position: relative;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #000000, #2c2c2c, #FFD700);
}

/* Imagem do aniversariante */
.birthday-boy-container {
    position: relative;
    display: inline-block;
}

.birthday-boy-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #FFD700;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    animation: bounce 2s infinite;
}

.crown {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 2rem;
    animation: rotate 3s linear infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Formulário */
.form-control {
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.btn-warning {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    color: #000000;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
    color: #000000;
    background: linear-gradient(135deg, #FFA500, #FFD700);
}

.btn-warning:active {
    transform: translateY(0);
}

/* Animação de sucesso */
.success-animation {
    animation: successPulse 1s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Info do evento */
.event-info {
    border-left: 4px solid #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.05));
}

/* Responsividade */
@media (max-width: 768px) {
    .birthday-boy-img {
        width: 100px;
        height: 100px;
    }
    
    .crown {
        font-size: 1.5rem;
        top: -5px;
        right: 5px;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
}

/* Alertas customizados */
.alert {
    border: none;
    border-radius: 15px;
    font-weight: 600;
}

.alert-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

/* Loading state */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Seletor de acompanhantes */
.form-select {
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

/* Badge de pessoas */
.badge {
    font-weight: 600;
}

/* Estatísticas do admin */
.card.bg-light {
    transition: all 0.3s ease;
}

.card.bg-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

/* Campos de acompanhantes */
.acompanhante-field {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(0, 0, 0, 0.02));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.acompanhante-field:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.1);
}

/* Animação para campos dinâmicos */
.acompanhante-field {
    animation: slideInUp 0.3s ease-out;
}

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

/* Efeito de hover nos cards */
.card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}