/* Background video */
#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  filter: saturate(1.8) contrast(1.3) brightness(1.1);
  background-color: black;
  transform: translateZ(0);
  will-change: transform, opacity;
}

/* Live Date-Time (top left) */
#date-time {
  position: fixed;
  top: 10px;
  left: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 8px #ff4081, 0 0 12px #000;
  z-index: 10;
}

/* Overlay tint */
#color-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 0, 100, 0.15);
  z-index: -1;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Main container */
.todo-container {
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 16px;
  color: white;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 0 25px rgba(255, 0, 150, 0.8);
  border: 3px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  animation: glow-frame 2.5s infinite alternate;
}

@keyframes glow-frame {
  0% {
    box-shadow: 0 0 20px rgba(255, 0, 150, 0.6),
                0 0 40px rgba(255, 0, 150, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.9),
                0 0 50px rgba(255, 0, 150, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
  }
}

/* Stats bar */
.task-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: bold;
  color: #ffe6f2;
  text-shadow: 0 0 5px #ff4081;
}

/* Input area */
.input-area {
  display: flex;
  gap: 6px;
  margin-bottom: 15px;
}

.input-area input {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: none;
  outline: none;
}

button {
  background-color: #ff4081;
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #ff79b0;
  box-shadow: 0 0 10px #ff4081;
}

/* Task List */
#taskList {
  list-style: none;
  padding: 0;
}

#taskList li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 8px;
  gap: 8px;
}

#taskList input[type="checkbox"] {
  transform: scale(1.3);
  accent-color: #ff4081;
}

.task-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Completed tasks */
.completed {
  text-decoration: line-through;
  color: #b3ffb3;
}

/* Edit/Delete buttons */
.edit-btn, .delete-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.edit-btn:hover {
  color: #ffd700;
  transform: scale(1.2);
}

.delete-btn:hover {
  color: #ff4c4c;
  transform: scale(1.2);
}

/* Inline editing */
.edit-input {
  flex: 1;
  padding: 5px;
  border-radius: 6px;
  border: 1px solid #ff79b0;
}
