/* ============================================================
   MyAISandbox — Workspace IDE Stylesheet
   Professional split-panel IDE layout
   ============================================================ */

/* ---- Reset for workspace (standalone page) ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Backgrounds */
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface-hover: #1a1a2e;
  --surface-active: #22223a;
  --border: #2a2a3e;
  --border-light: #333350;

  /* Brand */
  --primary: #00d4aa;
  --primary-hover: #00f0c0;
  --primary-glow: rgba(0, 212, 170, 0.15);
  --secondary: #7c5cff;
  --secondary-hover: #9478ff;
  --accent: #f0c040;

  /* Text */
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --text-dim: #555570;

  /* Semantic */
  --success: #00d4aa;
  --warning: #f0c040;
  --error: #ff4060;
  --info: #4488ff;

  /* Code */
  --code-bg: #0d0d14;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;

  /* Transitions */
  --transition: 0.2s ease;
  --transition-fast: 0.15s ease;

  /* Layout */
  --topbar-height: 44px;
  --activity-bar-width: 48px;
  --statusbar-height: 24px;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  color: inherit;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  display: flex;
  align-items: center;
  height: var(--topbar-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-md);
  gap: var(--space-md);
  z-index: 100;
  user-select: none;
  -webkit-app-region: drag;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  -webkit-app-region: no-drag;
  flex-shrink: 0;
}
.topbar-logo .logo-icon {
  font-size: 18px;
}

.topbar-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

.topbar-project-name {
  font-size: 13px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  padding: 2px 8px;
  min-width: 120px;
  max-width: 250px;
  transition: border-color var(--transition);
  -webkit-app-region: no-drag;
}
.topbar-project-name:hover {
  border-color: var(--border);
}
.topbar-project-name:focus {
  border-color: var(--primary);
  background: var(--bg);
}

.topbar-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.topbar-mode-toggle {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}
.topbar-mode-btn {
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.topbar-mode-btn.active {
  background: var(--surface-hover);
  color: var(--text);
}
.topbar-mode-btn:hover:not(.active) {
  color: var(--text);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  -webkit-app-region: no-drag;
  flex-shrink: 0;
}

.topbar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  transition: all var(--transition);
}
.topbar-btn:hover {
  background: var(--surface-hover);
}

.topbar-btn-run {
  background: rgba(0, 212, 170, 0.12);
  color: var(--primary);
}
.topbar-btn-run:hover {
  background: rgba(0, 212, 170, 0.22);
}

.topbar-btn-deploy {
  color: var(--text-dim);
  position: relative;
}
.topbar-btn-deploy:hover {
  background: var(--surface-hover);
  color: var(--text-muted);
}

.badge-pro {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--secondary), #a78bfa);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.4;
}

.topbar-user {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.topbar-user:hover {
  border-color: var(--primary);
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.workspace-layout {
  display: flex;
  height: calc(100vh - var(--topbar-height) - var(--statusbar-height));
  overflow: hidden;
}

/* ============================================================
   ACTIVITY BAR (leftmost icon strip)
   ============================================================ */
.activity-bar {
  width: var(--activity-bar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-sm) 0;
  flex-shrink: 0;
  z-index: 10;
}

.activity-bar-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.activity-bar-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 20px;
  color: var(--text-dim);
  position: relative;
  transition: all var(--transition);
}
.activity-btn:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.activity-btn.active {
  color: var(--text);
}
.activity-btn.active::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.activity-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   SIDEBAR (file tree panel)
   ============================================================ */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 170px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-header h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.sidebar-header-actions {
  display: flex;
  gap: 4px;
}
.sidebar-header-btn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  font-size: 14px;
  color: var(--text-dim);
  transition: all var(--transition-fast);
}
.sidebar-header-btn:hover {
  color: var(--text);
  background: var(--surface-hover);
}

/* Project Selector */
.project-selector {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.project-select-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text);
  transition: border-color var(--transition);
}
.project-select-btn:hover {
  border-color: var(--border-light);
}
.project-select-btn .project-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.project-select-btn .project-name {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-select-btn .chevron {
  font-size: 10px;
  color: var(--text-dim);
}

.new-project-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 6px 10px;
  margin-top: 6px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--primary);
  border: 1px dashed var(--border);
  transition: all var(--transition);
}
.new-project-btn:hover {
  border-color: var(--primary);
  background: var(--primary-glow);
}

/* File Tree */
.file-tree {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-sm) 0;
}

