/* Custom animations and enhancements for Lightning Habit Tracker */

/* Smooth transitions for all interactive elements */
* {
    transition-property: transform, background-color, border-color, box-shadow;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pulsing animation for motivation elements */
@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

#motivation-emoji {
    animation: pulse-soft 3s ease-in-out infinite;
}

/* Subtle bounce effect for the completion counter */
@keyframes bounce-gentle {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

#completion-counter {
    animation: bounce-gentle 2s ease-in-out infinite;
}

/* Custom gradient background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(200, 0, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(120, 0, 0, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(80, 0, 0, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Enhanced glass morphism effect */
.bg-white\/10,
.bg-red-900\/20 {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom scrollbar for better aesthetics */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 127, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 38, 127, 0.8);
}

/* Hover effects for interactive elements */
button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Focus styles for accessibility */
input:focus,
button:focus {
    outline: 2px solid rgba(220, 38, 127, 0.7);
    outline-offset: 2px;
}