/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    padding: 30px 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

header h1 {
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 5px;
}

header p {
    font-weight: 300;
    opacity: 0.9;
}

.input-section {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

#task-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e1e5ee;
    border-radius: 50px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    outline: none;
}

#task-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 50px;
    margin-left: 10px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

#btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#task-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
    padding: 0 20px 20px;
}

#task-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s;
    animation: fadeIn 0.3s ease;
}

#task-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#task-list li:nth-child(odd) {
    background-color: #f0f4ff;
}

#task-list li span {
    flex: 1;
    font-size: 16px;
    padding-right: 15px;
}

#task-list button {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
}

#task-list button:first-of-type {
    background-color: #e3f2fd;
    color: #1976d2;
}

#task-list button:first-of-type:hover {
    background-color: #bbdefb;
    color: #0d47a1;
}

#task-list button:last-of-type {
    background-color: #ffebee;
    color: #d32f2f;
}

#task-list button:last-of-type:hover {
    background-color: #ffcdd2;
    color: #b71c1c;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.empty-state i {
    font-size: 50px;
    margin-bottom: 15px;
    color: #ddd;
}

.empty-state h3 {
    font-weight: 500;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 480px) {
    .container {
        border-radius: 12px;
    }
    
    header {
        padding: 20px 20px 15px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    .input-section {
        padding: 15px;
    }
    
    #task-input {
        padding: 12px 15px;
    }
    
    #btn {
        padding: 0 20px;
        font-size: 14px;
    }
    
    #task-list {
        padding: 0 15px 15px;
    }
    
    #task-list li {
        padding: 12px;
    }
}