/* Additional custom styles beyond Tailwind */

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.2s ease-in-out;
}

/* Custom animation for the calendar cells */
.calendar-cell-enter {
    transform: scale(0.95);
    opacity: 0;
}

.calendar-cell-enter-active {
    transform: scale(1);
    opacity: 1;
    transition: all 0.3s ease-out;
}

/* Subtle shadow animations with colorful glow */
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.15), 0 4px 10px rgba(99, 102, 241, 0.1);
}

/* Custom pulse animation for high streaks */
@keyframes celebration-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.celebration-pulse {
    animation: celebration-pulse 2s ease-in-out infinite;
}

/* Smooth focus states with purple theme */
input:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* Loading state for SQL.js initialization */
.loading-spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid #8b5cf6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animated gradient background */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* Sparkle animation for completed days */
@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.7; transform: scale(1.1) rotate(180deg); }
}

.sparkle {
    animation: sparkle 2s ease-in-out infinite;
}