/**
 * Pseudo List Stage Action modal - opened from project iframe via postMessage (index.html).
 * Confirmation when editing stages would invalidate pseudo lists.
 * Scoped under #pseudoListStageActionModal.
 */
:root {
  --pseudo-stage-primary: #ed2047;
  --pseudo-stage-gray-100: #f3f4f6;
  --pseudo-stage-gray-200: #e5e7eb;
  --pseudo-stage-gray-500: #6b7280;
  --pseudo-stage-gray-700: #374151;
  --pseudo-stage-radius: 12px;
}

#pseudoListStageActionModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  align-items: center;
  justify-content: center;
}

#pseudoListStageActionModal.pseudo-list-stage-action-open {
  display: flex;
}

#pseudoListStageActionModal .modal-dialog {
  width: 90%;
  max-width: 520px;
}

#pseudoListStageActionModal .modal-content {
  padding: 24px;
  background: white;
  border-radius: var(--pseudo-stage-radius);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

#pseudoListStageActionModal .modal-header {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#pseudoListStageActionModal .modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--pseudo-stage-gray-700);
}

#pseudoListStageActionModal .close-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--pseudo-stage-gray-100);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pseudo-stage-gray-500);
  transition: background 0.2s, color 0.2s;
}

#pseudoListStageActionModal .close-btn:hover {
  background: var(--pseudo-stage-gray-200);
  color: #1f2937;
}

#pseudoListStageActionModal .modal-body {
  margin-bottom: 20px;
}

#pseudoListStageActionModal .modal-body p {
  margin: 0;
  color: var(--pseudo-stage-gray-700);
  line-height: 1.6;
}

#pseudoListStageActionModal .modal-body p + p {
  margin-top: 12px;
  color: var(--pseudo-stage-gray-500);
  font-size: 13px;
}

#pseudoListStageActionModal .form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

#pseudoListStageActionModal .btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
}

#pseudoListStageActionModal .btn-primary {
  background: linear-gradient(to right, var(--pseudo-stage-primary), #f26225);
  color: white;
}

#pseudoListStageActionModal .btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

#pseudoListStageActionModal .btn-secondary {
  background: var(--pseudo-stage-gray-100);
  color: var(--pseudo-stage-gray-700);
}

#pseudoListStageActionModal .btn-secondary:hover {
  background: var(--pseudo-stage-gray-200);
}
