body {
  font-family: Arial, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
}

#task-form {
  /* Styles moved to .modal-content or no longer needed */
}

#task-form label {
  font-weight: bold;
  margin-top: 10px;
  display: block;
}

#task-form input,
#task-form select,
#task-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 14px;
}


#show-form-btn {
  display: block;
  margin: 20px auto;
  font-size: 32px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #007bff;
  color: white;
  cursor: pointer;
  position: fixed;
  bottom: 20px;
  right: 20px;
}

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

.task {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.task:focus, .calendar-task:focus {
  outline: none; /* Remove default browser outline */
  border-color: #007bff; /* Blue border */
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5); /* Softer blue glow, good for accessibility */
}

.task.pending {
  background-color: #ffe6e6;
}

.task.in-progress {
  background-color: #ffe5cc;
}

.task.completed {
  background-color: #e0ffe0;
}

.task.dragging {
  opacity: 0.5;
}

label {
  display: block;
  margin-top: 10px;
}

input,
select,
textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
}

button {
  margin-top: 10px;
}

.controls button {
  margin-right: 10px;
}

.kanban {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.kanban-column {
  flex: 1;
  background: #f0f0f0;
  border-radius: 8px;
  padding: 10px;
  min-height: 300px;
}

.kanban-column h3 {
  text-align: center;
}

.kanban-column.drag-over {
  background-color: #d0e7ff;
  transition: background-color 0.2s;
}

.tag {
  cursor: pointer;
  color: blue;
  margin-right: 5px;
}

.tag:hover {
  text-decoration: underline;
}

#filter-indicator {
  margin-top: 10px;
  font-style: italic;
  text-align: center;
}

#filter-indicator .clear-filter {
  margin-left: 10px;
  cursor: pointer;
  color: red;
  font-weight: bold;
  text-decoration: none;
}

#filter-indicator .clear-filter:hover {
  text-decoration: underline;
}

.emoji-button {
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  cursor: pointer;
}

#calendar-view {
  margin-top: 40px;
  display: none;
}

#calendar-view h2 {
  text-align: center;
}

.calendar-board {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.calendar-column {
  flex: 1;
  background: #f0f0f0;
  border-radius: 8px;
  padding: 10px;
  min-height: 300px;
}

.calendar-column h3 {
  text-align: center;
}

.calendar-day {
  margin-bottom: 15px;
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-day h4 {
  margin-bottom: 5px;
  font-size: 14px;
}

.calendar-task {
  margin-bottom: 8px;
  padding: 6px;
  border-radius: 6px;
  background-color: #f9f9f9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#view-toggle {
  text-align: center;
  margin: 20px auto;
  bottom: 20px;
  right: 50px;
}

#view-toggle button {
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  background: #007bff;
  color: white;
}

/* Help Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  position: relative;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#help-modal ul {
  list-style-type: none;
  padding-left: 0;
}

#help-modal li {
  margin-bottom: 8px;
}

#help-modal li strong {
  display: inline-block;
  width: 150px; /* Adjust as needed for alignment */
  font-weight: bold;
}