/* CSS Variables for Theming */
:root {
  --primary-color: #007acc;
  --secondary-color: #1e1e1e;
  --accent-color: #4CAF50;
  --danger-color: #f44336;
  --warning-color: #ff9800;
  --background-color: #0d1117;
  --surface-color: #161b22;
  --surface-hover: #21262d;
  --border-color: #30363d;
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --editor-bg: #0d1117;
  --sidebar-width: 280px;
  --panel-width: 350px;
  --header-height: 48px;
  --status-height: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background-color);
  color: var(--text-primary);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d1117 0%, #1a1a2e 50%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.splash-content {
  text-align: center;
  max-width: 400px;
}

.splash-logo {
  margin-bottom: 3rem;
}

.python-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

.splash-logo h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #4CAF50, #45a049, #007acc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.splash-logo p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.splash-progress {
  margin-top: 2rem;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--surface-color);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Main IDE Container */
.ide-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--background-color);
}

/* Menu Bar */
.menu-bar {
  height: var(--header-height);
  background: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.menu-section {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--accent-color);
}

.logo-icon {
  font-size: 1.2rem;
}

.menu-items {
  display: flex;
  gap: 1rem;
}

.menu-item {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.menu-item:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.menu-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-btn {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--accent-color);
  color: white;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.action-btn:hover {
  background: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.action-btn.secondary {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.action-btn.secondary:hover {
  background: var(--warning-color);
  color: white;
}

.theme-selector select {
  background: var(--surface-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

/* Main Layout */
.main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--surface-color);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.sidebar-tabs {
  display: flex;
  background: var(--surface-hover);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-tab {
  flex: 1;
  padding: 0.6rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.sidebar-tab:hover {
  background: var(--surface-color);
}

.sidebar-tab.active {
  background: var(--surface-color);
  border-bottom-color: var(--accent-color);
  color: var(--accent-color);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-actions {
  display: flex;
  gap: 0.25rem;
}

.icon-btn {
  padding: 0.3rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s ease;
  font-size: 0.8rem;
}

.icon-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

/* File Tree */
.file-tree {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.85rem;
}

.file-item, .folder-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1px;
}

.file-item:hover, .folder-item:hover {
  background: var(--surface-hover);
}

.file-item.active {
  background: var(--primary-color);
  color: white;
}

.file-icon, .folder-icon {
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}

.folder-children {
  margin-left: 1rem;
  border-left: 1px solid var(--border-color);
  padding-left: 0.5rem;
}

/* Package Manager */
.package-search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.package-search input {
  flex: 1;
  background: var(--surface-hover);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.4rem;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.package-categories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.package-category h4 {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.package-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem;
  border-radius: 4px;
  background: var(--surface-hover);
  margin-bottom: 0.3rem;
}

.package-info {
  flex: 1;
}

.package-name {
  font-weight: 500;
  font-size: 0.85rem;
}

.package-version {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.package-btn {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--accent-color);
  background: transparent;
  color: var(--accent-color);
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.2s ease;
}

.package-btn:hover {
  background: var(--accent-color);
  color: white;
}

/* Editor Area */
.editor-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--editor-bg);
}

.tab-bar {
  height: 35px;
  background: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  overflow-x: auto;
}

.editor-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: var(--surface-hover);
  border: 1px solid var(--border-color);
  border-bottom: none;
  cursor: pointer;
  font-size: 0.85rem;
  margin-right: 2px;
  border-radius: 3px 3px 0 0;
  transition: all 0.2s ease;
}

.editor-tab.active {
  background: var(--editor-bg);
  color: var(--accent-color);
}

.editor-tab:hover {
  background: var(--surface-color);
}

.tab-close {
  margin-left: 0.3rem;
  opacity: 0.6;
  font-size: 0.8rem;
}

.tab-close:hover {
  opacity: 1;
  color: var(--danger-color);
}

.tab-controls {
  margin-left: auto;
  display: flex;
  gap: 0.25rem;
}

.tab-control {
  padding: 0.3rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.tab-control:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.editor-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Welcome Screen */
.welcome-screen {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--editor-bg);
  padding: 2rem;
}

.welcome-content {
  width: 100%;
  max-width: 960px;
  text-align: center;
}

.welcome-logo {
  margin-bottom: 3rem;
}

.welcome-logo .python-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

.welcome-logo h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-logo p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.action-card {
  padding: 1.5rem;
  min-width: 0;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.1);
}

.action-card i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.action-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.action-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.recent-projects {
  margin-top: 2rem;
}

.recent-projects h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: var(--surface-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recent-item:hover {
  background: var(--surface-hover);
}

.recent-item i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.recent-info {
  flex: 1;
  text-align: left;
}

.recent-name {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
}

.recent-path {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: 'Monaco', 'Consolas', monospace;
}

.recent-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Right Panel */
.right-panel {
  width: var(--panel-width);
  background: var(--surface-color);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.panel-tabs {
  display: flex;
  background: var(--surface-hover);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.panel-tab {
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  font-size: 0.8rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.panel-tab:hover {
  background: var(--surface-color);
}

.panel-tab.active {
  background: var(--surface-color);
  border-bottom-color: var(--accent-color);
  color: var(--accent-color);
}

.panel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--surface-hover);
}

.panel-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
}

.panel-actions {
  display: flex;
  gap: 0.25rem;
}

/* Output Console */
.output-console {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.4;
  background: var(--editor-bg);
}

.output-line {
  margin-bottom: 0.2rem;
  padding: 0.1rem 0;
}

.output-line.stdout {
  color: var(--text-primary);
}

.output-line.stderr {
  color: var(--danger-color);
  background: rgba(244, 67, 54, 0.1);
  padding: 0.3rem;
  border-radius: 3px;
  border-left: 3px solid var(--danger-color);
}

.output-line.system {
  color: var(--accent-color);
  font-weight: 500;
}

/* Interactive Console */
.interactive-console {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--editor-bg);
}

.console-history {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.85rem;
}

.console-input {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border-color);
  background: var(--surface-color);
}

.console-prompt {
  color: var(--accent-color);
  font-family: 'Monaco', 'Consolas', monospace;
  font-weight: 600;
  margin-right: 0.5rem;
}

.console-input input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9rem;
}

/* Debugger */
.debugger-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.debug-controls {
  display: flex;
  gap: 0.25rem;
}

.debug-section {
  margin-bottom: 1.5rem;
}

.debug-section h4 {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.variables-list, .call-stack, .breakpoints-list {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.8rem;
}

.variable-item, .stack-item, .breakpoint-item {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem;
  border-radius: 3px;
  margin-bottom: 0.2rem;
  background: var(--surface-hover);
}

.variable-name, .stack-function {
  font-weight: 500;
  color: var(--accent-color);
}

.variable-value, .stack-line {
  color: var(--text-secondary);
}

/* Plots */
.plots-container {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.plot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
}

.plot-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Profiler */
.profiler-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.profiler-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--surface-hover);
  border-radius: 6px;
  text-align: center;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-color);
  font-family: 'Monaco', 'Consolas', monospace;
}

