* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: linear-gradient(135deg, #0f0f14 0%, #1a1a2e 50%, #16161d 100%);
  min-height: 100vh;
  color: #fff;
}

code, pre {
  font-family: 'JetBrains Mono', monospace;
}

.app-container {
  background: radial-gradient(ellipse at top, rgba(233, 30, 99, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(156, 39, 176, 0.08) 0%, transparent 50%);
}

.header-glass {
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.input-area {
  background: linear-gradient(to top, rgba(15, 15, 20, 0.98) 0%, rgba(15, 15, 20, 0.9) 100%);
  backdrop-filter: blur(20px);
}

.message-bubble {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.settings-modal {
  animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.code-block {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-block pre {
  scrollbar-width: thin;
  scrollbar-color: #4a4a4a #1e1e1e;
}

.code-block pre::-webkit-scrollbar {
  height: 8px;
}

.code-block pre::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.code-block pre::-webkit-scrollbar-thumb {
  background: #4a4a4a;
  border-radius: 4px;
}

.launch-btn {
  box-shadow: 0 0 20px rgba(233, 30, 99, 0.3);
  transition: all 0.3s ease;
}

.launch-btn:hover {
  box-shadow: 0 0 30px rgba(233, 30, 99, 0.5);
  transform: scale(1.05);
}

.send-btn {
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
  transition: all 0.3s ease;
}

.send-btn:hover:not(:disabled) {
  box-shadow: 0 6px 25px rgba(233, 30, 99, 0.4);
  transform: translateY(-2px);
}

.typing-indicator span {
  animation: bounce 1.4s infinite ease-in-out;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
}

.prose {
  line-height: 1.7;
}

.prose p {
  margin-bottom: 0.75rem;
}

.prose ul, .prose ol {
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose li {
  margin-bottom: 0.25rem;
}

.prose strong {
  color: #f472b6;
}

.prose a {
  color: #f472b6;
  text-decoration: underline;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

textarea {
  scrollbar-width: thin;
  scrollbar-color: #4a4a4a transparent;
}

textarea::-webkit-scrollbar {
  width: 6px;
}

textarea::-webkit-scrollbar-thumb {
  background: #4a4a4a;
  border-radius: 3px;
}

input[type="checkbox"] {
  accent-color: #ec4899;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

@media (max-width: 640px) {
  .message-bubble > div {
    max-width: 90% !important;
  }
  
  header h1 {
    font-size: 1rem;
  }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a4a4a;
}