/* Shared BlockParty dialogs & toasts (no native prompt/alert/confirm). */

.bpToastHost {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 32px));
}

.bpToast {
  pointer-events: auto;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  box-shadow:
    0 16px 48px rgba(15, 23, 42, 0.18),
    0 4px 12px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.08);
  animation: bpToastIn 0.22s ease-out;
}

@keyframes bpToastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bpToast--info {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
}

.bpToast--success {
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.35);
}

.bpToast--error {
  background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
  color: #991b1b;
  border-color: rgba(248, 113, 113, 0.45);
}

/* Modal shell (matches Demand Engine modal tone; usable without laborDemand.css) */
.bpModalRoot {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 11000;
  backdrop-filter: blur(6px);
}

.bpModalRoot[hidden] {
  display: none !important;
}

.bpModalCard {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.18),
    0 8px 24px rgba(15, 23, 42, 0.08);
  width: min(92vw, 440px);
  max-height: min(90vh, 720px);
  overflow: auto;
}

.bpModalCard--wide {
  width: min(92vw, 520px);
}

.bpModalCard__head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bpModalCard__head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.bpModalCard__body {
  padding: 18px 22px 8px;
}

.bpModalCard__foot {
  padding: 14px 22px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.bpField {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.bpField:last-child {
  margin-bottom: 0;
}

.bpField__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

.bpField__hint {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
}

.bpField__input {
  width: 100%;
  box-sizing: border-box;
  min-height: var(--appInputHeight, 40px);
  padding: 8px 12px;
  border-radius: var(--radius-input, 10px);
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 1rem;
  color: #0f172a;
  background: #fff;
}

.bpField__input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.bpField__error {
  font-size: 0.82rem;
  color: #b91c1c;
  margin: 0;
  min-height: 1.2em;
}

.bpField--checkbox {
  flex-direction: row;
  align-items: center;
}

.bpField__label--inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  cursor: pointer;
  font-weight: 600;
  color: #334155;
}

.bpField__label--inline input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #2563eb;
}

.bpModalCard__status {
  margin: 0 22px 12px;
  font-size: 0.88rem;
  color: #b91c1c;
  min-height: 1.25em;
}

.bpConfirmBody {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #475569;
}

.bpEntraDirectoryStatus {
  margin-top: 2px;
  min-height: 1.2em;
}

.bpEntraDirectoryResults {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.bpEntraDirectoryResults .btn.small {
  white-space: normal;
  text-align: left;
}
