/* ==========================================================================
   ORBIFY LIFE — CHECKLISTS SYSTEM
   Minimalist, Elegant Apple/Notion Bento Checklist Cards & Modal
   ========================================================================== */

.checklists-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  min-height: calc(100vh - 60px);
  background: var(--bg-deep, #0a0b0e);
  color: var(--text-main, #f5f5f5);
  box-sizing: border-box;
}

body.dashboard-theme-white .checklists-wrapper {
  background: #f8fafc !important;
  color: #0f172a !important;
}

/* ==========================================================================
   1. EMPTY STATE (CENTRAL "+" BUTTON)
   ========================================================================== */
.checklists-empty-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  margin: auto;
}

.btn-create-checklist-central {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(165, 255, 143, 0.12);
  border: 1.5px solid rgba(165, 255, 143, 0.35);
  color: var(--color-life, #a5ff8f);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 28px rgba(165, 255, 143, 0.1);
  outline: none;
}

.btn-create-checklist-central:hover {
  background: var(--color-life, #a5ff8f);
  border-color: var(--color-life, #a5ff8f);
  color: #0a0b0e;
  transform: scale(1.1);
  box-shadow: 0 0 35px rgba(165, 255, 143, 0.35);
}

.btn-create-checklist-central:active {
  transform: scale(0.96);
}

.checklists-empty-label {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-secondary, #94a3b8);
  margin-top: 1rem;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

body.dashboard-theme-white .btn-create-checklist-central {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

body.dashboard-theme-white .btn-create-checklist-central:hover {
  background: #15803d;
  border-color: #15803d;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(21, 128, 61, 0.25);
}

body.dashboard-theme-white .checklists-empty-label {
  color: #64748b;
}

/* ==========================================================================
   2. CHECKLISTS HEADER BAR (WHEN ITEMS EXIST)
   ========================================================================== */
.checklists-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card, rgb(21 21 21 / 85%));
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

body.dashboard-theme-white .checklists-toolbar {
  background: rgb(252 252 252 / 93%);
  border-color: rgba(0, 0, 0, 0.06);
}

.checklists-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checklists-toolbar-title {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-bright);
  margin: 0;
}

body.dashboard-theme-white .checklists-toolbar-title {
  color: #0f172a;
}

.checklists-count-pill {
  font-size: 0.72rem;
  font-weight: 400;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

body.dashboard-theme-white .checklists-count-pill {
  background: #f1f5f9;
  color: #64748b;
}

.btn-new-checklist {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 400;
  background: rgba(165, 255, 143, 0.16);
  border: 1px solid rgba(165, 255, 143, 0.35);
  color: var(--color-life, #a5ff8f);
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.btn-new-checklist:hover {
  background: rgba(165, 255, 143, 0.25);
  border-color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .btn-new-checklist {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
}

body.dashboard-theme-white .btn-new-checklist:hover {
  background: #166534;
}

/* ==========================================================================
   3. CHECKLISTS GRID & CARDS
   ========================================================================== */
.checklists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.checklist-card {
  background: var(--bg-card, rgb(21 21 21 / 85%));
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.2s ease, transform 0.18s ease;
  position: relative;
  overflow: hidden;
  max-height: 380px;
  box-sizing: border-box;
}

.checklist-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

body.dashboard-theme-white .checklist-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

body.dashboard-theme-white .checklist-card:hover {
  border-color: rgba(0, 0, 0, 0.16);
}

/* Color Accent Top Bar */
.checklist-card-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

/* Card Header */
.checklist-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.checklist-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.checklist-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 400;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.checklist-card-title {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-bright);
  letter-spacing: -0.015em;
  margin: 0;
  word-break: break-word;
}

body.dashboard-theme-white .checklist-card-title {
  color: #0f172a;
}

.checklist-card-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.btn-card-action {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.8rem;
}

.btn-card-action:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-bright);
}

body.dashboard-theme-white .btn-card-action:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-card-action.delete-btn:hover {
  color: #ef4444;
}

/* Progress bar */
.checklist-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.checklist-progress-text-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--text-muted);
}

body.dashboard-theme-white .checklist-progress-text-row {
  color: #64748b;
}

.checklist-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

body.dashboard-theme-white .checklist-progress-track {
  background: #f1f5f9;
}

.checklist-progress-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Items List */
.checklist-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
  flex: 1;
  min-height: 0;
  max-height: 185px;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.checklist-items-list::-webkit-scrollbar {
  width: 4px;
}

.checklist-items-list::-webkit-scrollbar-track {
  background: transparent;
}

.checklist-items-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  transition: background 0.15s ease;
}

.checklist-items-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

body.dashboard-theme-white .checklist-items-list {
  scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}

body.dashboard-theme-white .checklist-items-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.22);
}

