/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

/* Toast Notifications */
.toast {
  pointer-events: auto;
  animation: slideIn 0.3s ease-out;
}

.toast.success {
  background: #10b981;
  color: white;
}

.toast.error {
  background: #ef4444;
  color: white;
}

.toast.info {
  background: #3b82f6;
  color: white;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.removing {
  animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Output Content Styles */
.output-thread {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.output-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.output-bullets li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  color: #475569;
  line-height: 1.7;
}

.output-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: 700;
}

.output-next-step {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid #f59e0b;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  color: #92400e;
}

.output-next-step strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
  color: #b45309;
}

/* Loading State */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scrollbar Styles */
.output-content::-webkit-scrollbar,
.history-list::-webkit-scrollbar {
  width: 6px;
}

.output-content::-webkit-scrollbar-track,
.history-list::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.output-content::-webkit-scrollbar-thumb,
.history-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.output-content::-webkit-scrollbar-thumb:hover,
.history-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
  main {
    padding: 1rem;
  }
}