/* src/styles/components/toast.css */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #2c3e50;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-size: 0.95em;
  line-height: 1.4;
  white-space: pre-line;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.toast.toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast.toast-leaving {
  opacity: 0;
  transform: translateX(24px);
}

.toast-icon {
  flex: 0 0 auto;
  font-size: 1.1em;
  line-height: 1.4;
}

.toast-message {
  flex: 1 1 auto;
  word-break: break-word;
}

.toast-close {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.7;
  font-size: 1.2em;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  margin: -8px -8px -8px 0;
  min-width: 32px;
  min-height: 32px;
}

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

.toast-success { background: #27ae60; }
.toast-error { background: #c0392b; }
.toast-warning { background: #b8860b; }
.toast-info { background: #2c3e50; }

@media (max-width: 576px) {
  .toast-container {
    top: auto;
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .toast {
    transform: translateY(24px);
  }

  .toast.toast-visible {
    transform: translateY(0);
  }

  .toast.toast-leaving {
    transform: translateY(24px);
  }
}
