/* Modern Gradient Task Manager Styles */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --background-color: #f4f6f9;
    --text-color: #333;
    --accent-color: #ff4081;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    color: var(--text-color);
}

.container {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(50,50,93,.1), 0 5px 15px rgba(0,0,0,.07);
}

h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.task-input-container {
    display: flex;
    margin-bottom: 25px;
    gap: 10px;
}

#taskInput, #taskDate {
    flex-grow: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#taskInput:focus, #taskDate:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

#addTaskBtn {
    padding: 12px 20px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#addTaskBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(50,50,93,.11), 0 1px 3px rgba(0,0,0,.08);
}

#taskList {
    list-style-type: none;
    padding: 0;
}

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

.task-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(50,50,93,.1), 0 1px 3px rgba(0,0,0,.07);
}

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

.delete-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Checkbox Styling */
.task-item input[type='checkbox'] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    outline: none;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
}

.task-item input[type='checkbox']:checked {
    background-color: var(--primary-color);
}

.task-item input[type='checkbox']:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}
