/* Global confirmation / alert dialogs — Figma style */

.app-dialog {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.app-dialog[hidden] {
  display: none !important;
}

.app-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 45, 56, 0.35);
}

.app-dialog__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  background: #fff url("/static/images/modal-bg-drone.png") no-repeat right top;
  background-size: 180px auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(43, 45, 56, 0.18);
  padding: 48px 28px 32px;
  text-align: center;
  box-sizing: border-box;
}

.app-dialog__title {
  margin: 0 0 16px;
  font-family: "Saira", "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #2b2d38;
}

.app-dialog__message {
  margin: 0 0 28px;
  font-family: "Roboto", "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #2b2d38;
}

.app-dialog__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.app-dialog__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: "Roboto", "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  padding: 14px 36px;
  min-width: 120px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.app-dialog__btn:hover {
  transform: translateY(-1px);
}

.app-dialog__btn:active {
  transform: translateY(0);
}

.app-dialog__btn--primary {
  color: #fff;
  background: #4dc6e1;
  box-shadow: 0 8px 20px rgba(77, 198, 225, 0.45);
}

.app-dialog__btn--primary:hover {
  box-shadow: 0 10px 24px rgba(77, 198, 225, 0.55);
}

.app-dialog__btn--ghost {
  color: #2b2d38;
  background: transparent;
  min-width: auto;
  padding: 8px 16px;
  font-weight: 500;
  box-shadow: none;
}

.app-dialog__btn--ghost:hover {
  opacity: 0.7;
  transform: none;
}

body.app-dialog-open {
  overflow: hidden;
}

/* Align existing activateModal / SweetAlert popups to the same look */
.activateModal__content,
.swal2-popup.form-popup,
.swal2-popup.activateModal {
  background-image: url("/static/images/modal-bg-drone.png") !important;
  background-repeat: no-repeat !important;
  background-position: right top !important;
  background-size: 180px auto !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(43, 45, 56, 0.18) !important;
}

.swal2-styled.swal2-confirm,
.form-popup .swal2-confirm,
.activateModal__action .btn--blue,
.activateModal__action .proper-button--blue {
  border-radius: 999px !important;
  background: #4dc6e1 !important;
  box-shadow: 0 8px 20px rgba(77, 198, 225, 0.45) !important;
  border: 0 !important;
}
