/* ===== TOGGLE SWITCH ===== */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1.5px solid #e9ecef;
}
.toggle-row label { font-weight: 700; font-size: 14px; color: #333; cursor: pointer; margin: 0; }
.toggle-switch { position: relative; width: 48px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: #ccc;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider:before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: #2d6a4f; }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(22px); }

/* ===== TAG INPUT ===== */
.tag-input-wrapper {
  border: 1.5px solid #ddd;
  border-radius: 10px;
  padding: 8px 10px;
  min-height: 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  cursor: text;
  transition: border-color 0.2s;
  background: #fff;
}
.tag-input-wrapper:focus-within { border-color: #2d6a4f; }
.tag-input-wrapper.disabled { background: #f5f5f5; pointer-events: none; opacity: 0.7; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f5e9;
  color: #2d6a4f;
  border: 1px solid #a5d6a7;
  border-radius: 20px;
  padding: 3px 12px 3px 6px;
  font-size: 13px;
  font-weight: 600;
}
.tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
}
.tag-remove:hover { color: #c0392b; }
.tag-text-input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  min-width: 120px;
  flex: 1;
  background: transparent;
  padding: 4px 2px;
}
.tag-hint { font-size: 12px; color: #999; margin-top: 4px; }
#tagSuggestions {
  display: none;
  border: 1.5px solid #ddd;
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: #fff;
  max-height: 160px;
  overflow-y: auto;
  position: relative;
  z-index: 10;
}

/* ===== BOARD MEMBER CHIPS ===== */
.board-members-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }

.board-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 2px solid #2d6a4f;
  border-radius: 999px;
  background: #f0f9f4;
  color: #1a1a2e;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.board-chip:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.board-chip.excluded {
  border-color: #c0392b;
  background: #fff5f5;
  color: #7f1d1d;
  text-decoration: line-through;
  opacity: 0.8;
}
.board-chip .chip-x {
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  color: #555;
  transition: color 0.2s;
}
.board-chip:hover .chip-x { color: #c0392b; }
.board-chip.excluded .chip-x { color: #c0392b; }

/* ===== SPINNER ===== */
.spinner { width: 56px; height: 56px; border: 4px solid #e0e0e0; border-top-color: #2d6a4f; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 24px; }
@keyframes spin { to { transform: rotate(360deg); } }
