@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&amp;display=swap');

:root {
    --primary: #000000;

    /* Dark mode (default) */
    --bg-primary: #09090b;
    --bg-secondary: #18181b;
    --bg-tertiary: #27272a;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --border-color: #27272a;
}

body {
    font-family: 'Inter', system_ui, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

h1.light {
    background: linear-gradient(to right, #111111, #000000);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light {
  --bg-primary: #ffffff;
  --bg-secondary: #f4f4f5;
  --bg-tertiary: #e4e4e7;
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --border-color: #e4e4e7;
}

/* Light mode overrides for common elements */
body.light .bg-zinc-900 {
  background-color: var(--bg-secondary) !important;
}

body.light .bg-zinc-950 {
  background-color: var(--bg-primary) !important;
}

body.light .border-zinc-800 {
  border-color: var(--border-color) !important;
}

body.light .text,
body.light .text-zinc-200,
body.light .text-zinc-300,
body.light .text-zinc-400 {
  color: var(--text-primary) !important;
}

body.light .text-zinc-500 {
  color: var(--text-secondary) !important;
}

/* Message bubbles in light mode */
body.light .message-bubble.bg-zinc-800 {
  background-color: var(--bg-tertiary) !important;
  border-color: var(--border-color) !important;
}

/* Input fields in light mode */
body.div.light input,
body.light input,
body.light textarea,
body.light select {
  background-color: var(--bg-secondary) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

/* Theme toggle button */
.theme-toggle {
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.05);
}

.chat-history.light {
    background-color: var(--bg-secondary);
}

.chat-container {
    scrollbar-width: thin;
    scrollbar-color: #4b5563 #1f2937;
}

.message-bubble {
    max-width: 85%;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.streaming {
    animation: pulse 1.5s infinite;
}

.nav-tab {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tab.active {
    background-color: #000000;
    color: white;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.grok-gradient {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.chat-message {
    transition: all 0.3s ease;
}

.attachment-preview {
    max-height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.xai-header {
    background: linear-gradient(to right, #111111, #000000);
}

/*.xai-header.light {
    background: linear-gradient(to right, #f0f0f0, #000000);
}*/

#reasoning-box {
    max-height: 300px;
    overflow-y: auto;
}