/* ============================================
   looksreal.ai — base.css
   Split from styles.css 2026-04-20 per css-restructure thread.
   ============================================ */
/* ============================================
   TOP BAR
   ============================================ */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  height: var(--topbar-height);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-logo {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
}

.topbar-logo .dot { color: var(--ember); }

.topbar-workspace {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-whisper);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.15s;
}
.topbar-workspace:hover { color: var(--text-helper); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-session {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-ghost);
}
.topbar-session .time { color: var(--text-dim); margin-left: 8px; }

.topbar-balance {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 6px 12px;
  background: var(--bg-item);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.topbar-balance:hover { border-color: var(--ember); }
.topbar-balance .amount { color: var(--ember); font-weight: 500; }
.topbar-balance .unit { color: var(--text-faint); }

.btn-connect {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  background: none;
  border: 1px solid var(--color-success);
  color: var(--color-success);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-connect:hover { background: rgba(34,197,94,0.06); }

/* ============================================
   LAYOUT
   ============================================ */

.app-layout {
  display: flex;
  height: calc(100vh - var(--topbar-height));
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
  width: var(--sidebar-width);
  border-right: 1px solid var(--border);
  min-height: calc(100vh - var(--topbar-height));
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  position: sticky;
  top: var(--topbar-height);
  align-self: flex-start;
}

.sidebar-section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-whisper);
  margin-bottom: 8px;
  padding-left: 12px;
}

.sidebar-nav { padding: 0 12px; }

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 1px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-disabled);
  border-left: 2px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}
.sidebar-nav-item:hover { color: var(--text-label); }
.sidebar-nav-item:hover .nav-icon { color: var(--text-disabled); }
.sidebar-nav-item.active {
  color: var(--ember);
  background: rgba(255,77,0,0.04);
  border-left-color: var(--ember);
}
.sidebar-nav-item.active .nav-icon { color: var(--ember); }

.nav-icon {
  font-size: 13px;
  width: 16px;
  text-align: center;
  color: var(--text-whisper);
  transition: color 0.15s;
}

.sidebar-library { padding: 0 12px; margin-top: 24px; }

.sidebar-lib-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-ghost);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: color 0.15s;
}
.sidebar-lib-item:hover { color: var(--text-helper); }
.sidebar-lib-item .nav-icon { color: var(--text-dim); }

.sidebar-stats { padding: 0 20px; margin-top: 24px; }
.sidebar-balance-section { margin-top: 20px; }
.sidebar-balance-section:not(.hidden) { cursor: pointer; transition: opacity 0.15s; }
.sidebar-balance-section:not(.hidden):hover { opacity: 0.75; }

.sidebar-stat-header {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-whisper);
  margin-bottom: 10px;
}

.sidebar-stat-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  margin-bottom: 6px;
}
.sidebar-stat-label { color: var(--text-faint); }
.sidebar-stat-value { font-weight: 500; }
.sidebar-stat-value.green { color: var(--color-success); }
.sidebar-stat-value.ember { color: var(--ember); }

.sidebar-progress {
  height: 3px;
  background: var(--border-subtle);
  border-radius: 2px;
  margin-bottom: 8px;
}
.sidebar-progress-fill {
  height: 100%;
  border-radius: 2px;
}
.sidebar-progress-fill.green { background: linear-gradient(90deg, var(--color-success), #4ade80); }
.sidebar-progress-fill.ember { background: linear-gradient(90deg, var(--ember), var(--flame)); }

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
}

/* ============================================
   CUSTOM SCROLLBARS
   ============================================ */

/* Webkit (Chrome, Safari, Edge) */
.dropdown-panel::-webkit-scrollbar,
.prompt-textarea::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
  width: 6px;
}

.dropdown-panel::-webkit-scrollbar-track,
.prompt-textarea::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-panel::-webkit-scrollbar-thumb,
.prompt-textarea::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.dropdown-panel::-webkit-scrollbar-thumb:hover,
.prompt-textarea::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-ghost);
}

/* Firefox */
.dropdown-panel,
.prompt-textarea,
.main-content {
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}

/* ============================================
   UTILITIES
   ============================================ */

.hidden { display: none !important; }

/* ============================================
   HAMBURGER BUTTON (hidden on desktop)
   ============================================ */

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 6px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-helper);
  transition: background 0.15s;
}
.hamburger-btn:hover span { background: var(--text-primary); }

.sidebar-close-btn {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-helper);
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all 0.15s;
}
.sidebar-close-btn:hover { color: var(--text-primary); border-color: var(--text-helper); }

.sidebar-overlay {
  display: none;
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================
   UTILITY CLASSES (extracted from inline styles)
   ============================================ */
.u-pad-6 { padding: 6px; }
.u-pad-8 { padding: 8px; }
.u-opt-item { padding: 4px 8px; margin-bottom: 2px; }
.u-opt-item-lg { padding: 4px 8px; margin-bottom: 4px; }
.u-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.u-flex-1 { flex: 1; }
.u-w-150 { width: 150px; }
.u-w-160 { width: 160px; }
.u-w-180 { width: 180px; }
.u-w-200 { width: 200px; }
.u-w-220 { width: 220px; }
.u-w-300 { width: 300px; }
.u-color-ember { color: var(--ember); }
.u-meta-sm { font-size: 10px; color: var(--text-faint); }
.u-mono-sm { font-family: var(--font-mono); font-size: 10px; color: var(--text-helper); min-width: 28px; }
.u-range-track { flex: 1; height: 3px; accent-color: var(--ember); }
.u-3d-placeholder { width: 100%; height: 100%; background: var(--bg-overlay-deep); display: flex; align-items: center; justify-content: center; }
.u-3d-viewer-bg { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(180deg, var(--bg-overlay-deep), #111); --progress-bar-height: 0; }
