/* Reaction Animation - Dark Theme with Glow */
.reaction-animation {
    position: fixed;
    bottom: 100px;
    pointer-events: none;
    z-index: 9999;
    animation: floatUpGlow 3s ease-out forwards;
    user-select: none;
    filter: drop-shadow(0 0 10px rgba(100, 200, 255, 0.5))
            drop-shadow(0 0 20px rgba(100, 200, 255, 0.3));
}

@keyframes floatUpGlow {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5);
        filter: drop-shadow(0 0 10px rgba(100, 200, 255, 0.5))
                drop-shadow(0 0 20px rgba(100, 200, 255, 0.3));
    }
    10% {
        transform: translateY(-20px) scale(1);
        filter: drop-shadow(0 0 15px rgba(100, 200, 255, 0.7))
                drop-shadow(0 0 30px rgba(100, 200, 255, 0.5));
    }
    100% {
        opacity: 0;
        transform: translateY(-300px) scale(1.2);
        filter: drop-shadow(0 0 20px rgba(100, 200, 255, 0.3))
                drop-shadow(0 0 40px rgba(100, 200, 255, 0.1));
    }
}

/* Smooth transitions for timer */
#timerDisplay {
    transition: color 0.3s ease;
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    #timerDisplay {
        font-size: 3rem;
    }
}

/* Loading state */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Dark Cosmic Theme */
body {
    background: #0a0a0f;
    background-image: radial-gradient(circle at 20% 50%, rgba(0, 200, 255, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(255, 140, 66, 0.08) 0%, transparent 50%);
    color: #ffffff;
}

/* Glass Morphism Styles */
.glass-panel {
    background: rgba(20, 20, 30, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 1rem;
}

.glass-button {
    background: rgba(100, 200, 255, 0.15);
    border: 1px solid rgba(100, 200, 255, 0.3);
    color: #ffffff;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.glass-button:hover {
    background: rgba(100, 200, 255, 0.25);
    border-color: rgba(100, 200, 255, 0.5);
    box-shadow: 0 0 20px rgba(100, 200, 255, 0.3);
}

.glass-button-danger {
    background: rgba(255, 100, 100, 0.15);
    border: 1px solid rgba(255, 100, 100, 0.3);
    color: #ffffff;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.glass-button-danger:hover {
    background: rgba(255, 100, 100, 0.25);
    border-color: rgba(255, 100, 100, 0.5);
    box-shadow: 0 0 20px rgba(255, 100, 100, 0.3);
}

/* Timer Glow Effect */
.timer-glow {
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.5),
                 0 0 40px rgba(100, 200, 255, 0.3);
}

/* Light Dots Animations - Enhanced Cosmic Style */
.light-dot {
    box-shadow: 0 0 20px currentColor, 
                0 0 40px currentColor,
                0 0 60px rgba(255, 255, 255, 0.1);
    filter: brightness(1.2);
}

.pulse-focus {
    animation: pulseFocus 2s ease-in-out infinite, cosmicFloat 8s ease-in-out infinite;
}

.pulse-break {
    animation: pulseBreak 3s ease-in-out infinite, cosmicFloat 10s ease-in-out infinite;
}

@keyframes pulseFocus {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px currentColor, 
                    0 0 40px currentColor,
                    0 0 60px rgba(255, 255, 255, 0.2);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.3);
        box-shadow: 0 0 30px currentColor, 
                    0 0 60px currentColor,
                    0 0 80px rgba(255, 255, 255, 0.3);
    }
}

@keyframes pulseBreak {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.85);
        box-shadow: 0 0 15px currentColor, 
                    0 0 30px currentColor,
                    0 0 45px rgba(255, 255, 255, 0.15);
    }
    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.15);
        box-shadow: 0 0 25px currentColor, 
                    0 0 45px currentColor,
                    0 0 60px rgba(255, 255, 255, 0.25);
    }
}

/* Cosmic floating effect for light dots */
@keyframes cosmicFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0) translateX(0);
    }
    25% {
        transform: translate(-50%, -50%) translateY(-10px) translateX(5px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(0) translateX(10px);
    }
    75% {
        transform: translate(-50%, -50%) translateY(10px) translateX(5px);
    }
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

/* Participant List - Dark Theme */
.participant-item {
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.participant-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.participant-focus {
    animation: gentleFloat 3s ease-in-out infinite;
}

.participant-break {
    animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}
