/* style.css */

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #003569, #7467e6);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    /* Semi-transparent background */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* Enhanced shadow for a glassy effect */
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    /* Blur effect to mimic glass */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Semi-transparent border */
}

header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.header-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

input[type="text"],
input[type="number"] {
    width: calc(100% - 120px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.5);
    /* Light background for input fields */
}

button {
    padding: 10px 15px;
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    background: rgba(0, 0, 0, 0.3);
    /* Semi-transparent button background */
}

button:hover {
    opacity: 0.9;
}

button#addTaskBtn {
    background-color: #007bff;
}

button#addTaskBtn:hover {
    background-color: #0056b3;
}

button#showCompletedBtn {
    background-color: #28a745;
}

button#showCompletedBtn:hover {
    background-color: #218838;
}

button#showIncompleteBtn {
    background-color: #dc3545;
}

button#showIncompleteBtn:hover {
    background-color: #c82333;
}

button#showAllBtn {
    background-color: #6c757d;
}

button#showAllBtn:hover {
    background-color: #5a6268;
}

.filter-controls {
    margin-bottom: 20px;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    background-color: rgba(255, 255, 255, 0.8);
    /* Slightly opaque list items */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

li.completed .task-name {
    text-decoration: line-through;
    color: #999;
}

li span {
    flex: 1;
    word-break: break-word;
}

li div {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

button.delete-btn {
    background-color: #dc3545;
    border: none;
    color: #fff;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

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

button.complete-btn {
    background-color: #28a745;
    border: none;
    color: #fff;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    margin-right: 5px;
}

button.complete-btn:hover {
    background-color: #218838;
}

.countdown {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}


/* Media Queries for Responsiveness */


/* For screens smaller than 768px */

@media (max-width: 768px) {
    .header-controls {
        flex-direction: column;
    }
    input[type="text"],
    input[type="number"] {
        width: 100%;
        margin-bottom: 10px;
    }
    button {
        width: 100%;
        margin-bottom: 10px;
    }
}


/* For screens smaller than 480px */

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    header {
        margin-bottom: 15px;
    }
    .header-controls {
        flex-direction: column;
    }
    input[type="text"],
    input[type="number"] {
        width: 100%;
        margin-bottom: 10px;
    }
    button {
        width: 100%;
        margin-bottom: 10px;
    }
    button.complete-btn,
    button.delete-btn {
        padding: 5px 10px;
    }
    ul {
        padding: 0;
        margin: 0;
    }
}