/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Body Background */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    color: #333;
}

/* Container Styling */
.container {
    background: #ffffff;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
    animation: fadeIn 0.8s ease;
}

h1 {
    font-weight: 600;
    font-size: 1.8rem;
    color: #4a4a4a;
}

/* Task Input Styling */
.task-input {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.task-input input[type="text"],
.task-input input[type="date"] {
    flex: 1;
    padding: 0.7rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    font-size: 0.9rem;
    color: #333;
    transition: border-color 0.3s ease;
}

.task-input input[type="text"]:focus,
.task-input input[type="date"]:focus {
    border-color: #66a6ff;
}

.add-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    color: #fff;
    background-color: #66a6ff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-btn:hover {
    background-color: #4a8fdb;
}

/* Action Buttons */
.task-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.task-actions button {
    padding: 0.7rem;
    font-size: 0.9rem;
    color: #fff;
    background-color: #89f7fe;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.task-actions button:hover {
    background-color: #66a6ff;
}

.clear-btn {
    background-color: #ff6b6b;
}

.clear-btn:hover {
    background-color: #d9534f;
}

/* Task Sections */
.task-section {
    margin-top: 1.5rem;
    text-align: left;
}

.task-section h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.8rem;
}

.task-section ul {
    list-style-type: none;
    padding: 0;
}

.task-section li {
    padding: 0.8rem;
    margin: 0.4rem 0;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
