/* ============================================================================
   FEEDBACK / TOAST SYSTEM
   ============================================================================ */

.feedback-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.feedback-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 450px;
  padding: 16px 20px;
  background: var(--color-surface, #0d0e12);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--toast-color);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feedback-toast--hide {
  opacity: 0;
  transform: translateX(400px);
}

/* Toast Types */
.feedback-toast--success {
  --toast-color: #27ae60;
  --toast-bg: rgba(39, 174, 96, 0.15);
}

.feedback-toast--info {
  --toast-color: #3498db;
  --toast-bg: rgba(52, 152, 219, 0.15);
}

.feedback-toast--warning {
  --toast-color: #f39c12;
  --toast-bg: rgba(243, 156, 18, 0.15);
}

.feedback-toast--error {
  --toast-color: #e74c3c;
  --toast-bg: rgba(231, 76, 60, 0.15);
}

/* Icon */
.feedback-toast__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--toast-bg);
  color: var(--toast-color);
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
}

/* Message */
.feedback-toast__message {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text, #ffffff);
  word-wrap: break-word;
}

/* Close Button */
.feedback-toast__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text-muted, #94a3b8);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.feedback-toast__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text, #ffffff);
}

.feedback-toast__close:active {
  transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
  .feedback-container {
    right: 12px;
    left: 12px;
    top: 12px;
  }

  .feedback-toast {
    min-width: auto;
    max-width: none;
  }
}
