/* Backlog / Tasks page */
.backlog-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.backlog-loading, .backlog-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: 14px;
}
.backlog-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 4px 4px;
  border-bottom: 1px solid var(--border);
  margin: 4px 0;
}
.backlog-section-title:first-child {
  margin-top: 0;
}
.backlog-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.backlog-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 8px;
}
.backlog-item-title {
  font-weight: 600;
  font-size: 15px;
  flex: 1;
  min-width: 0;
  word-break: break-word;
  line-height: 1.4;
}
.backlog-item-status {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}
.backlog-item-status.active {
  background: rgba(46, 166, 255, 0.15);
  color: var(--accent);
}
.backlog-item-status.backlog {
  background: rgba(240, 160, 64, 0.15);
  color: var(--warning);
}
.backlog-item-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.backlog-item-path {
  font-size: 12px;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 4px;
}
.backlog-item-id {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.5;
  font-family: monospace;
  margin-bottom: 6px;
}
.backlog-item-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.backlog-item-actions button {
  padding: 8px 14px;
  font-size: 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.backlog-item-actions button:hover { border-color: var(--accent); color: var(--accent); }
.backlog-item-actions .btn-delete:hover { border-color: var(--danger); color: var(--danger); }
.backlog-item-actions .btn-go:hover { border-color: #22c55e; color: #22c55e; }
.backlog-item-actions .btn-done:hover { border-color: #22c55e; color: #22c55e; }

/* Confirmation modal */
.bl-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.bl-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px 20px;
  width: 320px;
  max-width: 85vw;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.bl-modal-icon {
  font-size: 36px;
  margin-bottom: 12px;
  line-height: 1;
}
.bl-modal-text {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.4;
}
.bl-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.bl-modal-actions button {
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.bl-modal-cancel {
  background: var(--bg-hover);
  color: var(--text-muted);
}
.bl-modal-cancel:hover {
  background: var(--border);
  color: var(--text);
}
.bl-modal-confirm {
  background: var(--accent);
  color: #fff;
}
.bl-modal-confirm:hover {
  opacity: 0.9;
}

