/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", sans-serif;
  background-color: #1e1e1e;
  color: #cccccc;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 22px;
}

/* Title Bar */
.title-bar {
  background-color: #0c1fca;
  color: #f9f9ff;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  user-select: none;
  border-bottom: 1px solid #252526;
  flex-shrink: 0;
}

.title-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #f9f9ff;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  transition: background-color 0.15s;
}

.mobile-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle:active {
  background-color: rgba(255, 255, 255, 0.15);
}

.menu-items {
  display: flex;
  gap: 15px;
}

.menu-item {
  font-size: 13px;
  color: #f9f9ff;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 3px;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.title-bar-center {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 600px;
  max-width: 50%;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.search-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #3c3c3c;
  border: 1px solid #3c3c3c;
  border-radius: 20px;
  padding: 5px 16px;
  transition: border-color 0.2s, background-color 0.2s;
  pointer-events: auto;
  width: 100%;
}

.search-bar:focus-within {
  background-color: #2d2d2d;
  border-color: #007acc;
}

.search-icon {
  color: #cccccc;
  margin-right: 8px;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #cccccc;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", sans-serif;
  text-align: center;
}

.search-input::placeholder {
  color: #888888;
  text-align: center;
}

.title-text {
  font-size: 12px;
  color: #888888;
}

/* Mobile Overlay - hidden by default */
.mobile-overlay {
  display: none;
}

/* Main Container */
.container {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* Activity Bar */
.activity-bar {
  width: 48px;
  background-color: #091691;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-right: 1px solid #252526;
}

.activity-icons,
.activity-icons-bottom {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.activity-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #858585;
  position: relative;
}

.activity-icon:hover {
  color: #ffffff;
}

.activity-icon.active {
  color: #ffffff;
}

.activity-icon.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #007acc;
}

.activity-icon svg {
  width: 24px;
  height: 24px;
}

/* Sidebar */
.sidebar {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  flex-shrink: 0;
  background-color: #252526;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1e1e1e;
}

.sidebar-header {
  padding: 12px 20px;
  background-color: #252526;
  border-bottom: 1px solid #1e1e1e;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 600;
  color: #cccccc;
  letter-spacing: 0.5px;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 5px 0;
}

.folder-section {
  margin-bottom: 10px;
}

.folder-header {
  padding: 8px 20px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #cccccc;
}

.folder-header:hover {
  background-color: #2a2d2e;
}

.folder-icon {
  font-size: 10px;
}

.file-tree {
  margin-left: 10px;
}

.folder-item,
.subfolder-item {
  padding: 4px 20px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #cccccc;
}

.folder-item:hover,
.subfolder-item:hover {
  background-color: #2a2d2e;
}

.folder-toggle {
  font-size: 10px;
  width: 12px;
  display: inline-block;
  transition: transform 0.2s;
}

.folder-content {
  margin-left: 20px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.folder-content.collapsed {
  display: none;
}

.subfolder-item {
  padding-left: 20px;
}

.file-item {
  padding: 4px 20px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cccccc;
}

.file-item:hover {
  background-color: #2a2d2e;
}

.file-item.active {
  background-color: #37373d;
}

.file-icon {
  font-size: 14px;
}

.file-name {
  font-size: 13px;
}

/* Editor Area */
.editor-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #1e1e1e;
  min-height: 0;
  position: relative;
}

/* Tabs */
.tabs {
  display: flex;
  background-color: #2d2d2d;
  border-bottom: 1px solid #252526;
  overflow-x: auto;
  overflow-y: hidden;
  height: 35px;
  flex-shrink: 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background-color: #2d2d2d;
  border-right: 1px solid #252526;
  cursor: pointer;
  user-select: none;
  min-width: 120px;
  flex-shrink: 0;
}

.tab:hover {
  background-color: #1e1e1e;
}

.tab.active {
  background-color: #1e1e1e;
  border-top: 1px solid #007acc;
}

.tab-icon {
  font-size: 14px;
}

.tab-name {
  font-size: 13px;
  color: #cccccc;
  flex: 1;
}

.tab-close {
  font-size: 12px;
  color: #858585;
  padding: 2px 4px;
  border-radius: 3px;
}

.tab-close:hover {
  background-color: #3e3e42;
}

