/* ===== Basic reset so styles are consistent ===== */
* {
  box-sizing: border-box; /* Includes padding/border in width/height */
  margin: 0;
  padding: 0;
}

/* ===== Page background & general text ===== */
body {
  font-family: Arial, sans-serif; /* Clean, readable font */
  background-color: #f4f4f4; /* Light gray background */
  color: #333; /* Dark gray text */
  line-height: 1.5; /* Better readability */
  padding: 20px; /* Space around page edges */
}

/* ===== Header styling ===== */
header {
  text-align: center; /* Center the text */
  margin-bottom: 20px; /* Space below */
}

header h1 {
  color: #007bff; /* Blue heading */
  margin-bottom: 5px;
}

header p {
  color: #555; /* Slightly lighter text */
}

/* ===== Add Task form ===== */
form {
  display: flex; /* Input and button on same line */
  justify-content: center; /* Center them horizontally */
  margin-bottom: 20px; /* Space below form */
}

#task-input {
  padding: 10px;
  font-size: 16px;
  width: 250px; /* Input box width */
  border: 1px solid #ccc;
  border-radius: 5px 0 0 5px; /* Rounded on left */
}

form button {
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  background-color: #007bff; /* Blue button */
  color: rgb(231, 44, 44);
  border-radius: 0 5px 5px 0; /* Rounded on right */
  cursor: pointer; /* Pointer on hover */
}

form button:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

/* ===== Board layout ===== */
#board {
  display: flex; /* Place three columns side-by-side */
  justify-content: space-between; /* Equal space between them */
  gap: 20px; /* Space between columns */
  flex-wrap: wrap; /* Wrap on small screens */
}

/* ===== Each column ===== */
#board section {
  background-color: white;
  padding: 15px;
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Light shadow */
  flex: 1; /* Columns take equal space */
  min-width: 250px; /* Prevent columns from shrinking too small */
}

#board h2 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #007bff;
}

/* ===== Task list ===== */
ul {
  list-style: none; /* Remove bullets */
}

ul li {
  background: #f9f9f9; /* Light gray background */
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 5px;
  display: flex; /* Text and buttons side-by-side */
  justify-content: space-between; /* Push buttons to right */
  align-items: center;
  border: 1px solid #ddd;
}

/* ===== Buttons for actions ===== */
.actions button {
  margin-left: 5px;
  padding: 5px 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.todo-btn {
  background-color: #007bff;
  color: white;
}

.pending-btn {
  background-color: #ff9800;
  color: white;
}

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

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

.actions button:hover {
  opacity: 0.9; /* Slight fade effect */
}
