/* ========================================================
   CUSTOM DIALOG MODAL (Alert & Confirm Replacements)
   ======================================================== */

.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  animation: dialogFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dialog-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  animation: dialogScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.dialog-header {
  padding: 24px 24px 8px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dialog-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.dialog-icon-badge.error,
.dialog-icon-badge.danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(185, 28, 28, 0.3));
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.dialog-icon-badge.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(180, 83, 9, 0.3));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.dialog-icon-badge.success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(21, 128, 61, 0.3));
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

.dialog-icon-badge.info {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.3));
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

.dialog-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.dialog-body {
  padding: 10px 24px 20px 24px;
  text-align: center;
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.55;
  word-break: break-word;
}

.dialog-actions {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: flex-end;
}

.dialog-actions .btn {
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  min-width: 100px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dialog-actions.single-action {
  justify-content: center;
}

.dialog-actions.single-action .btn {
  width: 100%;
}

@keyframes dialogFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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