/* Editor Content */
.editor-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.editor-file {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.editor-file.active {
  display: flex !important;
}

.line-numbers {
  background-color: #1e1e1e;
  padding: 20px 10px;
  padding-right: 10px;
  text-align: right;
  user-select: none;
  color: #858585;
  min-width: 50px;
  flex-shrink: 0;
}

.line-number {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 14px;
  line-height: 22px;
  height: 22px;
}

.code-content {
  flex: 1;
  padding: 20px;
  padding-left: 20px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 14px;
  line-height: 22px;
  background-color: #1e1e1e;
  overflow-x: auto;
}

.code-content pre {
  margin: 0;
  padding: 0;
  color: #d4d4d4;
  caret-color: #fff;
  background: transparent;
  border: none;
  outline: none;
  white-space: pre;
  overflow-x: auto;
  tab-size: 4;
}

/* Markdown Viewer Toggle */
.md-viewer-toggle {
  display: flex;
  gap: 0;
  padding: 8px 20px;
  background: #1e1e1e;
  border-bottom: 1px solid #3e3e42;
}

.viewer-btn {
  padding: 6px 16px;
  background: transparent;
  color: #cccccc;
  border: 1px solid #3e3e42;
  cursor: pointer;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto";
  transition: all 0.2s;
}

.viewer-btn:first-child {
  border-radius: 3px 0 0 3px;
}

.viewer-btn:last-child {
  border-radius: 0 3px 3px 0;
  border-left: none;
}

.viewer-btn:hover {
  background: #2a2d2e;
}

.viewer-btn.active {
  background: #007acc;
  color: #ffffff;
  border-color: #007acc;
}

/* Markdown Editor View */
.md-editor-view {
  display: flex;
  flex: 1;
  overflow: auto;
  min-height: 0;
  position: relative;
}

/* Markdown Preview View */
.md-preview-view {
  padding: 20px 40px;
  overflow: auto;
  background: #1e1e1e;
  position: absolute;
  top: 41px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - 41px);
}

.markdown-preview-content {
  max-width: 900px;
  color: #d4d4d4;
  line-height: 1.6;
  font-size: 14px;
  flex: 1;
}

/* Full Preview - replaces entire editor area */
.full-preview {
  position: absolute;
  top: 41px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 40px;
  overflow: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  z-index: 10;
}

.full-preview h1 {
  color: #4ec9b0;
  font-size: 2.5em;
  margin: 0 0 1em 0;
  border-bottom: 2px solid #3e3e42;
  padding-bottom: 0.3em;
  font-weight: 600;
}

.full-preview h2 {
  color: #4ec9b0;
  font-size: 2em;
  margin: 1.5em 0 0.8em 0;
  font-weight: 500;
}

.full-preview h3 {
  color: #4ec9b0;
  font-size: 1.5em;
  margin: 1.2em 0 0.6em 0;
  font-weight: 500;
}

.full-preview p {
  color: #d4d4d4;
  margin: 0 0 1em 0;
  font-size: 16px;
  line-height: 1.7;
}

.full-preview ul {
  margin: 1em 0;
  padding-left: 2em;
}

.full-preview li {
  color: #d4d4d4;
  margin: 0.5em 0;
  font-size: 16px;
}

.full-preview strong {
  color: #ffffff;
  font-weight: 600;
}

.full-preview a {
  color: #007acc;
  text-decoration: none;
}

.full-preview a:hover {
  text-decoration: underline;
}

.full-preview code {
  background: #2d2d2d;
  color: #f78c6c;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 14px;
}

.markdown-preview-content h1 {
  color: #4ec9b0;
  font-size: 2em;
  margin: 0.67em 0;
  border-bottom: 1px solid #3e3e42;
  padding-bottom: 0.3em;
  font-weight: 600;
}

.markdown-preview-content h2 {
  color: #4ec9b0;
  font-size: 1.5em;
  margin: 0.83em 0;
  border-bottom: 1px solid #3e3e42;
  padding-bottom: 0.3em;
  font-weight: 600;
}

.markdown-preview-content h3 {
  color: #4ec9b0;
  font-size: 1.17em;
  margin: 1em 0;
  font-weight: 600;
}

.markdown-preview-content p {
  margin: 1em 0;
}

.markdown-preview-content strong {
  color: #dcdcaa;
  font-weight: 600;
}

.markdown-preview-content a {
  color: #007acc;
  text-decoration: none;
}

.markdown-preview-content a:hover {
  text-decoration: underline;
}

.markdown-preview-content ul,
.markdown-preview-content ol {
  margin: 1em 0;
  padding-left: 2em;
}

.markdown-preview-content li {
  margin: 0.5em 0;
}

.markdown-preview-content code {
  background: #2d2d30;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.9em;
  color: #ce9178;
}

