/* ===========================
   DIALOG MODALS (Alert & Confirm)
   =========================== */

.modal-dialog {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-dialog.show {
  opacity: 1;
}

.modal-dialog .modal-overlay {
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.6);
}

.modal-dialog-content {
  max-width: 480px;
  animation: dialogSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dialogSlideIn {
  from {
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-dialog .modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px 12px 0 0;
}

.modal-dialog .modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.dialog-message {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
  padding: 1.5rem 0;
  text-align: center;
  min-height: 60px;
  white-space: pre-line;
}

.modal-dialog .modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.modal-dialog .btn {
  min-width: 100px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s;
}

.modal-dialog .btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.modal-dialog .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.modal-dialog .btn-secondary {
  background: #6c757d;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

.modal-dialog .btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 117, 125, 0.3);
}

/* Responsive */
@media (max-width: 576px) {
  .modal-dialog-content {
    max-width: 90%;
    margin: 1rem;
  }

  .dialog-message {
    font-size: 0.95rem;
    padding: 1rem 0;
  }

  .modal-dialog .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-dialog .btn {
    width: 100%;
  }
}
