/* widgets/priority/priority.css */

.widget-priority {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-size: 0.9rem;
  gap: 0.4rem;
}

/* Container for the four bands */
.priority-groups {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-height: 0;
}

/* One band (High / Medium / Low / Overdue) */
.priority-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

/* Band title row */
.priority-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

/* Slight color cues per band (optional, subtle) */
.priority-group--high .priority-group-title {
  color: var(--color-accent);
}

.priority-group--medium .priority-group-title {
  color: var(--color-accent);
}

.priority-group--low .priority-group-title {
  color: var(--color-accent);
}

.priority-group--overdue .priority-group-title {
  color: var(--color-accent);
}

/* List of items inside a band */
.priority-group-list {
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 1.1rem;
  overflow: hidden;
}

/* Single task row */
.priority-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.3rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

/* Checkbox left edge */
.priority-checkbox {
  flex: 0 0 auto;
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

/* Main text area (title + due) */
.priority-item-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

/* Title */
.priority-item-title {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 0.85rem;
}

/* Due badge */
.priority-item-due {
  flex: 0 0 auto;
  font-size: 0.75rem;
  opacity: 0.78;
  white-space: nowrap;
}

/* Completed state: strike-through + dim */
.priority-item.priority-item--completed .priority-item-title {
  text-decoration: line-through;
  opacity: 0.6;
}

.priority-item.priority-item--completed .priority-checkbox {
  opacity: 0.8;
}

/* Empty state per band */
.priority-empty {
  font-size: 0.78rem;
  opacity: 0.7;
  padding: 0.1rem 0.2rem;
}

/* "+N more" line when maxPerBand clips */
.priority-more {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 0.05rem;
}

/* Meta line at bottom of widget */
.priority-meta {
  font-size: 0.75rem;
  opacity: 0.8;
  text-align: right;
}