/* Toast Notification Container */
.toast-container {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: calc(100% - 4rem);
  max-width: 50rem;
  pointer-events: none;
}

/* Individual Toast */
.toast {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 2rem;
  background: white;
  border-radius: 0.8rem;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-2rem);
  transition: all 0.3s ease;
}

.toast.toast-show {
  opacity: 1;
  transform: translateY(0);
}

.toast.toast-hide {
  opacity: 0;
  transform: translateY(-1rem);
}

/* Toast Icon */
.toast-icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast Types */
.toast-notice {
  border-left: 0.4rem solid #10b981;
}

.toast-notice .toast-icon {
  color: #10b981;
}

.toast-alert {
  border-left: 0.4rem solid #ef4444;
}

.toast-alert .toast-icon {
  color: #ef4444;
}

.toast-info {
  border-left: 0.4rem solid #3b82f6;
}

.toast-info .toast-icon {
  color: #3b82f6;
}

.toast-warning {
  border-left: 0.4rem solid #f59e0b;
}

.toast-warning .toast-icon {
  color: #f59e0b;
}

/* Toast Content */
.toast-content {
  flex: 1;
  font-size: 1.4rem;
  color: #1f2937;
  line-height: 1.5;
}

/* Toast Dismiss Button */
.toast-dismiss {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  transition: all 0.2s;
}

.toast-dismiss:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.toast-dismiss:active {
  background: #e5e7eb;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .toast-container {
    top: 1rem;
    width: calc(100% - 2rem);
  }

  .toast {
    padding: 1.2rem 1.6rem;
    gap: 1rem;
  }

  .toast-content {
    font-size: 1.3rem;
  }

  .toast-icon {
    width: 2rem;
    height: 2rem;
  }

  .toast-dismiss {
    width: 2rem;
    height: 2rem;
  }
}
