/* css/toast.css - Updated with Way colors */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--way-white);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 12px 28px rgba(46, 125, 50, 0.15);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 340px;
  max-width: 420px;
  animation: slideInRight 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-left: 4px solid;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  animation: progress 5s linear forwards;
}

@keyframes progress {
  0% { width: 100%; }
  100% { width: 0%; }
}

.toast.info {
  border-left-color: var(--way-info);
}

.toast.info .toast-icon {
  color: var(--way-info);
}

.toast.success {
  border-left-color: var(--way-success);
}

.toast.success .toast-icon {
  color: var(--way-success);
}

.toast.error {
  border-left-color: var(--way-error);
}

.toast.error .toast-icon {
  color: var(--way-error);
}

.toast.warning {
  border-left-color: var(--way-warning);
}

.toast.warning .toast-icon {
  color: var(--way-warning);
}

.toast-icon {
  font-size: 1.6rem;
  min-width: 32px;
  text-align: center;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  color: var(--way-gray-800);
  margin-bottom: 4px;
  font-size: 1rem;
}

.toast-message {
  color: var(--way-gray-600);
  font-size: 0.9rem;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--way-gray-400);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: all 0.2s;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  background: var(--way-gray-100);
  color: var(--way-gray-700);
  transform: rotate(90deg);
}

/* Toast Positions */
.toast-container.top-left {
  top: 28px;
  left: 28px;
  bottom: auto;
  right: auto;
}

.toast-container.top-center {
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  bottom: auto;
  right: auto;
}

.toast-container.top-right {
  top: 28px;
  right: 28px;
  bottom: auto;
  left: auto;
}

.toast-container.bottom-left {
  bottom: 28px;
  left: 28px;
  top: auto;
  right: auto;
}

.toast-container.bottom-center {
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  top: auto;
  right: auto;
}

.toast-container.bottom-right {
  bottom: 28px;
  right: 28px;
  top: auto;
  left: auto;
}

/* Toast Types with Gradients */
.toast.gradient-success {
  background: var(--way-gradient-success);
  color: var(--way-white);
}

.toast.gradient-success .toast-title,
.toast.gradient-success .toast-message {
  color: var(--way-white);
}

.toast.gradient-success .toast-close {
  color: rgba(255, 255, 255, 0.8);
}

.toast.gradient-success .toast-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--way-white);
}

/* Animation */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
  
  .toast {
    min-width: auto;
    max-width: none;
    width: 100%;
    padding: 14px 18px;
  }
  
  .toast-icon {
    font-size: 1.4rem;
  }
  
  .toast-title {
    font-size: 0.95rem;
  }
  
  .toast-message {
    font-size: 0.85rem;
  }
}



