/* ===== General Layout ===== */
body { font-family: Arial, sans-serif; margin: 10px; line-height: 1.5; background: #f9f9f9; }
h1 { color: #333; }
a { text-decoration: none; color: #007BFF; }
a:hover { text-decoration: underline; }
form { margin-bottom: 20px; }
input, select, button { margin: 5px 0; padding: 8px; font-size: 1em; }
ul { list-style: none; padding: 0; margin: 0; }
li { margin: 10px 0; padding: 10px; border-radius: 6px; background: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* ===== Task Status / Priority ===== */
.completed { text-decoration: line-through; color: gray; }
li.overdue { background: #ffe6e6; }
li.today { background: #fff4e6; }
li.no-date { background: #f0f0f0; }

.priority.low { color: green; font-weight: bold; }
.priority.medium { color: orange; font-weight: bold; }
.priority.high { color: red; font-weight: bold; }

/* ===== Task Details Layout ===== */
.task-details { flex: 1 1 60%; }
.task-actions { flex: 1 1 35%; text-align: right; display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
small { color: #666; margin-left: 5px; font-style: italic; font-size: 0.9em; }

/* ===== Floating Bulk Complete Button ===== */
.floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: none;
  z-index: 100;
}
.floating-btn:hover { background: #218838; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
    li { flex-direction: column; align-items: flex-start; }
    .task-actions { text-align: left; justify-content: flex-start; }
}

/* ===== Agenda View ===== */
.agenda-section { margin-bottom: 20px; }
.agenda-section h2 { margin-bottom: 10px; }
.agenda-item { padding: 8px; border-bottom: 1px solid #ddd; }
.agenda-item:last-child { border-bottom: none; }

/* ===== Category Badge for Agenda View ===== */
.category-badge {
  background-color: #e7f1ff;
  color: #0056b3;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.85em;
  font-weight: 600;
  margin-left: 8px;
  display: inline-block;
}
