.file-search-container {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
}

.file-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #1e1e1e;
  border: 2px solid #555;
  border-radius: 6px;
  padding: 8px 12px;
  transition: border-color 0.2s ease;
}

.file-search-input-wrapper:focus-within {
  border-color: #2196F3;
}

.search-icon {
  color: #888;
  margin-right: 8px;
  font-size: 14px;
}

.file-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #abb2bf;
  font-size: 14px;
  outline: none;
  padding: 0;
}

.file-search-input::placeholder {
  color: #666;
}

.clear-search-button {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

.clear-search-button:hover {
  background-color: #333;
  color: #fff;
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #252526;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 4px;
}

.search-result-item {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid #3c3c3c;
  transition: background-color 0.2s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

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

.file-icon {
  color: #569cd6;
  margin-right: 12px;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  color: #d4d4d4;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-path {
  color: #888;
  font-size: 12px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-preview {
  color: #9cdcfe;
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.search-loading,
.no-results {
  padding: 16px;
  text-align: center;
  color: #888;
  font-size: 14px;
}

.search-loading {
  color: #569cd6;
}

/* 滚动条样式 */
.search-results-dropdown::-webkit-scrollbar {
  width: 8px;
}

.search-results-dropdown::-webkit-scrollbar-track {
  background: #1e1e1e;
  border-radius: 4px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
  background: #424242;
  border-radius: 4px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
  background: #4f4f4f;
}