/* Professional Notification System Styling */

/* Custom animations for notifications */
@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Override SweetAlert2 default styles for better application integration */
.swal2-popup {
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.swal2-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

.swal2-content {
  font-size: 1rem;
  color: #555;
}

/* Success notification styling */
.swal2-styled.swal2-confirm {
  background-color: #28a745;
  border-radius: 6px;
  font-weight: 500;
  padding: 10px 24px;
  box-shadow: 0 3px 5px rgba(40, 167, 69, 0.3);
  transition: all 0.2s ease;
}

.swal2-styled.swal2-confirm:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

/* Error notification styling */
.notification-error .swal2-icon {
  border-color: #dc3545;
  color: #dc3545;
}

.notification-error .swal2-styled.swal2-confirm {
  background-color: #dc3545;
  box-shadow: 0 3px 5px rgba(220, 53, 69, 0.3);
}

.notification-error .swal2-styled.swal2-confirm:hover {
  background-color: #c82333;
}

/* Warning notification styling */
.notification-warning .swal2-icon {
  border-color: #ffc107;
  color: #ffc107;
}

.notification-warning .swal2-styled.swal2-confirm {
  background-color: #ffc107;
  color: #212529;
  box-shadow: 0 3px 5px rgba(255, 193, 7, 0.3);
}

.notification-warning .swal2-styled.swal2-confirm:hover {
  background-color: #e0a800;
}

/* Info notification styling */
.notification-info .swal2-icon {
  border-color: #17a2b8;
  color: #17a2b8;
}

.notification-info .swal2-styled.swal2-confirm {
  background-color: #17a2b8;
  box-shadow: 0 3px 5px rgba(23, 162, 184, 0.3);
}

.notification-info .swal2-styled.swal2-confirm:hover {
  background-color: #138496;
}

/* Toast notification styling */
.swal2-toast {
  max-width: 350px;
  padding: 12px 16px;
  animation: slideInFromRight 0.3s ease-out;
}

.swal2-toast .swal2-title {
  font-size: 1rem;
  margin: 0 0 5px 0;
}

.swal2-toast .swal2-content {
  font-size: 0.9rem;
  margin: 0;
}

/* Custom loading indicator */
.custom-loader {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #28a745;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .swal2-popup {
    width: 90%;
    font-size: 0.9rem;
  }
  
  .swal2-title {
    font-size: 1.2rem;
  }
  
  .swal2-content {
    font-size: 0.9rem;
  }
  
  .swal2-styled.swal2-confirm {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}