/* Imagine Studio - Minimalist & Mobile-First Styling */
:root {
  --bg-primary: #09090b;
  --bg-secondary: #121215;
  --bg-tertiary: #18181b;
  --border-subtle: #27272a;
  --border-focus: #3f3f46;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.15);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* Custom modern scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Glassmorphism panel */
.glass-panel {
  background: rgba(18, 18, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
}

/* Form input styling */
.input-minimal {
  background-color: #18181b;
  border: 1px solid #27272a;
  color: #fafafa;
  transition: all 0.2s ease;
}
.input-minimal:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px var(--accent-glow);
}

/* Drag and Drop Zone */
.dropzone {
  border: 2px dashed #27272a;
  transition: all 0.2s ease;
}
.dropzone.dragover {
  border-color: #6366f1;
  background-color: rgba(99, 102, 241, 0.05);
}

/* Animation utilities */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Markdown & thinking block in chat */
.thinking-block {
  border-left: 2px solid #6366f1;
  background: rgba(99, 102, 241, 0.05);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Mobile responsive navigation */
@media (max-width: 768px) {
  .mobile-nav-pad {
    padding-bottom: 5.5rem;
  }
}
