/**
 * Project Board — Board-specific CSS
 *
 * Supplements Tailwind utilities. BEM class prefix: pb-
 */

/* ── Loading / Empty states ─────────────────────────────────────────────── */

.pb-loading-state,
.pb-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  color: #6B7280;
}

.pb-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #E5E7EB;
  border-top-color: #3B82F6;
  border-radius: 50%;
  animation: pb-spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes pb-spin {
  to { transform: rotate(360deg); }
}

.pb-empty-icon {
  font-size: 48px;
  color: #D1D5DB;
  margin-bottom: 16px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.pb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #E5E7EB;
  flex-wrap: wrap;
  gap: 12px;
}

.pb-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pb-header__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.pb-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pb-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pb-status-badge--active {
  background: #D1FAE5;
  color: #065F46;
}

.pb-status-badge--archived {
  background: #F3F4F6;
  color: #6B7280;
}

/* ── Members ────────────────────────────────────────────────────────────── */

.pb-members {
  display: flex;
  align-items: center;
  gap: -8px;
}

.pb-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3B82F6;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  margin-left: -8px;
  cursor: default;
  position: relative;
  z-index: 1;
}

.pb-member-avatar:first-child { margin-left: 0; }

/* ── Board selector ─────────────────────────────────────────────────────── */

#pb-board-selector {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
}

.pb-select {
  padding: 6px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fff;
}

/* ── Columns scroll container ───────────────────────────────────────────── */

.pb-columns-scroll {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  padding: 24px;
  gap: 16px;
  min-height: calc(100vh - 180px);
  background: #F3F4F6;
}

/* ── Columns flex container ─────────────────────────────────────────────── */

.pb-columns {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

/* ── Column ─────────────────────────────────────────────────────────────── */

.pb-column {
  flex: 0 0 280px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 200px);
  border-top: 3px solid transparent;
}

.pb-column__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #F3F4F6;
}

.pb-column__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pb-column__count {
  font-size: 0.75rem;
  color: #9CA3AF;
  background: #F3F4F6;
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 8px;
}

.pb-column__actions {
  display: flex;
  gap: 4px;
}

.pb-column__action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #9CA3AF;
  padding: 4px;
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.pb-column__action-btn:hover {
  color: #374151;
  background: #F3F4F6;
}

.pb-column__tasks {
  padding: 8px;
  overflow-y: auto;
  flex: 1;
}

.pb-column__add-task {
  padding: 8px;
  border-top: 1px solid #F3F4F6;
}

.pb-add-task-btn {
  width: 100%;
  background: none;
  border: 1px dashed #D1D5DB;
  border-radius: 6px;
  padding: 8px;
  font-size: 0.8rem;
  color: #6B7280;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.pb-add-task-btn:hover {
  border-color: #3B82F6;
  color: #3B82F6;
}

/* ── Task Card ──────────────────────────────────────────────────────────── */

.pb-task-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.1s;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.pb-task-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.pb-task-card--ghost {
  opacity: 0.5;
}

.pb-task-card--drag-over {
  border-color: #3B82F6;
}

.pb-task-card__drag-handle {
  color: #D1D5DB;
  cursor: grab;
  padding-top: 2px;
  font-size: 0.8rem;
}

.pb-task-card__drag-handle:active {
  cursor: grabbing;
}

.pb-task-card__body {
  flex: 1;
  min-width: 0;
}

.pb-task-card__title {
  font-size: 0.875rem;
  color: #111827;
  margin: 0 0 6px;
  white-space: normal;
  word-break: break-word;
}

