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

/* Smooth transitions for grid cells */
.habit-cell {
    transition: all 0.2s ease;
    cursor: pointer;
}

.habit-cell:hover {
    transform: scale(1.05);
}

/* Completed day animation */
@keyframes checkIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.completed-animation {
    animation: checkIn 0.3s ease-out;
}

/* Counter animation */
@keyframes countUp {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.counter-animation {
    animation: countUp 0.3s ease-out;
}

/* Modal fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-fade-in {
    animation: fadeIn 0.3s ease-out;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}