.profiler-chart {
  height: 200px;
  background: var(--surface-hover);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

/* Status Bar */
.status-bar {
  height: var(--status-height);
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  font-size: 0.75rem;
}

.status-left, .status-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-secondary);
}

.status-item.clickable {
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.status-item.clickable:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.status-indicator {
  font-size: 0.6rem;
}

.status-indicator.ready {
  color: var(--accent-color);
}

.status-indicator.running {
  color: var(--warning-color);
  animation: pulse 1s infinite;
}

.status-indicator.error {
  color: var(--danger-color);
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--surface-color);
  border-radius: 8px;
  max-width: 80%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.modal-content.large {
  max-width: 90%;
  max-height: 90%;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--surface-hover);
}

.modal-header h2 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--danger-color);
}

.modal-body {
  flex: 1;
  overflow: auto;
  padding: 1.5rem;
}

/* Tutorial Modal */
.tutorial-sidebar {
  width: 250px;
  background: var(--surface-hover);
  border-radius: 6px;
  padding: 1rem;
  margin-right: 1.5rem;
  height: fit-content;
}

.tutorial-content {
  flex: 1;
  min-height: 400px;
}

.tutorial-lesson {
  background: var(--surface-hover);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  min-height: 300px;
}

.tutorial-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.btn-primary, .btn-secondary {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background: #45a049;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--surface-color);
}

/* Template Grid */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.template-card {
  background: var(--surface-hover);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.template-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.1);
}

.template-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.template-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.template-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.template-tag {
  background: rgba(76, 175, 80, 0.1);
  color: var(--accent-color);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

/* AI Assistant */
.ai-chat {
  display: flex;
  flex-direction: column;
  height: 500px;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 1rem;
  background: var(--editor-bg);
}

.ai-message {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border-radius: 6px;
  max-width: 80%;
}

.ai-message.user {
  background: var(--primary-color);
  color: white;
  margin-left: auto;
}

.ai-message.assistant {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.ai-input {
  display: flex;
  gap: 0.5rem;
}

.ai-input input {
  flex: 1;
  background: var(--surface-hover);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.8rem;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.ai-input button {
  background: var(--accent-color);
  border: none;
  border-radius: 4px;
  padding: 0.8rem 1rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-input button:hover {
  background: #45a049;
}

/* Animations */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Keep Monaco's custom scrollbars visually hidden while preserving editor scroll input. */
.monaco-editor .scrollbar,
.monaco-scrollable-element > .scrollbar {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 250px;
    --panel-width: 300px;
  }
}

@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
  }
  
  .sidebar, .right-panel {
    width: 100%;
    height: 200px;
  }
  
  .menu-items {
    display: none;
  }
  
  .quick-actions {
    grid-template-columns: 1fr;
  }
}
