/* ServerManagerAI — minimal custom styles on top of Tailwind.
   Theme tokens live in tailwind.config (index.html); this file only adds
   component-level polish not easily expressed in utility classes. */

:root {
  color-scheme: dark;
}

html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Console panel — keep lines crisp and prevent layout shift on long URLs. */
#console {
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}
#console::-webkit-scrollbar { width: 8px; }
#console::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
#console::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Tab bar */
#tabs { scrollbar-width: none; }
#tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  cursor: pointer;
  background: none;
}
.tab-btn:hover { color: #e2e8f0; }
.tab-btn.active {
  color: #f1f5f9;
  border-bottom-color: #3b82f6;
}

/* Toasts */
.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.625rem;
  background: #0f172a;
  border: 1px solid #1e293b;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.6);
  animation: toast-in .18s ease-out;
}
.toast.success { border-color: rgba(16,185,129,0.4); }
.toast.error   { border-color: rgba(239,68,68,0.4); }
.toast.info    { border-color: rgba(59,130,246,0.4); }
.toast .t-icon { flex-shrink: 0; margin-top: 1px; }
.toast .t-title { font-size: 0.8125rem; font-weight: 600; }
.toast .t-msg { font-size: 0.75rem; color: #94a3b8; margin-top: 0.125rem; }

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

/* Status dot pulse when starting */
.status-dot-pulse {
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Config editor */
#config-editor {
  tab-size: 2;
}

/* Config file list items */
.config-item {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  cursor: pointer;
  transition: background .12s, color .12s;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.config-item:hover { background: #1e293b; color: #e2e8f0; }
.config-item.active { background: rgba(59,130,246,0.15); color: #93c5fd; }

/* Dropzone hover while dragging a file */
.dropzone-active {
  border-color: #3b82f6 !important;
  background: rgba(59,130,246,0.06);
}