.tree-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px var(--space-md);
  padding-left: calc(var(--space-md) + var(--depth, 0) * 16px);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  user-select: none;
  white-space: nowrap;
}
.tree-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.tree-item.active {
  background: var(--surface-active);
  color: var(--text);
}

.tree-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.tree-chevron {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  transition: transform var(--transition-fast);
}
.tree-chevron.open {
  transform: rotate(90deg);
}

.tree-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Search Panel (hidden by default) */
.search-panel {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.search-panel.visible {
  display: flex;
}

.search-input-wrap {
  padding: var(--space-sm) var(--space-md);
  flex-shrink: 0;
}
.search-input {
  width: 100%;
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 12px;
}
.search-input::placeholder {
  color: var(--text-dim);
}
.search-input:focus {
  border-color: var(--primary);
}

.search-results {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-sm) var(--space-md);
}
.search-result-item {
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}
.search-result-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

/* Modules and Settings panels (hidden by default) */
.modules-panel,
.settings-panel {
  display: none;
  flex: 1;
  padding: var(--space-md);
  overflow-y: auto;
}
.modules-panel.visible,
.settings-panel.visible {
  display: block;
}
.panel-placeholder {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  padding: var(--space-xl);
}
.panel-placeholder .placeholder-icon {
  font-size: 32px;
  margin-bottom: var(--space-sm);
  display: block;
}

/* ============================================================
   CENTER AREA (Editor + Bottom Panel)
   ============================================================ */
.center-area {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 200px;
  background: var(--bg);
}

/* ---- Editor Tabs ---- */
.editor-tabs {
  display: flex;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 36px;
  overflow-x: auto;
  flex-shrink: 0;
  user-select: none;
}
.editor-tabs::-webkit-scrollbar {
  height: 0;
}

.editor-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 100%;
  font-size: 12px;
  color: var(--text-dim);
  border-right: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  position: relative;
  flex-shrink: 0;
}
.editor-tab:hover {
  color: var(--text-muted);
  background: var(--surface-hover);
}
.editor-tab.active {
  color: var(--text);
  background: var(--bg);
}
.editor-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--bg);
}
.editor-tab .tab-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.editor-tab .tab-close {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  font-size: 14px;
  color: var(--text-dim);
  opacity: 0;
  transition: all var(--transition-fast);
}
.editor-tab:hover .tab-close,
.editor-tab.active .tab-close {
  opacity: 1;
}
.editor-tab .tab-close:hover {
  background: rgba(255, 64, 96, 0.2);
  color: var(--error);
}

.editor-tab .tab-modified {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  display: none;
}
.editor-tab.modified .tab-modified {
  display: block;
}
.editor-tab.modified .tab-close {
  display: none;
}
.editor-tab.modified:hover .tab-modified {
  display: none;
}
.editor-tab.modified:hover .tab-close {
  display: flex;
}

/* ---- Editor Container ---- */
.editor-pane {
  flex: 1;
  overflow: hidden;
  position: relative;
}

#editor-container {
  width: 100%;
  height: 100%;
}

.editor-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-dim);
  gap: var(--space-md);
  padding: var(--space-xl);
  text-align: center;
}
.editor-welcome .welcome-logo {
  font-size: 48px;
  opacity: 0.3;
}
.editor-welcome h2 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
}
.editor-welcome p {
  font-size: 13px;
  max-width: 300px;
}

/* ---- Bottom Panel (Preview / Terminal / Console) ---- */
.bottom-panel {
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 80px;
  background: var(--surface);
}

.bottom-tabs {
  display: flex;
  align-items: center;
  height: 32px;
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-sm);
  flex-shrink: 0;
  user-select: none;
  gap: 2px;
}

.bottom-tab {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.bottom-tab:hover {
  color: var(--text-muted);
}
.bottom-tab.active {
  color: var(--text);
  background: var(--surface-hover);
}

.bottom-tab-actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.bottom-tab-action-btn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  font-size: 14px;
  color: var(--text-dim);
  transition: all var(--transition-fast);
}
.bottom-tab-action-btn:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.bottom-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.bottom-pane {
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.bottom-pane.active {
  display: block;
}

/* Preview pane */
.preview-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

/* Terminal pane */
#terminal-container {
  width: 100%;
  height: 100%;
  padding: var(--space-xs);
}
#terminal-container .xterm {
  height: 100%;
}

