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

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0f1a;
  color: #e2e8f0;
  overflow: hidden;
}

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

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

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

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

.app-container {
  background: linear-gradient(135deg, #0a0f1a 0%, #111827 50%, #0f172a 100%);
}

.sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.header-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  backdrop-filter: blur(12px);
}

.logo-icon {
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 4px 30px rgba(59, 130, 246, 0.5);
  }
}

.welcome-logo {
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.4);
  animation: float 4s ease-in-out infinite;
}

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

.quick-prompt {
  position: relative;
  overflow: hidden;
}

.quick-prompt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.quick-prompt:hover::before {
  opacity: 1;
}

.chat-item {
  position: relative;
  overflow: hidden;
}

.chat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, #3b82f6, #6366f1);
  border-radius: 2px;
  transition: height 0.3s;
}

.chat-item:hover::before,
.chat-item.active::before {
  height: 60%;
}

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

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

.code-block-container {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.code-header {
  background: linear-gradient(90deg, #1e293b 0%, #334155 100%);
}

.launch-btn {
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
  transition: all 0.2s;
}

.launch-btn:hover {
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

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

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.input-area {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, #0f172a 100%);
  backdrop-filter: blur(12px);
}

textarea {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

input[type="range"] {
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
  height: 6px;
  background: #334155;
  border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #3b82f6;
  border-radius: 50%;
  margin-top: -6px;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
  transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.6);
}

.status-bar {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 40;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
  }

  .sidebar:not(.w-0) {
    width: 280px !important;
  }
}

@media (max-width: 640px) {
  .header-bar h1 {
    font-size: 1rem;
  }

  .header-bar p {
    display: none;
  }

  .messages-container {
    padding: 1rem;
  }

  .message-bubble {
    max-width: 90% !important;
    padding: 0.75rem 1rem;
  }

  .quick-prompt {
    padding: 0.75rem;
  }
}