﻿/* 🔹 Toast container — center of screen */
#toast-container {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 999999; /* Ensure the toast container is on top */
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 🔹 Toast box (no auto-disappear) */
#toast-container > div {
  pointer-events: auto;
  margin: 10px 0;
  padding: 16px 20px; /* Reduced padding */
  width: 400px; /* Reduced width */
  max-width: 90%;
  border-radius: 12px; /* Slightly smaller border radius */
  background: #fff;
  color: #333;
  font-size: 16px; /* Keeping the font size smaller */
  font-weight: 500;
  text-align: left;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
  position: relative;
  opacity: 0;
  transform: scale(0.9);
  animation: toast-in 0.3s ease forwards, toast-out 0.3s ease 5s forwards; /* Combined fade-in and fade-out */
}

/* 🔹 Hover (pause effect) */
#toast-container > div:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,0.3);
}

/* 🔹 Title */
.toast-title {
  font-weight: 600;
  font-size: 18px; /* Slightly smaller title font size */
  margin-bottom: 8px;
  color: #111;
  letter-spacing: 0.3px;
}

/* 🔹 Message */
.toast-message {
  font-size: 14px; /* Slightly smaller message font size */
  line-height: 1.6;
  margin: 0;
  color: #555;
  padding: 5px 0;
}

/* 🔹 Status styles (SweetAlert2-like colors) */
#toast-container > .toast-success { border-top: 5px solid #28a745; }
#toast-container > .toast-error   { border-top: 5px solid #e63946; }
#toast-container > .toast-warning { border-top: 5px solid #f4a261; }
#toast-container > .toast-info    { border-top: 5px solid #3a86ff; }

/* 🔹 Close button */
.toast-close-button {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 20px;
  font-weight: bold;
  color: #bbb;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.5s ease;
}

.toast-close-button:hover {
  color: #000;
}

/* 🔹 Animations */
@keyframes toast-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* 🔹 SweetAlert2 Modal Styling — Center the modal */
.swal2-popup {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 999999 !important;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  border-radius: 15px; /* Rounded corners */
  font-size: 14px; /* Slightly smaller font size for modal */
  width: 300px; /* Reduced modal width */
}

/* 🔹 Customize SweetAlert2 button appearance */
.swal2-confirm {
  background-color: #3a86ff;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 16px; /* Reduced font size for button */
}

.swal2-confirm:hover {
  background-color: #265dbe;
}

/* 🔹 Customize SweetAlert2 Backdrop */
.swal2-backdrop {
  background-color: rgba(0, 0, 0, 0.3) !important;
  z-index: 999998 !important;
}
