* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(to right, #84fab0, #8fd3f4); /* Gradient background */
}

.todo-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin: auto; /* Center the container */
}

.todo-container:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

h1 {
    font-size: 28px;
    color: #2196F3; /* Changed color to blue */
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

#task-input, #due-date-input {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    background-color: #e0f7fa; /* Light cyan background */
    transition: all 0.3s ease;
}

#task-input:focus, #due-date-input:focus {
    border-color: #00bcd4; /* Light blue border */
    background-color: #ffffff;
}

#add-task-btn {
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#add-task-btn:hover {
    background-color: #45a049;
    transform: translateY(-3px);
}

ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 20px;
}

li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: #fce4ec; /* Light pink background */
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

li.completed {
    text-decoration: line-through;
    color: #888;
    background-color: #e7e7e7;
}

li:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
}

button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #888;
    transition: all 0.3s ease;
}

button:hover {
    color: #f44336;
}

button.delete-btn {
    font-size: 18px;
    color: #f44336;
    padding: 5px;
    cursor: pointer;
}

button.delete-btn:hover {
    color: #d32f2f;
}

.task-due-time {
    font-size: 14px;
    color: #555;
    margin-left: 10px;
    display: block;
}

/* Popup Modal */
.popup-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
    padding-top: 60px;
}

.popup-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
}

.popup-content h2 {
    margin-bottom: 20px;
    color: #4CAF50;
}

#close-popup-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#close-popup-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* Task Time Styles */
.task-due-time {
    color: #8c8c8c;
    font-size: 12px;
}

/* Media Queries for Mobile */
@media (max-width: 600px) {
    .todo-container {
        padding: 20px;
        width: 100%;
        max-width: 90%;
    }

    h1 {
        font-size: 24px;
    }

    #task-input, #due-date-input, #add-task-btn {
        font-size: 14px;
    }
}
