/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Body and Main Layout */
body {
    background-color: #f0f4ff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.main-container {
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 1200px;
    gap: 20px;
}

/* Date Section */
.date-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 25%;
    background-color: #f9fcfe;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.date-btn {
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
}

.date-btn:hover {
    background-color: #004085;
}

.current-date {
    font-size: 1.2rem;
    color: #090909;
    text-align: center;
    margin-top: 10px;
}

/* List Section */
.list-section {
    width: 75%;
    display: flex;
    flex-direction: column;
}

.container, .completed-container, .uncompleted-container {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

/* Task Input Section */
.input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

button {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    padding: 10px 15px;
}

button:hover {
    background-color: #218838;
}

/* Task List */
.task-list {
    list-style-type: none;
}

li {
    background-color: #e9ecef;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

li span {
    flex: 1;
    word-break: break-word;
}

/* Buttons inside tasks */
li button {
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Specific button styles */
li button.complete-btn {
    background-color: #28a745;
    color: white;
}

li button.delete-btn {
    background-color: #ff4b5c;
    color: white;
}

li button.edit-btn {
    background-color: #ffc107;
    color: black;
}

/* Completed and Uncompleted Colors */
li.completed {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

li.uncompleted {
    background-color: #d4e8ff;
    border: 1px solid #b8daff;
}

/* Headings */
h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
    }

    .date-section, .list-section {
        width: 100%;
    }

    .input-container {
        flex-direction: column;
    }

    button, input {
        width: 100%;
    }
}

@media (max-width: 500px) {
    li {
        flex-direction: column;
        align-items: flex-start;
    }

    li button {
        width: 100%;
    }
}
