/* GitHub-inspired file browser styling with dark theme */
.file-browser { 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; 
  color: #eee; 
  background-color: #111; 
  border: 1px solid #333; 
  border-radius: 6px; 
  margin-bottom: 16px; 
  overflow: hidden; 
  max-height: 800px; 
  display: flex; 
  flex-direction: column; 
}

/* Browser header with breadcrumbs */
.browser-header { 
  padding: 16px; 
  background-color: #161616; 
  border-bottom: 1px solid #333; 
}

.breadcrumbs { 
  font-size: 14px; 
}

.breadcrumb { 
  color: #00ff00; 
  cursor: pointer; 
}

.breadcrumb:hover { 
  text-decoration: underline; 
}

/* Main browser content area */
.browser-content { 
  display: flex; 
  flex: 1; 
  min-height: 0; /* Important for flexbox to respect max-height */ 
}

/* File list */
.file-list { 
  flex: 0 0 35%; 
  overflow: auto; 
  border-right: 1px solid #333; 
}

.files-table { 
  width: 100%; 
  border-collapse: collapse; 
}

.files-table th { 
  text-align: left; 
  padding: 8px 16px; 
  font-size: 12px; 
  border-bottom: 1px solid #333; 
  background-color: #161616; 
  color: #aaa; 
  font-weight: 600; 
  position: sticky; 
  top: 0; 
}

.files-table td { 
  padding: 8px 16px; 
  border-top: 1px solid #222; 
  font-size: 14px; 
  white-space: nowrap; 
}

.files-table tr:hover { 
  background-color: #1a1a1a; 
}

.files-table tr.selected { 
  background-color: #1a2a32; 
}

.files-table a { 
  color: #eee; 
  text-decoration: none; 
  display: flex; 
  align-items: center; 
}

.files-table a:hover { 
  color: #00ff00; 
}

/* Icons */
.folder-icon, .file-icon { 
  margin-right: 8px; 
  fill: #666; 
}

/* File content area */
.file-content-container { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  min-width: 0; /* Important for flexbox to respect container width */
  border-left: 1px solid #333; 
}

.file-content-header { 
  padding: 16px; 
  background-color: #161616; 
  border-bottom: 1px solid #333; 
}

.file-title { 
  margin: 0; 
  padding: 0; 
  font-size: 1.8rem; 
  color: #00ff00; 
}

.file-description { 
  margin: 0.5rem 0 0; 
  padding: 0; 
  font-size: 1.1rem; 
  color: #aaa; 
}

.file-content { 
  flex: 1; 
  overflow: auto; 
  padding: 0; 
  position: relative; 
  background-color: #1a1a1a; 
}

.file-content pre { 
  margin: 0; 
  padding: 16px; 
  overflow: auto; 
  background-color: #1a1a1a; 
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; 
  font-size: 13px; 
  line-height: 1.5; 
  color: #f8f8f2; 
}

.file-content code { 
  background-color: transparent; 
  padding: 0; 
  color: #f8f8f2; 
}

/* Placeholder for when no file is selected */
.placeholder { 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
  height: 100%; 
  color: #666; 
  padding: 32px; 
  text-align: center; 
}

.placeholder-icon { 
  fill: #444; 
  margin-bottom: 16px; 
  width: 48px; 
  height: 48px; 
}

.placeholder p { 
  margin: 0; 
  font-size: 14px; 
}

/* Error message */
.error-message { 
  padding: 16px; 
  color: #ff5555; 
  text-align: center; 
  font-weight: 500; 
}

/* Responsive adjustments */
@media (max-width: 768px) { 
  .browser-content { 
    flex-direction: column; 
  } 
  
  .file-list { 
    flex: 0 0 auto; 
    max-height: 50%; 
    border-right: none; 
    border-bottom: 1px solid #333; 
  } 
  
  .files-table td:nth-child(2), 
  .files-table th:nth-child(2), 
  .files-table td:nth-child(3), 
  .files-table th:nth-child(3) { 
    display: none; 
  } 
}
