/* SweetAlert2 Custom Styles */

/* Modal container */
.swal2-popup {
  border-radius: 1.5rem !important;
  padding: 2rem !important;
  background: #f3f4f6 !important; /* matches the gray-100 card */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Title */
.swal2-title {
  color: #1f2937 !important; /* gray-800 */
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
}

/* Input field */
.swal2-input {
  border: 2px solid #e5e7eb !important; /* gray-200 */
  border-radius: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  font-size: 1.125rem !important;
  text-align: center !important;
  letter-spacing: 0.5rem !important; /* nice spacing for PIN code */
  transition: all 0.3s ease !important;
}

.swal2-input:focus {
  border-color: #a855f7 !important; /* purple-500 */
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1) !important;
  outline: none !important;
}

/* Buttons */
.swal2-confirm {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%) !important; /* purple to pink gradient */
  color: white !important;
  border: none !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 2rem !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 6px -1px rgba(168, 85, 247, 0.3) !important;
}

.swal2-confirm:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.4) !important;
}

.swal2-cancel {
  background: #e5e7eb !important; /* gray-200 */
  color: #6b7280 !important; /* gray-500 */
  border: none !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 2rem !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
}

.swal2-cancel:hover {
  background: #d1d5db !important; /* gray-300 */
  transform: translateY(-2px) !important;
}

/* Actions container (buttons wrapper) */
.swal2-actions {
  gap: 1rem !important;
  margin-top: 1.5rem !important;
}

/* Validation message */
.swal2-validation-message {
  background: #fef2f2 !important; /* red-50 */
  color: #dc2626 !important; /* red-600 */
  border: 1px solid #fecaca !important; /* red-200 */
  border-radius: 0.5rem !important;
  padding: 0.5rem 1rem !important;
  margin-top: 0.75rem !important;
}

/* Loading state */
.swal2-loader {
  border-color: #a855f7 transparent #a855f7 transparent !important;
}

/* Close button */
.swal2-close {
  color: #9ca3af !important; /* gray-400 */
  transition: all 0.2s ease !important;
}

.swal2-close:hover {
  color: #6b7280 !important; /* gray-500 */
}

/* Backdrop */
.swal2-backdrop-show {
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(4px) !important;
}
