/* Reset some default styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a{
  text-decoration:none;
}

/* Body styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f1f1f1;
  color: #333;
  padding: 20px;
}

body.dark-mode {
  font-family: Arial, sans-serif;
  background-color: #0d0d0d;
  color: #fff;
  padding: 20px;
}

/* Board container styles */
.board {
  display: grid;
  grid-template-columns: 1fr; /* Change to a single column layout */
  grid-gap: 20px; /* Add gap between items */
}

/* Column styles */
.column {
  padding: 10px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.column h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

/* Task list styles */
.task-list {
  min-height: 200px;
  padding: 10px;
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Task styles */
.task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  cursor: move;
}

.task-content {
  flex: 1;
  color: #333;
}

.delete-button {
  background-color: #ff4d4f;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.delete-button:hover {
  background-color: #ff3333;
}

/* Form styles */
#task-form {
  margin-top: 10px;
}

#task-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #555;
  border-radius: 4px;
  color: #333;
  background-color: #fff;
}

#task-input:focus {
  outline: none;
  border-color: #999;
}

button[type="submit"] {
  margin-top: 10px;
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #45a049;
}

.header-bar {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #333;
  padding: 10px;
}

.header-bar h1 {
  font-size: 24px;
  margin: 0;
  font-weight: bold;
  text-transform: uppercase;
}

/* Responsive styles */
@media screen and (min-width: 1000px) {
  /* Restore the original grid layout on larger screens */
  .board {
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 0; /* Remove the gap between columns */
  }
}

.toggle-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
  padding-right: 20px;
}

.toggle-label {
  margin-right: 10px;
  padding-left: 10px; /* Add padding to the left */
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Additional CSS for padding on Dark Mode label */
.toggle-label:last-child {
  padding-left: 20px; /* Add padding to the left of the last toggle label */
}

.message {
  margin-top: 10px;
  margin-right: 5px;
  font-size: 12px;
  text-decoration: none;
  text-align: right;
}


/* ------------------------------------------------------------------------
   NEW: Style Reset List and Undo Delete buttons identically to Add Task
   ------------------------------------------------------------------------ */
#resetButton,
#undoButton {
  display: block;
  margin-top: 8px;
  background-color: #ff4d4f;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

#resetButton:hover {
  background-color: #a04545;
}
#undoButton:hover {
  background-color: #4caf50;
}