.markdown-preview-content pre {
  background: #2d2d30;
  padding: 16px;
  border-radius: 3px;
  overflow-x: auto;
  margin: 1em 0;
}

.markdown-preview-content pre code {
  background: transparent;
  padding: 0;
}
.code-line {
  min-height: 22px;
  color: #d4d4d4;
}

/* Syntax Highlighting for Markdown */
.markdown-header {
  color: #569cd6;
  font-weight: bold;
}

.markdown-bold {
  color: #ffffff;
  font-weight: bold;
}

.markdown-italic {
  color: #ce9178;
  font-style: italic;
}

.markdown-link {
  color: #4ec9b0;
  text-decoration: underline;
}

.markdown-image {
  display: block;
  margin: 15px 0;
  max-width: 25%;
}

.markdown-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #3c3c3c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.markdown-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.markdown-code {
  color: #ce9178;
  background-color: #2d2d2d;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Syntax Highlighting for HTML */
.html-tag {
  color: #808080;
}

.html-attr {
  color: #9cdcfe;
}

.html-string {
  color: #ce9178;
}

.html-comment {
  color: #6a9955;
  font-style: italic;
}

/* Syntax Highlighting for CSS */
.css-selector {
  color: #d7ba7d;
}

.css-property {
  color: #9cdcfe;
}

.css-value {
  color: #ce9178;
}

.css-comment {
  color: #6a9955;
  font-style: italic;
}

/* Syntax Highlighting for JavaScript */
.js-keyword {
  color: #569cd6;
}

.js-function {
  color: #dcdcaa;
}

.js-string {
  color: #ce9178;
}

.js-comment {
  color: #6a9955;
  font-style: italic;
}

/* Syntax Highlighting for Git/Config files */
.git-comment {
  color: #6a9955;
  font-style: italic;
}

/* Syntax Highlighting for JSON */
.json-property {
  color: #9cdcfe;
}

.json-string {
  color: #ce9178;
}

.json-number {
  color: #b5cea8;
}

.json-boolean {
  color: #569cd6;
}

/* Image Viewer Styles */
.image-viewer {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #1e1e1e;
}

.image-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: #252526;
  border-bottom: 1px solid #1e1e1e;
}

.image-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.image-filename {
  font-size: 14px;
  font-weight: 600;
  color: #cccccc;
}

.image-dimensions,
.image-size {
  font-size: 12px;
  color: #858585;
}

.image-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.image-control-btn {
  background-color: #3c3c3c;
  border: 1px solid #454545;
  color: #cccccc;
  padding: 4px 10px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.2s;
}

.image-control-btn:hover {
  background-color: #505050;
}

.zoom-level {
  font-size: 13px;
  color: #cccccc;
  min-width: 50px;
  text-align: center;
}

