@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #ef4444;
    --background-color: #f1f5f9;
    --text-color: #1e293b;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --hover-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--background-color), #e2e8f0);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 20px;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.main-title {
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.task-input-section {
    margin-bottom: 2.5rem;
}

.task-form {
    display: flex;
    gap: 1.5rem;
}

.task-input {
    flex: 1;
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
}

.task-input:focus {
    outline: none;
    box-shadow: var(--hover-shadow);
    transform: translateY(-2px);
}

.add-task-btn {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-task-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.task-list {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    backdrop-filter: blur(5px);
}

.task-item {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.task-item:hover {
    background: rgba(248, 250, 252, 0.8);
    transform: translateX(5px);
}

.task-text {
    flex: 1;
    margin: 0 1.5rem;
    font-size: 1.1rem;
}

.task-actions {
    display: flex;
    gap: 0.8rem;
}

.task-btn {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: white;
}

.delete-btn {
    background: linear-gradient(135deg, #f87171, #dc2626);
    color: white;
}

.task-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

.completed {
    text-decoration: line-through;
    opacity: 0.6;
}

@media (max-width: 640px) {
    .container {
        margin: 2rem auto;
    }
    
    .task-form {
        flex-direction: column;
    }
    
    .add-task-btn {
        width: 100%;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
}
