*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI';
}

body{
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    padding-top: 50px;
}

.container{
    background: white;
    width: 400px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1{
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="text"], input[type="date"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

input[type="text"] {
    flex: 2;
}

input[type="date"] {
    flex: 1;
    color: #555;
}

.task-info {
    display: flex;
    flex-direction: column;
}

.deadline-text {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

button {
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #218838;
}

ul {
    list-style-type: none;
}

li {
    background: #eee;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.completed{
    text-decoration: line-through;
    color: #888;
    background: #d4edda;
}

.delete-btn {
    background: #dc3545;
    padding: 5px 10px;
    font-size: 14px;
}

.delete-btn:hover {
    background: #c82333;
}

.due-today {

    background-color: #ffe8e8;
    border-left: 5px solid #dc3545;
}

.due-week {
    background-color: #fff9e6;
    border-left: 5px solid #ffc107;
}

.due-month {
    background-color: #e8f5e9;
    border-left: 5px solid #28a745;
}