.image-viewer-content {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1e1e1e;
  background-image: linear-gradient(45deg, #2d2d2d 25%, transparent 25%),
    linear-gradient(-45deg, #2d2d2d 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2d2d2d 75%),
    linear-gradient(-45deg, transparent 75%, #2d2d2d 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.image-viewer-footer {
  padding: 8px 20px;
  background-color: #252526;
  border-top: 1px solid #1e1e1e;
  font-size: 11px;
  color: #858585;
}

/* Status Bar */
.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22px;
  background-color: #007acc;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 12px;
  user-select: none;
  z-index: 1000;
}

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

.status-item {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0 5px;
}

.status-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.status-item svg {
  width: 16px;
  height: 16px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
  background: #424242;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4e4e4e;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    width: 200px;
  }

  .menu-items {
    gap: 10px;
  }

  .menu-item {
    font-size: 12px;
  }

  .title-bar-center {
    width: 400px;
    max-width: 40%;
  }
}

@media (max-width: 480px) {
  .activity-bar {
    width: 40px;
  }

  .sidebar {
    width: 150px;
  }

  .title-bar-center {
    width: 200px;
    max-width: 30%;
  }

  .search-input::placeholder {
    font-size: 11px;
  }
}

/* Markdown Context Menu */
.md-context-menu {
  display: none;
  position: fixed;
  background-color: #252526;
  border: 1px solid #454545;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  min-width: 150px;
}

.context-menu-item {
  padding: 8px 12px;
  color: #cccccc;
  cursor: pointer;
  font-size: 13px;
}

.context-menu-item:hover {
  background-color: #094771;
}

/* Welcome Screen */
.welcome-screen {
  display: none;
  width: 100%;
  height: 100%;
  background-color: #1e1e1e;
  overflow-y: auto;
  padding: 40px;
  position: absolute;
  top: 0;
  left: 0;
}

.welcome-screen.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.welcome-container {
  max-width: 800px;
  width: 100%;
}

.welcome-header {
  margin-bottom: 40px;
}

.welcome-header h1 {
  font-size: 32px;
  font-weight: 300;
  color: #cccccc;
  margin: 0 0 8px 0;
}

.welcome-subtitle {
  font-size: 14px;
  color: #858585;
  margin: 0;
}

.welcome-section {
  margin-bottom: 32px;
}

.welcome-section h3 {
  font-size: 13px;
  font-weight: 600;
  color: #cccccc;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.welcome-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.welcome-link {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.welcome-link:hover {
  background-color: #2a2d2e;
}

.link-icon {
  font-size: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}

.link-text {
  flex: 1;
}

.link-title {
  font-size: 13px;
  color: #4a9eff;
  margin-bottom: 2px;
}

.link-description {
  font-size: 12px;
  color: #858585;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: block;
  }

  /* Mobile overlay for sidebar */
  .mobile-overlay {
    display: none;
    position: fixed;
    top: 35px;
    left: 0;
    right: 0;
    bottom: 22px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .mobile-overlay.active {
    display: block;
  }

  /* Hide activity bar on mobile */
  .activity-bar {
    display: none;
  }

  /* Make sidebar full width when visible, hide by default */
  .sidebar {
    position: fixed;
    left: -250px;
    top: 35px;
    bottom: 22px;
    width: 250px;
    z-index: 999;
    transition: left 0.3s ease;
  }

  .sidebar.mobile-visible {
    left: 0;
  }

  /* Editor takes full width */
  .editor-area {
    width: 100%;
  }

  /* Make tabs scrollable horizontally */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Smaller tab text */
  .tab-name {
    font-size: 12px;
    max-width: 120px;
  }

  /* Adjust title bar for mobile */
  .title-bar {
    padding: 0 8px;
  }

  .menu-items {
    display: none;
  }

  .search-bar {
    max-width: 200px;
  }

  .search-input {
    font-size: 12px;
  }

  /* Context menu touch improvements */
  .md-context-menu {
    min-width: 180px;
  }

  .context-menu-item {
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .context-menu-item:active {
    background-color: #094771;
  }

  /* File tree touch improvements */
  .file-item,
  .folder-item,
  .subfolder-item {
    padding: 10px 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .folder-toggle {
    padding: 4px;
    margin-right: 4px;
  }

  /* Tab touch improvements */
  .tab {
    min-height: 35px;
    padding: 0 12px;
  }

  .tab-close {
    padding: 4px;
    margin-left: 8px;
  }

  /* Welcome screen adjustments */
  .welcome-container {
    padding: 20px;
  }

  .welcome-header h1 {
    font-size: 28px;
  }

  .welcome-subtitle {
    font-size: 14px;
  }

  /* Code editor adjustments */
  .line-numbers {
    width: 40px;
    font-size: 11px;
  }

  .code-content {
    font-size: 12px;
    padding-left: 10px;
  }

  /* Markdown preview adjustments */
  .markdown-preview-content {
    padding: 15px;
    font-size: 14px;
  }

  .markdown-preview-content h1 {
    font-size: 24px;
  }

  .markdown-preview-content h2 {
    font-size: 20px;
  }

  .markdown-preview-content h3 {
    font-size: 18px;
  }

  /* Image viewer adjustments */
  .image-viewer-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
  }

  .image-controls {
    width: 100%;
    justify-content: space-between;
  }

  /* Status bar adjustments */
  .status-bar {
    font-size: 10px;
    padding: 0 8px;
  }

  .status-left,
  .status-right {
    gap: 8px;
  }

  .status-item {
    padding: 0 3px;
  }

  /* Hide some status items on very small screens */
  .status-item:nth-child(n + 3) {
    display: none;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .title-bar-center {
    display: none;
  }

  .tab-name {
    max-width: 80px;
  }

  .welcome-header h1 {
    font-size: 24px;
  }

  .code-content {
    font-size: 11px;
  }

  .line-numbers {
    width: 35px;
    font-size: 10px;
  }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .welcome-container {
    padding: 15px;
  }

  .welcome-section {
    margin-bottom: 15px;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }

  .search-bar {
    max-width: 250px;
  }

  .tab-name {
    max-width: 150px;
  }
}
