body {
    margin: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Container for To-Do List */
.todo-container {
    background: #fff;
    border-radius: 2rem;
    padding: 2rem;
    width: 450px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1); 
    transition: box-shadow 0.3s ease; 
}

.todo-container:hover {
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.15); 
}

h1 {
    text-align: center;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

/* Input and Button Group */
.input-group {
    margin-bottom: 1.5rem;
    display: flex;
}

#task-input {
    padding: 0.8rem;
    border-radius: 2rem 0 0 2rem;
    outline: none;
    border: 1px solid #ddd; 
    flex: 1;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#task-input:focus {
    border-color: #007bff; 
}

#add-task-btn, #voice-command-btn {
    background-color: #007bff;
    border: none;
    padding: 0.5rem 1rem;
    color: white;
    cursor: pointer;
    border-radius: 0 2rem 2rem 0;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#add-task-btn:hover {
    background-color: #0056b3; 
}

#voice-command-btn {
    background-color: #28a745;
    border-radius: 2rem;
    margin-left: 0.5rem;
    transition: background-color 0.3s ease;
}

#voice-command-btn:hover {
    background-color: #218838;
}

/* Task List Styling */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    padding: 0.8rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: column; 
    transition: background-color 0.3s ease;
}

li:hover {
    background-color: #f8f9fa; 
}

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

li .task-name {
    font-size: 1rem;
    color: #333;
}

li .task-date {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.3rem;
}

/* Task Action Buttons */
li .task-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.task-actions .edit-icon,
.task-actions .delete-icon {
    margin-left: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.edit-icon:hover {
    color: #007bff; 
}

.delete-icon {
    color: red;
}

.delete-icon:hover {
    color: darkred; 
}

/* Listening Pop-up */
.listening-popup {
    top: 50%;
    left: 50%;
    position: fixed;
    padding: 1rem 1.6rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 1rem;
    border-radius: 5px;
    display: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
    animation: fadeIn 0.3s ease;
}

/* Smooth fade-in animation for the pop-up */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
