body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #2c2c2c; /* Dark grey background */
    color: #ffffff; /* White text for better contrast */
}

body.dark-mode {
    background-color: #1c1c1c; /* Darker background for dark mode */
    color: #ffffff; /* White text for dark mode */
}

.container {
    background: #333333; /* Dark grey container */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); /* Darker shadow */
    width: 800px; /* Increased width */
    max-width: 100%;
}

body.dark-mode .container {
    background: #444444; /* Darker container for dark mode */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 10px;
}

h1 {
    font-size: 24px;
    color: #ffffff; /* White text for header */
    margin: 0;
}

nav {
    display: flex;
}

.tab {
    border: none;
    background: none;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
    padding-bottom: 5px;
    color: #ffffff; /* White text for tabs */
    transition: color 0.3s;
}

.tab:hover {
    color: #f39c12;
}

.tab.active {
    border-bottom: 2px solid #f39c12;
    color: #f39c12;
}

.dark-mode-toggle {
    position: relative;
    display: flex;
    align-items: center;
}

.dark-mode-toggle input[type="checkbox"] {
    display: none;
}

.dark-mode-toggle label {
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dark-mode-toggle label:after {
    content: '';
    width: 18px;
    height: 18px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
    transition: transform 0.3s;
}

.dark-mode-toggle input[type="checkbox"]:checked + label {
    background-color: #f39c12;
}

.dark-mode-toggle input[type="checkbox"]:checked + label:after {
    transform: translateX(20px);
}

.input-container, .filter-container {
    display: flex;
    margin-bottom: 20px;
    gap: 10px; /* Add gap between elements */
}

.todo-input, .due-date-input, .priority-select, .filter-select, .search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    background-color: #555555; /* Darker input background */
    color: #ffffff; /* White text for input */
}

body.dark-mode .todo-input,
body.dark-mode .due-date-input,
body.dark-mode .priority-select,
body.dark-mode .filter-select,
body.dark-mode .search-input {
    background-color: #666666; /* Darker input background for dark mode */
    color: #ffffff; /* White text for dark mode */
}

.todo-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #f39c12;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.todo-button:hover {
    background-color: #e67e22;
}

.todo-header, .todo-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 2fr;
    padding: 10px;
    align-items: center;
    border-bottom: 1px solid #444444; /* Darker border */
}

.todo-header {
    font-weight: bold;
    border-bottom: 2px solid #f39c12;
    margin-bottom: 10px;
}

body.dark-mode .todo-item {
    border-bottom: 1px solid #555555; /* Darker border for dark mode */
}

.todo-item.completed {
    text-decoration: line-through;
    color: #888;
}

.todo-item button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0 10px;
}

.complete-btn {
    color: #28a745;
    transition: color 0.3s;
}

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

.trash-btn {
    color: #e74c3c;
    transition: color 0.3s;
}

.trash-btn:hover {
    color: #c82333;
}

.task-btn {
    border: none;
    background-color: #f39c12;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 5px;
}

.task-btn:hover {
    background-color: #e67e22;
}

.remove-btn {
    background-color: #e74c3c;
}

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