/* Shared confirm / alert modal — Stella Maris admin theme */
.app-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.app-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.app-modal {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.2s ease;
}

.app-modal-overlay.is-open .app-modal {
  transform: translateY(0) scale(1);
}

.app-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #1d4ed8;
  color: #ffffff;
}

.app-modal-header.is-danger {
  background: #dc2626;
}

.app-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}

.app-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.app-modal-close:hover {
  background: rgba(255, 255, 255, 0.32);
}

.app-modal-body {
  padding: 22px 20px 8px;
  font-family: 'Outfit', sans-serif;
}

.app-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.app-modal-icon.info {
  background: rgba(29, 78, 216, 0.12);
  color: #1d4ed8;
}

.app-modal-icon.warning {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.app-modal-message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
}

.app-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px 20px;
  font-family: 'Outfit', sans-serif;
}

.app-modal-btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-modal-btn-cancel {
  background: #f1f5f9;
  color: #475569;
}

.app-modal-btn-cancel:hover {
  background: #e2e8f0;
}

.app-modal-btn-confirm {
  background: #1d4ed8;
  color: #ffffff;
}

.app-modal-btn-confirm:hover {
  background: #1e40af;
}

.app-modal-btn-confirm.is-danger {
  background: #dc2626;
}

.app-modal-btn-confirm.is-danger:hover {
  background: #b91c1c;
}

.app-modal-btn-ok {
  background: #1d4ed8;
  color: #ffffff;
  min-width: 88px;
}

.app-modal-btn-ok:hover {
  background: #1e40af;
}
