/* Global Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  background-color: #f7f7f7;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

body.dark {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

/* Menu Bar */
.menu-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #4CAF50;
  padding: 15px 20px;
  color: white;
}

.menu-bar button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

/* To-Do App */
.todo-app {
  max-width: 600px;
  margin: 20px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: background-color 0.3s, color 0.3s;
}

.todo-app.dark {
  background: #333;
}

header {
  padding: 20px;
  text-align: center;
  background-color: #f1f1f1;
}

header.dark {
  background-color: #444;
}

.input-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

input#new-task, 
input#task-date, 
select#task-priority {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}

button#add-task {
  padding: 12px;
  background: #4CAF50;
  border: none;
  color: white;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
}

button#add-task:hover {
  background: #45a049;
}

/* Main Section */
main {
  padding: 20px;
}

.controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.filters, .search-container {
  display: flex;
  gap: 10px;
}

.filter-btn, #search-task {
  padding: 10px;
  border-radius: 8px;
  border: none;
}

.filter-btn {
  background: #f1f1f1;
  cursor: pointer;
}

.filter-btn.active {
  background: #4CAF50;
  color: white;
}

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

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #f9f9f9;
  transition: background-color 0.3s;
}

.task-item.high {
  border-left: 5px solid #e53935;
}

.task-item.medium {
  border-left: 5px solid #fbc02d;
}

.task-item.low {
  border-left: 5px solid #43a047;
}

.task-text {
  flex-grow: 1;
}

.task-item.overdue {
  background: #ffcdd2;
}

/* Footer */
footer {
  padding: 15px;
  background-color: #f1f1f1;
  text-align: center;
}

footer.dark {
  background-color: #444;
}

