/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #fddcef;
  color: #333;
  padding: 20px;
  transition: background 0.3s, color 0.3s;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 1.8rem;
}

#themeToggle {
  padding: 6px 10px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

/* Task Input */
.task-input {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.task-input label {
  font-size: 0.9rem;
  font-weight: bold;
}

.task-input input,
.task-input select,
.task-input button {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#addTask {
  background: #093FB4;
  color: white;
  border: none;
  cursor: pointer;
}

#addTask:hover {
  background: #0056b3;
}

/* Progress Bar */
.progress {
  margin: 20px 0;
}

.progress-bar {
  width: 100%;
  height: 15px;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
}

#progressFill {
  height: 100%;
  width: 0;
  background: #28a745;
  transition: width 0.3s;
}

/* Task List */
#taskList {
  list-style: none;
}

.task {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.task.completed {
  text-decoration: line-through;
  opacity: 0.6;
}

.priority-high { border-left: 6px solid red; }
.priority-medium { border-left: 6px solid orange; }
.priority-low { border-left: 6px solid green; }

/* Timer */
.timer {
  margin-top: 30px;
  text-align: center;
}

#timerDisplay {
  font-size: 2rem;
  margin-bottom: 10px;
}

.timer button {
  padding: 8px 12px;
  margin: 5px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #093FB4;
  color: white;
}

.timer button:hover {
  background: #0056b3;
}

/* Dark Mode */
.dark {
  background: #222;
  color: #eee;
}

.dark .task {
  background: #333;
}
/* Make task input stack on small screens */
@media (max-width: 600px) {
  .task-input {
    flex-direction: column;
    align-items: stretch;
  }

  .task-input input,
  .task-input select,
  .task-input button {
    width: 100%;
  }

  header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .timer button {
    width: 100%;
    margin: 5px 0;
  }
}
/* Task action buttons - bigger touch targets */
.action-btn {
  width: 24px;
  height: 24px;
  font-size: 20px;
  border-radius: 8px;
  border: none;
  margin-left: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.complete-btn {
  background: #28a745;
  color: white;
}

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

.delete-btn {
  background: #dc3545;
  color: white;
}

.delete-btn:hover {
  background: #c82333;
}

/* Add spacing between buttons */
.task-actions {
  display: flex;
  gap: 8px;
}