.pb-task-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pb-task-card__priority {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.pb-task-card__priority--low    { background: #ECFDF5; color: #065F46; }
.pb-task-card__priority--medium { background: #EFF6FF; color: #1D4ED8; }
.pb-task-card__priority--high   { background: #FFF7ED; color: #92400E; }
.pb-task-card__priority--urgent { background: #FEF2F2; color: #991B1B; }

.pb-task-card__assignee {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #6366F1;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pb-task-card__due-date {
  font-size: 0.7rem;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 3px;
}

.pb-task-checklist-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  color: #6B7280;
  background: #F3F4F6;
  border-radius: 4px;
  padding: 1px 5px;
}

.pb-task-checklist-badge--complete {
  color: #059669;
  background: #D1FAE5;
}

/* ── Add column area ────────────────────────────────────────────────────── */

.pb-add-column-area {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.pb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.4;
}

.pb-btn--primary {
  background: #3B82F6;
  color: #fff;
  border-color: #3B82F6;
}
.pb-btn--primary:hover { background: #2563EB; }

.pb-btn--secondary {
  background: #F9FAFB;
  color: #374151;
  border-color: #D1D5DB;
}
.pb-btn--secondary:hover { background: #F3F4F6; }

.pb-btn--ghost {
  background: rgba(255,255,255,.8);
  color: #6B7280;
  border: 1px dashed #D1D5DB;
}
.pb-btn--ghost:hover { background: #fff; color: #374151; }

.pb-btn--danger {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FCA5A5;
}
.pb-btn--danger:hover { background: #FEE2E2; }

/* ── Invite modal form ──────────────────────────────────────────────────── */

.pb-invite-form {
  padding: 8px 0;
}

/* ── Task detail modal overlay
 * Use ID + class to beat any Tailwind .modal-overlay rules that set
 * opacity:0 / pointer-events:none / z-index:50.
 * ─────────────────────────────────────────────────────────────────────── */

#pb-modal-overlay.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(34, 40, 49, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#pb-modal-overlay.modal-overlay.modal-overlay--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#pb-modal-content {
  width: 100%;
  display: contents;
}
/* ── Task detail modal ──────────────────────────────────────────────────── */

#pb-modal-overlay .modal--lg {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

#pb-modal-overlay .modal__body {
  overflow-y: auto;
  flex: 1;
}

/* ── Task Activity log ──────────────────────────────────────────────────── */

.pb-task-activity {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #E5E7EB;
}

.pb-task-activity__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  margin: 0 0 8px;
}

.pb-task-activity__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pb-task-activity__placeholder {
  font-size: 0.8rem;
  color: #9CA3AF;
}

/* ── Overview card (embedded in contract view) ──────────────────────────── */

.pb-overview-card {
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 16px 20px;
  background: #fff;
  margin: 16px 0;
}

.pb-overview-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.pb-overview-card__title {
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1;
}

.pb-overview-card__link {
  font-size: 0.8rem;
  color: #3B82F6;
  text-decoration: none;
}

.pb-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: #E5E7EB;
  overflow: hidden;
  margin-bottom: 6px;
}

.pb-progress-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: #10B981;
  transition: width 0.4s ease;
}

.pb-progress-label {
  font-size: 0.75rem;
  color: #6B7280;
}

.pb-overview-card__columns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pb-col-badge {
  font-size: 0.75rem;
  padding: 3px 10px 3px 8px;
  background: #F9FAFB;
  border-radius: 4px;
  color: #374151;
}

/* ── Archived state ─────────────────────────────────────────────────────── */

.pb-archived-banner {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: #92400E;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 24px;
}

/* ── Contract-view PMB section ──────────────────────────────────────────── */

.pmb-contract-section {
  margin: 16px 0;
  padding: 16px 20px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
}

.pmb-contract-section__heading {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pmb-contract-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pmb-contract-card--empty {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.pmb-contract-card--empty p {
  margin: 0;
  color: #6B7280;
  font-size: 0.875rem;
}

.pmb-contract-card__info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pmb-contract-card__status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.pmb-contract-card__status--active  { background: #D1FAE5; color: #065F46; }
.pmb-contract-card__status--archived { background: #F3F4F6; color: #6B7280; }

.pmb-contract-card__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

/* ── PMB Board List page ─────────────────────────────────────────────────── */

.pmb-list-page {
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.pmb-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pmb-list-header__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pmb-invitations-notice {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.pmb-invitations-notice h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #92400E;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pmb-invitations-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pmb-invitation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pmb-invitation-item__board {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.pmb-invitation-item__actions {
  display: flex;
  gap: 8px;
}

.pmb-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  color: #6B7280;
}

.pmb-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.pmb-board-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.15s;
}

.pmb-board-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.pmb-board-card--archived {
  opacity: 0.75;
}

.pmb-board-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.pmb-board-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.pmb-board-card__title a {
  color: #111827;
  text-decoration: none;
}

.pmb-board-card__title a:hover { color: #3B82F6; }

.pmb-board-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pmb-board-card__stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: #6B7280;
}

.pmb-board-card__link {
  margin-top: auto;
  text-decoration: none;
}

/* ── PMB Single Board page ───────────────────────────────────────────────── */

.pmb-board-page__back {
  padding: 12px 24px 0;
}

.pmb-back-link {
  font-size: 0.875rem;
  color: #6B7280;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}

.pmb-back-link:hover { color: #3B82F6; }

/* ── Column modal ───────────────────────────────────────────────────────── */

.pb-col-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(3px);
  animation: pb-fade-in 0.15s ease;
}

@keyframes pb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pb-col-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  width: 100%;
  max-width: 440px;
  margin: 16px;
  animation: pb-slide-up 0.15s ease;
}

@keyframes pb-slide-up {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.pb-col-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #F3F4F6;
}

.pb-col-modal__title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.pb-col-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: #9CA3AF;
  padding: 4px;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.pb-col-modal__close:hover {
  color: #374151;
  background: #F3F4F6;
}

.pb-col-modal__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pb-col-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid #F3F4F6;
}

.pb-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pb-form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.pb-form-label .pb-required {
  color: #EF4444;
  margin-left: 2px;
}

.pb-form-input,
.pb-form-select {
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.pb-form-input:focus,
.pb-form-select:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.pb-form-input--error,
.pb-form-select--error {
  border-color: #EF4444;
}

.pb-form-input--error:focus,
.pb-form-select--error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.pb-field-error {
  font-size: 0.75rem;
  color: #EF4444;
  display: none;
}

.pb-field-error--visible {
  display: block;
}

/* Color swatches */
.pb-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.pb-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.1s;
  flex-shrink: 0;
}

.pb-color-swatch:hover {
  transform: scale(1.15);
}

.pb-color-swatch--selected {
  border-color: #111827;
  transform: scale(1.1);
}

.pb-color-swatch--none {
  background: #F3F4F6;
  border: 2px dashed #D1D5DB;
  position: relative;
}

.pb-color-swatch--none::after {
  content: '✕';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #9CA3AF;
}

/* Delete confirm modal */
.pb-del-modal__warning {
  font-size: 0.875rem;
  color: #374151;
  margin: 0;
  line-height: 1.6;
}

.pb-del-modal__extra-warning {
  margin: 10px 0 0;
  padding: 10px 14px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #991B1B;
}

/* Btn loading state */
.pb-btn--loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: not-allowed;
}

.pb-btn--loading::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: pb-spin 0.7s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── Toast notifications ─────────────────────────────────────────────────── */

.pb-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.pb-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
  animation: pb-toast-in 0.2s ease;
  max-width: 360px;
}

@keyframes pb-toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.pb-toast--out {
  animation: pb-toast-out 0.25s ease forwards;
}

@keyframes pb-toast-out {
  to { transform: translateX(110%); opacity: 0; }
}

.pb-toast--success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #6EE7B7;
}

.pb-toast--error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.pb-toast--info {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .pb-columns-scroll {
    padding: 12px;
    gap: 10px;
  }

  .pb-column {
    flex: 0 0 260px;
  }

  .pb-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Task Checklist ──────────────────────────────────────────────────────── */

.pb-checklist {
  margin-top: 20px;
  border-top: 1px solid #E5E7EB;
  padding-top: 16px;
}

.pb-checklist__header {
  margin-bottom: 8px;
}

.pb-checklist__title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.pb-checklist__progress-text {
  font-weight: 400;
  color: #6B7280;
  font-size: 12px;
}

.pb-checklist__progress-wrap {
  height: 6px;
  background: #E5E7EB;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.pb-checklist__progress-fill {
  height: 100%;
  background: #10B981;
  border-radius: 3px;
  transition: width 0.2s ease;
  width: 0%;
}

.pb-checklist__list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pb-checklist__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #F9FAFB;
  transition: background 0.15s;
}

.pb-checklist__item:hover {
  background: #F3F4F6;
}

.pb-checklist__checkbox {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #10B981;
}

/* ── Circle check button (replaces native checkbox) ── */
.pb-checklist__check-btn {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  padding: 0;
  line-height: 1;
}

.pb-checklist__check-btn:hover {
  border-color: #10B981;
  color: #10B981;
}

.pb-checklist__check-btn--done {
  background: #10B981;
  border-color: #10B981;
  color: #fff;
}

.pb-checklist__check-btn--done:hover {
  background: #059669;
  border-color: #059669;
  color: #fff;
}

.pb-checklist__label {
  flex: 1;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  margin: 0;
  line-height: 1.4;
}

.pb-checklist__item--done .pb-checklist__label {
  text-decoration: line-through;
  color: #9CA3AF;
}

.pb-checklist__del {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  color: #9CA3AF;
  font-size: 11px;
  line-height: 1;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}

.pb-checklist__item:hover .pb-checklist__del {
  opacity: 1;
}

.pb-checklist__del:hover {
  color: #EF4444;
}

.pb-checklist__add {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pb-checklist__new-input {
  flex: 1;
  font-size: 13px;
}

.pb-btn--sm {
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.4;
}
