/* =============================================================
   TASKS — Lista de tareas, checkboxes, filtros, paneles colapsables
   ============================================================= */

.task-list { display: flex; flex-direction: column; gap: 12px; }

.task-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  align-items: center;
  transition: var(--transition);
  position: relative;
}
.task-item:hover { 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-hover); 
  border-color: var(--primary);
}
.task-item.done {
  background: #f8fafc;
  border-color: transparent;
  opacity: 0.7;
}
.task-item.critical-task { border-left: 4px solid var(--danger); background: #fef2f2; }

/* Reasignadas */
.reassigned-banner {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #78350f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.task-item.is-reassigned {
  border-top: none !important;
  border-radius: 0 0 12px 12px;
  margin-top: 0 !important;
}
.task-item-wrapper {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
  border: 1.5px solid #fcd34d;
}

/* Checkbox */
.check-box {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer;
  transition: var(--transition);
}
.check-box:hover { background: #e2e8f0; }
.check-box.active { 
  background: var(--success); 
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

/* Secciones colapsables */
.task-section-toggle {
  width: 100%;
  background: #F2F2F7;
  border: none;
  padding: 12px 15px;
  border-radius: 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #1C1C1E;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-top: 15px;
  margin-bottom: 8px;
  transition: background 0.2s;
}
.task-section-toggle:active { background: #E5E5EA; }
.task-section-toggle .count-badge {
  background: #E5E5EA;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  color: #8E8E93;
}
.collapsible-content {
  display: none; 
  animation: slideDown 0.3s ease-out;
}

/* Filtros */
.view-tareas__div-1 {
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-user {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  outline: none;
  flex-grow: 1;
  max-width: 200px;
}

/* Botón de apoyo */
.btn-apoyo {
  border: none;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  background: #fff7ed;
  color: #9a3412;
  cursor: pointer;
}