body.dashboard-theme-white .checklist-items-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.38);
}

.checklist-item-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.checklist-item-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

body.dashboard-theme-white .checklist-item-row {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.04);
}

body.dashboard-theme-white .checklist-item-row:hover {
  background: #f1f5f9;
}

.checklist-item-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  font-size: 0.68rem;
  color: transparent;
}

.checklist-item-row.completed .checklist-item-check {
  color: #000000;
  border-color: currentColor;
}

.checklist-item-text {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.35;
  flex: 1;
  word-break: break-word;
  transition: all 0.15s ease;
}

body.dashboard-theme-white .checklist-item-text {
  color: #1e293b;
}

.checklist-item-row.completed .checklist-item-text {
  text-decoration: line-through;
  opacity: 0.55;
  color: var(--text-muted);
}

.btn-delete-item {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.checklist-item-row:hover .btn-delete-item {
  opacity: 1;
}

.btn-delete-item:hover {
  color: #ef4444;
}

/* Inline Quick Add */
.checklist-quick-add-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.checklist-quick-add-input {
  flex: 1;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.checklist-quick-add-input:focus {
  border-color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .checklist-quick-add-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-quick-add-item {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.75rem;
}

.btn-quick-add-item:hover {
  background: rgba(165, 255, 143, 0.2);
  color: var(--color-life, #a5ff8f);
  border-color: var(--color-life, #a5ff8f);
}

/* ==========================================================================
   4. MODAL: CRIAR / EDITAR CHECKLIST
   ========================================================================== */
.checklist-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.checklist-modal-backdrop.hidden {
  display: none !important;
}

.checklist-modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: #141518;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  overflow-y: auto;
  box-sizing: border-box;
}

body.dashboard-theme-white .checklist-modal-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.checklist-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checklist-modal-title {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-bright);
  margin: 0;
}

body.dashboard-theme-white .checklist-modal-title {
  color: #0f172a;
}

.btn-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.95rem;
}

.btn-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-bright);
}

