/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(120deg, #f6d365, #fda085);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    padding: 30px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Todo Form Styles */
#todo-form {
    display: flex;
    margin-bottom: 20px;
}

#todo-input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

#todo-input:focus {
    border-color: #fda085;
}

#add-button {
    background-color: #fda085;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

#add-button:hover {
    background-color: #f6d365;
}

/* Todo List Styles */
.todo-list-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

#todo-list {
    list-style-type: none;
}

.todo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    transition: all 0.3s;
}

.todo-item:hover {
    background-color: #f1f1f1;
}

.todo-text {
    flex: 1;
    cursor: pointer;
}

.completed {
    text-decoration: line-through;
    color: #aaa;
}

.delete-btn {
    color: #ff6b6b;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.delete-btn:hover {
    color: #ff0000;
}

/* Info Section */
.info {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    #todo-input, #add-button {
        padding: 12px;
    }
}