/* General page styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f0f2f5;
  color: #333333;
}

/* Top navbar */
.navbar {
  background-color: #1e3a5f;
}

.navbar-brand {
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
}

/* Stats cards at the top */
.stats-box {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  margin-bottom: 10px;
}

.stats-box .count {
  font-size: 2rem;
  font-weight: bold;
}

.stats-box.total .count {
  color: #1e3a5f;
}

.stats-box.pending .count {
  color: #f59e0b;
}

.stats-box.done .count {
  color: #22c55e;
}

.stats-box .label {
  font-size: 0.8rem;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Add task form area */
.add-task-section {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.add-task-section h5 {
  color: #1e3a5f;
  font-weight: bold;
  margin-bottom: 14px;
}

/* Error message shown when title is empty */
.error-msg {
  display: none;
  color: red;
  font-size: 0.82rem;
  margin-top: 5px;
}

/* Filter buttons row */
.filter-section {
  margin-bottom: 16px;
}

.filter-btn {
  background-color: white;
  border: 1px solid #cccccc;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  margin-right: 8px;
}

.filter-btn.active {
  background-color: #1e3a5f;
  color: white;
  border-color: #1e3a5f;
}

/* Each task card */
.task-card {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  border-left: 4px solid #1e3a5f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

/* Completed tasks look slightly faded */
.task-card.task-done {
  border-left-color: #22c55e;
  opacity: 0.82;
}

/* Top row inside each card - title and badge */
.task-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.task-name {
  font-size: 0.97rem;
}

/* Small description text */
.task-desc {
  font-size: 0.85rem;
  color: #666666;
  margin-bottom: 10px;
}

/* Status badge - pending or completed */
.task-badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.task-badge.pending {
  background-color: #fff3cd;
  color: #856404;
}

.task-badge.completed {
  background-color: #d1fae5;
  color: #065f46;
}

/* Buttons at the bottom of each card */
.task-btns {
  display: flex;
  gap: 8px;
}

/* Message when no tasks are found */
.no-task-msg {
  text-align: center;
  color: #aaaaaa;
  padding: 30px 0;
  font-size: 0.95rem;
}