.checklist-modal-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.checklist-modal-input:focus {
  border-color: var(--color-life, #a5ff8f);
  background: rgba(255, 255, 255, 0.06);
}

body.dashboard-theme-white .checklist-modal-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.dashboard-theme-white .checklist-modal-input:focus {
  border-color: #15803d;
  background: #ffffff;
}

.category-preset-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.category-pill-btn {
  font-size: 0.72rem;
  font-weight: 400;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.category-pill-btn:hover {
  background: rgba(165, 255, 143, 0.15);
  border-color: rgba(165, 255, 143, 0.3);
  color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .category-pill-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

body.dashboard-theme-white .category-pill-btn:hover {
  background: rgba(21, 128, 61, 0.12);
  border-color: rgba(21, 128, 61, 0.3);
  color: #15803d;
}

/* Color Palette Circles Selector */
.color-picker-circles-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.35rem 0;
}

.color-circle-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.65rem;
  padding: 0;
}

.color-circle-btn:hover {
  transform: scale(1.15);
}

.color-circle-btn.selected {
  transform: scale(1.2);
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

body.dashboard-theme-white .color-circle-btn.selected {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

/* Modal Items Builder */
.modal-items-builder {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-builder-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.builder-item-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

body.dashboard-theme-white .builder-item-row {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.builder-item-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-bright);
}

body.dashboard-theme-white .builder-item-text {
  color: #0f172a;
}

.btn-remove-builder-item {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.btn-remove-builder-item:hover {
  color: #ef4444;
}

.builder-add-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.builder-add-input {
  flex: 1;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}

.builder-add-input:focus {
  border-color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .builder-add-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-builder-add {
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-builder-add:hover {
  background: rgba(165, 255, 143, 0.2);
  color: var(--color-life, #a5ff8f);
  border-color: var(--color-life, #a5ff8f);
}

/* Modal Actions */
.checklist-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-modal-cancel {
  padding: 0.6rem 1.15rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 400;
  cursor: pointer;
  font-family: inherit;
}

.btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-bright);
}

body.dashboard-theme-white .btn-modal-cancel {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.btn-modal-submit {
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  background: var(--color-life, #a5ff8f);
  border: 1px solid var(--color-life, #a5ff8f);
  color: #0a0b0e;
  font-size: 0.84rem;
  font-weight: 400;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
}

.btn-modal-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

body.dashboard-theme-white .btn-modal-submit {
  background: #15803d;
  border-color: #15803d;
  color: #ffffff;
}

body.dashboard-theme-white .btn-modal-submit:hover {
  background: #166534;
}

/* ==========================================================================
   5. COLLABORATION (CONVIDAR PARCEIRO / ESPOSA / MEMBROS)
   ========================================================================== */
.checklist-shared-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 400;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #38bdf8;
  width: fit-content;
  letter-spacing: 0.01em;
}

.checklist-shared-badge.shared-with-me {
  background: rgba(192, 132, 252, 0.12);
  border-color: rgba(192, 132, 252, 0.28);
  color: #c084fc;
}

body.dashboard-theme-white .checklist-shared-badge {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0284c7;
}

body.dashboard-theme-white .checklist-shared-badge.shared-with-me {
  background: #f3e8ff;
  border-color: #e9d5ff;
  color: #7e22ce;
}

.btn-card-action.collab-btn {
  color: var(--text-muted);
  position: relative;
}

.btn-card-action.collab-btn:hover {
  color: var(--color-life, #a5ff8f);
  background: rgba(165, 255, 143, 0.15);
}

body.dashboard-theme-white .btn-card-action.collab-btn:hover {
  color: #15803d;
  background: rgba(21, 128, 61, 0.12);
}

.collab-count-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--color-life, #a5ff8f);
  color: #0a0b0e;
  font-size: 0.58rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  border: 1.5px solid #141518;
}

body.dashboard-theme-white .collab-count-dot {
  background: #15803d;
  color: #ffffff;
  border-color: #ffffff;
}

.collab-invite-box {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.dashboard-theme-white .collab-invite-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.collab-members-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.collab-members-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 220px;
  overflow-y: auto;
}

.collab-member-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

body.dashboard-theme-white .collab-member-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.collab-member-avatar-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collab-member-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  display: block;
}

body.dashboard-theme-white .collab-member-avatar-img {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.collab-avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-surface, #121318);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: #facc15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
}

body.dashboard-theme-white .collab-avatar-badge {
  background: #ffffff;
  border-color: #facc15;
}

.collab-member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(165, 255, 143, 0.15);
  color: var(--color-life, #a5ff8f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 400;
  flex-shrink: 0;
  text-transform: uppercase;
  border: 1px solid rgba(165, 255, 143, 0.3);
}

.collab-member-avatar.other {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

body.dashboard-theme-white .collab-member-avatar {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

body.dashboard-theme-white .collab-member-avatar.other {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #7dd3fc;
}

.collab-member-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.collab-member-name {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dashboard-theme-white .collab-member-name {
  color: #0f172a;
}

.collab-member-email {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collab-member-role-badge {
  font-size: 0.66rem;
  font-weight: 400;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.collab-member-role-badge.owner {
  background: rgba(165, 255, 143, 0.15);
  color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .collab-member-role-badge.owner {
  color: #143000 !important;
  background: rgba(191, 249, 80, 0.35) !important;
  border: 1px solid rgba(60, 110, 15, 0.45) !important;
  font-weight: 500 !important;
}

.collab-member-role-badge.collab {
  background: rgba(165, 255, 143, 0.15);
  color: var(--color-life, #a5ff8f);
}

body.dashboard-theme-white .collab-member-role-badge.collab {
  color: #143000 !important;
  background: rgba(191, 249, 80, 0.35) !important;
  border: 1px solid rgba(60, 110, 15, 0.45) !important;
  font-weight: 500 !important;
}

.btn-remove-collab {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.btn-remove-collab:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Responsive */
@media (max-width: 600px) {
  .checklists-wrapper {
    padding: 0.85rem;
  }

  .checklists-grid {
    grid-template-columns: 1fr;
  }
}
