/* Arioron AI Platform - Enhanced Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

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

.message-user {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  border-radius: 1.5rem 1.5rem 0.25rem 1.5rem;
  padding: 1rem 1.25rem;
  max-width: 80%;
  margin-left: auto;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.message-assistant {
  background: #1e1f20;
  border: 1px solid #444746;
  color: #e3e3e3;
  border-radius: 1.5rem 1.5rem 1.5rem 0.25rem;
  padding: 1rem 1.25rem;
  max-width: 80%;
  margin-right: auto;
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #71717a;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.blinking-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: #3b82f6;
  margin-left: 4px;
  animation: blink 1s step-start infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

tr:hover .copy-btn {
  opacity: 1 !important;
}

pre {
  background: rgba(39, 39, 42, 0.5);
  border: 1px solid rgba(63, 63, 70, 0.5);
  border-radius: 0.75rem;
  padding: 1rem;
  overflow-x: auto;
}

code {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
  font-size: 0.875em;
}

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

::-webkit-scrollbar-track {
  background: #18181b;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

::selection {
  background: rgba(59, 130, 246, 0.3);
  color: white;
}

*:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

canvas {
  max-width: 100%;
  height: auto !important;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.glass {
  background: rgba(39, 39, 42, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

textarea.auto-grow {
  resize: none;
  overflow: hidden;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

kbd {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: #a1a1aa;
  background-color: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 0.375rem;
  font-family: ui-monospace, 'SF Mono', monospace;
}

img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

button {
  user-select: none;
  -webkit-user-select: none;
}

/* Playground Mode Tabs */
.mode-tab {
  background: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.mode-tab.active {
  color: #2196F3;
  background: rgba(33, 150, 243, 0.1);
  border-color: rgba(33, 150, 243, 0.3);
}

.mode-tab:hover:not(.active) {
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 1024px) {
  #sidebar {
    transform: translateX(-100%);
  }
  
  #sidebar.open {
    transform: translateX(0);
  }
  
  .ml-64 {
    margin-left: 0 !important;
  }
}
