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

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

.app-container {
  background: radial-gradient(ellipse at top, #1a1a2e 0%, #0d0d14 100%);
  min-height: 100vh;
}

.header-bar {
  background: rgba(20, 20, 35, 0.95);
  backdrop-filter: blur(10px);
}

/* Messages */
.message-user {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
}

.message-ai {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Code Block */
.code-block {
  background: #0d1117;
  border: 1px solid #30363d;
  font-family: 'JetBrains Mono', monospace;
}

.code-block:hover {
  border-color: #ec4899;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.2);
}

.launch-button {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.6); }
}

/* Input Area */
.input-area {
  background: rgba(20, 20, 35, 0.95);
  backdrop-filter: blur(10px);
}

.input-wrapper {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-wrapper:focus-within {
  border-color: #ec4899;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.2);
}

.send-button {
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

/* Settings Modal */
.settings-modal {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Example Prompts */
.example-prompt {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.example-prompt:hover {
  background: rgba(236, 72, 153, 0.2);
  border-color: #ec4899;
  transform: translateY(-2px);
}

/* Typing Indicator */
.typing-dot {
  width: 8px;
  height: 8px;
  background: #ec4899;
  border-radius: 50%;
  display: inline-block;
  animation: typing-bounce 1.4s ease-in-out infinite;
}

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0d0d14;
}

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

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

/* Mobile Responsive */
@media (max-width: 640px) {
  .message-user, .message-ai {
    max-width: 90% !important;
  }
  
  .code-block pre {
    font-size: 12px;
  }
}

/* Textarea auto-resize simulation */
textarea {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.5;
}