.jedex-toast {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 14px;
  backdrop-filter: blur(16px);
  background: var(--theme-bg);
  color: var(--theme-color);
  width: 380px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.jedex-toast.animate-in {
  animation: toast-in 0.4s ease forwards;
}

.jedex-toast.animate-out {
  animation: toast-out 0.3s ease forwards;
}

.toast-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-body {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 15px;
}

.toast-message {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
  line-height: 1.4;
}

.toast-actions {
  margin-top: 10px;
}

.toast-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 13px;
  margin-right: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.toast-btn:hover {
  opacity: 0.8;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--theme-color);
  font-size: 22px;
  line-height: 1;
  opacity: 0.7;
  margin-left: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
  padding: 0;
}

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

@keyframes toast-in {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toast-out {
  to {
    transform: translateY(-10px);
    opacity: 0;
  }
}

/* Structured Error Modal Styles */
.error-container {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #374151;
}

.error-header {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  padding: 1.5rem;
  border-radius: 14px 14px 0 0;
  margin: -1rem -1rem 1.5rem -1rem;
  position: relative;
  overflow: hidden;
}

.error-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66-3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-40-39c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm20-40c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.error-header.validation-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.error-header-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.error-icon-large {
  font-size: 2.5rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  animation: icon-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes icon-pop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.error-message-box {
  background: rgba(239, 68, 68, 0.08);
  border-left: 4px solid #ef4444;
  padding: 1.25rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.error-message-box.validation-amber {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: #f59e0b;
}

.error-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.error-message-box .error-label {
  color: #dc2626;
}

.error-message-box.validation-amber .error-label {
  color: #b45309;
}

.suggestions-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.suggestion-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.suggestion-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.suggestion-number {
  background: #3b82f6;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.technical-toggle {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
  width: 100%;
  text-align: left;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
}

.technical-toggle:hover {
  background: #f3f4f6;
}

.terminal-box {
  margin-top: 1rem;
  background: #111827;
  border-radius: 12px;
  padding: 1.5rem;
  color: #e5e7eb;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.terminal-header-tools {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
}

.terminal-btn-copy {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.terminal-btn-copy:hover {
  background: rgba(255, 255, 255, 0.2);
}

.terminal-property {
  margin-bottom: 1.25rem;
}

.terminal-key {
  color: #9ca3af;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-bottom: 0.4rem;
}

.terminal-val {
  color: #60a5fa;
  word-break: break-all;
}

.terminal-val.warning {
  color: #fbbf24;
}

.terminal-val.danger {
  color: #f87171;
}

.trace-line {
  border-left: 2px solid #4f46e5;
  background: rgba(79, 70, 229, 0.1);
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.5rem;
  border-radius: 0 6px 6px 0;
}

.trace-func {
  color: #c084fc;
  font-weight: 600;
}

.trace-file {
  color: #9ca3af;
  font-size: 0.8rem;
}

.hidden {
  display: none !important;
}