/* Sidebar: always visible on desktop, slide-in on mobile */
#app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  transform: translateX(-100%);
  transition: transform 200ms;
  z-index: 50;
}
#app-sidebar.sidebar-open {
  transform: translateX(0);
}
@media (min-width: 1024px) {
  #app-sidebar {
    position: static;
    transform: translateX(0) !important;
  }
}

/* Hide mobile-only elements on desktop */
@media (min-width: 1024px) {
  #mobile-menu-btn,
  #sidebar-overlay {
    display: none !important;
  }
}

/* Main Styles */
.fade-in { animation: fadeIn .15s ease-out; }
@keyframes fadeIn { from { opacity:0; transform:translateY(4px) } to { opacity:1; transform:translateY(0) } }
.mono { font-family: ui-monospace, monospace; }
.sidebar-item.active { background: oklch(var(--p)/0.15); color: oklch(var(--p)); }

/* Enhanced Code Editor Styles */
.code-editor-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.code-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.code-editor-textarea {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.5;
  padding: 16px;
  background: #1e1e1e;
  color: #d4d4d4;
  border: 1px solid #444;
  border-radius: 8px;
  white-space: pre;
  overflow: auto;
  tab-size: 2;
  min-height: 300px;
  width: 100%;
  resize: vertical;
}
