/* ===================================================================
   Toast Notifications CSS
   =================================================================== */

#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  width: calc(100% - 40px);
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon svg {
  width: 20px;
  height: 20px;
}

.toast-message {
  flex: 1;
  font-family: var(--font-fa);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-text);
}

.toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-on-dark);
  transition: color 0.2s;
}

.toast-close:hover {
  color: var(--ink-text);
}

.toast-close svg {
  width: 16px;
  height: 16px;
}

/* Toast variants */
.toast-success {
  border-color: var(--accent-success);
  border-width: 2px;
}

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

.toast-error {
  border-color: var(--danger);
  border-width: 2px;
}

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

.toast-warning {
  border-color: #F59E0B;
  border-width: 2px;
}

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

.toast-info {
  border-color: var(--accent-primary);
  border-width: 2px;
}

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

/* Responsive */
@media (max-width: 767px) {
  #toast-container {
    top: auto;
    bottom: 20px;
    left: 20px;
    right: 20px;
    transform: none;
    width: auto;
  }

  .toast {
    padding: 14px 16px;
  }

  .toast-message {
    font-size: 13px;
  }
}
