/* Custom styles for loading animation */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Card hover effect */
.todo-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.todo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Form input focus and error states */
input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#error:not(.hidden) {
    background-color: #fee2e2;
    padding: 1rem;
    border-radius: 0.375rem;
}

/* Button transitions */
button {
    transition: background-color 0.3s ease;
}