/* Custom Styles for SweetAlert2 Toast - Global */
 .swal2-toast {
   font-size: 0.875rem !important;
   padding: 0.75rem !important;
   min-width: 300px !important;
   max-width: 400px !important;
   border-radius: 8px !important;
 }

.swal2-toast .swal2-title {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.swal2-toast .swal2-icon {
  width: 1.5rem !important;
  height: 1.5rem !important;
  margin: 0 0.5rem 0 0 !important;
}

.swal2-toast .swal2-icon.swal2-success [class^="swal2-success-line"] {
  height: 0.125rem !important;
}

.swal2-toast .swal2-icon.swal2-success .swal2-success-ring {
  width: 1.5rem !important;
  height: 1.5rem !important;
}

.swal2-toast .swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
  height: 0.125rem !important;
}

.swal2-toast .swal2-timer-progress-bar {
  height: 0.125rem !important;
  background: rgba(255, 255, 255, 0.6) !important;
}

.swal2-toast.swal2-show {
  animation: swal2-toast-show 0.5s ease-out;
}

.swal2-toast.swal2-hide {
  animation: swal2-toast-hide 0.2s ease-in forwards;
}

/* Melhorias adicionais para diferentes tipos */
.swal2-toast.swal2-success .swal2-timer-progress-bar {
  background: rgba(40, 167, 69, 0.8) !important;
}

.swal2-toast.swal2-error .swal2-timer-progress-bar {
  background: rgba(220, 53, 69, 0.8) !important;
}

.swal2-toast.swal2-warning .swal2-timer-progress-bar {
  background: rgba(255, 193, 7, 0.8) !important;
}

.swal2-toast.swal2-info .swal2-timer-progress-bar {
  background: rgba(13, 110, 253, 0.8) !important;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
  .swal2-toast {
    min-width: 280px !important;
    max-width: 320px !important;
    font-size: 0.8rem !important;
  }

  .swal2-toast .swal2-title {
    font-size: 0.8rem !important;
  }
}

/* Posicionamento aprimorado */
.swal2-container.swal2-top-end > .swal2-popup {
  margin-top: 1rem !important;
  margin-right: 1rem !important;
}
