/* === Toaster Styles === */

.toast-container {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast-top-right {
  top: 1.25rem;
  right: 1.25rem;
  align-items: flex-end;
}
.toast-bottom-left {
  bottom: 1.25rem;
  left: 1.25rem;
  align-items: flex-start;
}

/* Toast base */
.toast {
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.25rem 1.25rem 1rem 4rem;
  min-width: 300px;
  max-width: 400px;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.4s ease;
  pointer-events: auto;
}
.toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* Close button
.toast-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #999;
  cursor: pointer;
  pointer-events: all;
}
.toast-close:hover {
  color: #333;
}
*/

.toast-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1;
  color: #999;
  cursor: pointer;
  pointer-events: all;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
}

.toast-close:hover {
  color: #333;
}


/* Icon */
.toast-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
}

/* Content */
.toast-content {
  text-align: center;
}
.toast-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
}
.toast-subtitle {
  font-size: 1rem;
  color: #555;
  margin-top: 0.25rem;
}
.toast-details {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: justify;
  line-height: 1.3;
}

/* Variants */
.toast-success .toast-icon { background: #28a745; }
.toast-error .toast-icon   { background: #dc3545; }
.toast-info .toast-icon    { background: #007bff; }

.toast-success { border-top: 3px solid #28a745; }
.toast-error   { border-top: 3px solid #dc3545; }
.toast-info    { border-top: 3px solid #007bff; }

/* Screen-reader-only utility */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

