/* Toss Design Inspired Custom Styles */

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, box-shadow, transform;
    transition-duration: 200ms;
    transition-timing-function: ease-in-out;
}

/* Todo Item Styles */
.todo-item {
    background: white;
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.todo-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.todo-item.editing {
    border: 2px solid #3182F6;
    box-shadow: 0 4px 16px rgba(49, 130, 246, 0.15);
}

/* Todo Text */
.todo-text {
    flex: 1;
    font-size: 1.125rem;
    color: #191F28;
    font-weight: 500;
}

.todo-input-edit {
    flex: 1;
    font-size: 1.125rem;
    padding: 0.5rem 1rem;
    border: 2px solid #3182F6;
    border-radius: 0.75rem;
    outline: none;
}

/* Button Styles */
.btn {
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    border-radius: 0.75rem;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn:active {
    transform: scale(0.95);
}

.btn-edit {
    background-color: #F2F4F6;
    color: #4E5968;
}

.btn-edit:hover {
    background-color: #E5E8EB;
}

.btn-delete {
    background-color: #FFF5F5;
    color: #F04452;
}

.btn-delete:hover {
    background-color: #FFE5E7;
}

.btn-save {
    background-color: #3182F6;
    color: white;
}

.btn-save:hover {
    background-color: #4593FC;
}

.btn-cancel {
    background-color: #F2F4F6;
    color: #4E5968;
}

.btn-cancel:hover {
    background-color: #E5E8EB;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.todo-item {
    animation: fadeIn 0.3s ease;
}

/* Fade Out Animation */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.todo-item.removing {
    animation: fadeOut 0.3s ease;
}

/* Empty state */
#emptyState {
    animation: fadeIn 0.5s ease;
}

/* Focus styles */
input:focus {
    outline: none;
    border-color: #3182F6;
    box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.1);
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F2F4F6;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #D1D6DB;
    border-radius: 10px;
}

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