#view-toggle {
  display: none;
  background: #16213e;
  padding: 4px 16px;
  gap: 4px;
  border-bottom: 1px solid #333;
}

.toggle-btn {
  flex: 1;
  padding: 6px 12px;
  background: #0f3460;
  color: #aaa;
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
}

.toggle-btn.active {
  background: #e94560;
  color: #fff;
  border-color: #e94560;
}

#file-browser-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0d1b30;
  border-right: 1px solid #333;
  min-width: 0;
}

#file-browser-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #16213e;
  border-bottom: 1px solid #333;
  flex-shrink: 0;
}

.file-nav-btn {
  background: #0f3460;
  color: #eee;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}

.file-nav-btn:hover {
  background: #e94560;
  border-color: #e94560;
}

#file-current-path {
  flex: 1;
  font-size: 12px;
  color: #aaa;
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: left;
}

#file-browser-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

#file-transfer-section {
  border-top: 1px solid #333;
  padding: 8px;
  flex-shrink: 0;
}

#file-transfer-list, #device-files-list {
  margin-top: 8px;
  overflow-y: auto;
}

.file-item {
  padding: 6px 8px;
  background: #0a0a1a;
  border-radius: 4px;
  margin-bottom: 4px;
  font-size: 12px;
}

.file-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-progress {
  width: 100%;
  height: 4px;
  background: #333;
  border-radius: 2px;
  margin-top: 4px;
}

.file-progress-bar {
  height: 100%;
  background: #4CAF50;
  border-radius: 2px;
  transition: width 0.3s;
}

.file-download-btn, .file-send-btn {
  background: #0f3460;
  color: #eee;
  border: none;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
}

.file-download-btn:hover, .file-send-btn:hover {
  background: #e94560;
}

.file-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #0a0a1a;
  border-radius: 4px;
  margin-bottom: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
}

.file-entry:hover { background: #1a2a4a; }

.file-entry-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.file-entry-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-entry-size {
  color: #666;
  font-size: 11px;
  flex-shrink: 0;
}

.file-entry-actions { flex-shrink: 0; }
