/* Modern Tailwind Toaster Styles */
.toaster-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  pointer-events: none;
  max-width: 420px;
  width: 100%;
}

.toaster-item {
  pointer-events: auto;
  margin-bottom: 0.75rem;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toaster-item.show {
  transform: translateX(0);
  opacity: 1;
}

.toaster-item.hide {
  transform: translateX(100%);
  opacity: 0;
}

.toaster-success {
  background-color: #D1FAE5; /* Tailwind's green-100 */
  border-left: 4px solid #10B981; /* Tailwind's green-500 */
}

.toaster-success .text-white,
.toaster-success * {
  color: #065F46 !important; /* Darker green text for readability */
}

.toaster-error {
  background-color: #FEE2E2; /* red-100 */
  border-left: 4px solid #EF4444; /* red-500 */
}

.toaster-error .text-white,
.toaster-error * {
  color: #991B1B !important; /* Darker red text for readability */
}

.toaster-warning {
  background-color: #FEF3C7; /* amber-100 */
  border-left: 4px solid #F59E0B; /* amber-500 */
}

.toaster-warning .text-white,
.toaster-warning * {
  color: #92400E !important; /* Darker amber text for readability */
}

.toaster-info {
  background-color: #DBEAFE; /* blue-100 */
  border-left: 4px solid #3B82F6; /* blue-500 */
}

.toaster-info .text-white,
.toaster-info * {
  color: #1E3A8A !important; /* Darker blue text for readability */
}

.toaster-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0 0 0.5rem 0.5rem;
  transition: width linear;
}

.toaster-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.toaster-close {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.toaster-close:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .toaster-container {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
  
  .toaster-item {
    transform: translateY(-100%);
  }
  
  .toaster-item.show {
    transform: translateY(0);
  }
  
  .toaster-item.hide {
    transform: translateY(-100%);
  }
}