/* Console pane */
.console-output {
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-y: auto;
  height: 100%;
}
.console-line {
  padding: 2px 0;
  display: flex;
  gap: var(--space-sm);
}
.console-line .console-timestamp {
  color: var(--text-dim);
  flex-shrink: 0;
}
.console-line .console-msg {
  color: var(--text-muted);
}
.console-line.log .console-msg { color: var(--text); }
.console-line.warn .console-msg { color: var(--warning); }
.console-line.error .console-msg { color: var(--error); }
.console-line.info .console-msg { color: var(--info); }

/* ============================================================
   RIGHT PANEL (AI Chat)
   ============================================================ */
.chat-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-left: 1px solid var(--border);
  min-width: 220px;
}

.chat-tabs {
  display: flex;
  align-items: center;
  height: 36px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  user-select: none;
}
.chat-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
}
.chat-tab:hover {
  color: var(--text-muted);
  background: var(--surface-hover);
}
.chat-tab.active {
  color: var(--text);
  border-bottom-color: var(--primary);
}

.chat-model-selector {
  display: flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.model-select {
  width: 100%;
  padding: 4px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-size: 11px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555570'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}
.model-select:focus {
  border-color: var(--primary);
}
.model-select option {
  background: var(--surface);
  color: var(--text);
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.chat-message {
  display: flex;
  gap: var(--space-sm);
  max-width: 92%;
  animation: msgIn 0.25s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message.ai {
  align-self: flex-start;
}
.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.chat-message.ai .chat-avatar {
  background: var(--primary-glow);
}
.chat-message.user .chat-avatar {
  background: var(--surface-hover);
}

.chat-bubble {
  padding: var(--space-sm) 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.chat-message.ai .chat-bubble {
  background: var(--surface-hover);
  color: var(--text);
  border-top-left-radius: var(--radius-xs);
}
.chat-message.user .chat-bubble {
  background: rgba(0, 212, 170, 0.12);
  color: var(--text);
  border-top-right-radius: var(--radius-xs);
}

.chat-bubble code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Chat Input */
.chat-input-area {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: var(--space-xs);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xs);
  transition: border-color var(--transition);
}
.chat-input-wrap:focus-within {
  border-color: var(--primary);
}

.chat-input {
  flex: 1;
  min-height: 36px;
  max-height: 120px;
  padding: 6px 10px;
  font-size: 13px;
  resize: none;
  line-height: 1.5;
  color: var(--text);
  background: transparent;
}
.chat-input::placeholder {
  color: var(--text-dim);
}

.chat-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text-dim);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.chat-btn:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.chat-btn-send {
  color: var(--primary);
}
.chat-btn-send:hover {
  background: var(--primary-glow);
}

/* ============================================================
   STATUS BAR (bottom of window)
   ============================================================ */
.statusbar {
  display: flex;
  align-items: center;
  height: var(--statusbar-height);
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0 var(--space-md);
  font-size: 11px;
  color: var(--text-dim);
  user-select: none;
  gap: var(--space-md);
  z-index: 100;
}

.statusbar-left,
.statusbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.statusbar-left { flex: 1; }
.statusbar-right { flex-shrink: 0; }

.status-item {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: default;
}
.status-item:hover {
  color: var(--text-muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-dot.connected { background: var(--success); }
.status-dot.disconnected { background: var(--error); }

/* ============================================================
   SPLIT.JS GUTTERS
   ============================================================ */
.gutter {
  background: var(--border);
  transition: background var(--transition);
  z-index: 5;
}
.gutter:hover {
  background: var(--primary);
}
.gutter.gutter-horizontal {
  cursor: col-resize;
  width: 4px !important;
}
.gutter.gutter-vertical {
  cursor: row-resize;
  height: 4px !important;
}

/* ============================================================
   UTILITY
   ============================================================ */
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* File icons by extension */
.file-icon-html { color: #e44d26; }
.file-icon-css { color: #264de4; }
.file-icon-js { color: #f0db4f; }
.file-icon-md { color: #519aba; }
.file-icon-json { color: #cbcb41; }
.file-icon-folder { color: var(--accent); }
.file-icon-folder-open { color: var(--accent); }

/* ============================================================
   RESPONSIVE — collapse sidebar/chat on small screens
   ============================================================ */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .chat-panel { display: none; }
}
@media (max-width: 600px) {
  .activity-bar { width: 40px; }
  .activity-btn { width: 34px; height: 34px; }
  .topbar-center { display: none; }
}
