/* SweetAlert2 theme integration for Pushly light/dark modes */

.pushly-swal-popup {
  border-radius: var(--modern-card-radius, 1rem) !important;
  font-family: var(--font-family, 'Vazirmatn', 'Vazir', 'Inter', sans-serif) !important;
  direction: rtl;
}

html[data-theme="light"] .pushly-swal-popup {
  background: var(--bg-primary, #ffffff) !important;
  color: var(--text-primary, #212529) !important;
  box-shadow: var(--modern-shadow, 0 4px 16px rgba(0, 0, 0, 0.12)) !important;
}

html[data-theme="dark"] .pushly-swal-popup {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .pushly-swal-toast {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border: 1px solid #334155 !important;
}

.pushly-swal-loading-text {
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0.5rem 0 0;
  color: inherit;
}

.pushly-swal-title {
  font-weight: 700 !important;
  font-size: 1.15rem !important;
}

.pushly-swal-text {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

.swal2-actions {
  gap: 0.5rem !important;
  flex-direction: row-reverse;
}

.swal2-styled,
.swal2-confirm,
.swal2-cancel,
.swal2-deny {
  font-family: var(--font-family, 'Vazirmatn', 'Vazir', 'Inter', sans-serif) !important;
}

.pushly-swal-toast {
  font-family: var(--font-family, 'Vazirmatn', 'Vazir', 'Inter', sans-serif) !important;
  direction: rtl;
}

html[data-theme="dark"] .swal2-container {
  color-scheme: dark;
}
