/* Light mode background */
body {
  font-family: 'Segoe UI', sans-serif;
  max-width: 600px;
  margin: 40px auto;
  background: 
    linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)),
    url("../images/todo.jpg") 
    no-repeat center center fixed;
  background-size: cover;
  padding: 0 20px;
  color: #000;
  transition: background 0.5s ease, color 0.3s ease;
}

/* Dark mode background — faded look */
body.dark-mode {
  background: 
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url("../images/todo.jpg") 
    no-repeat center center fixed;
  background-size: cover;
  color: #f1f1f1;
}


h2 {
  text-align: center;
  color: inherit;
}

/* About Section */
.about-section {
  background: #ffffff;
  padding: 15px 20px;
  margin: 20px 0;
  border-left: 4px solid #007BFF;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  animation: fadeIn 0.6s ease-in-out;
}

.about-section h3 {
  margin-bottom: 10px;
  color: #007BFF;
}

.about-section p {
  font-size: 14px;
  line-height: 1.6;
}

body.dark-mode .about-section {
  background: #1f1f1f;
  border-left-color: #66aaff;
}

.toggle-container {
  text-align: right;
  margin-bottom: 10px;
}

.task-input {
  text-align: center;
  margin-bottom: 20px;
}

input[type="text"], input[type="date"], select {
  padding: 10px;
  font-size: 14px;
  margin: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

button {
  padding: 10px;
  font-size: 14px;
  margin: 5px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

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

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

li {
  background-color: #fff;
  margin: 10px 0;
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  border-left: 4px solid #007BFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
}

body.dark-mode li {
  background: #1f1f1f;
}

.task-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 12px;
  color: gray;
}

.done {
  text-decoration: line-through;
  color: gray;
  opacity: 0.6;
}

.actions {
  margin-top: 5px;
  display: flex;
  gap: 5px;
}

.actions button {
  padding: 5px;
  font-size: 12px;
}

.high { border-left-color: red; }
.medium { border-left-color: orange; }
.low { border-left-color: green; }

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
