.searchButton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.7rem 0.45rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--foreground-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.searchButton:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.05);
}

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

.searchShortcut {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  animation: slideDown 0.2s ease;
  overflow: hidden;
}

.searchInputWrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.searchIcon {
  color: var(--foreground-muted);
  flex-shrink: 0;
}

.searchInput {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--foreground);
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}

.searchInput::placeholder {
  color: var(--foreground-muted);
}

.closeButton {
  background: transparent;
  border: none;
  color: var(--foreground-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.closeButton:hover {
  color: var(--foreground);
}

.results {
  max-height: 400px;
  overflow-y: auto;
}

.resultsList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resultItem {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
}

.resultItem:hover,
.resultItemActive {
  background: rgba(255, 255, 255, 0.05);
}

.resultIcon {
  color: var(--foreground-muted);
  flex-shrink: 0;
}

.resultContent {
  flex: 1;
  min-width: 0;
}

.resultTitle {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

.resultCategory {
  font-size: 0.75rem;
  color: var(--foreground-muted);
}

.noResults,
.emptyState {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--foreground-muted);
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Scrollbar styling */
.results::-webkit-scrollbar {
  width: 8px;
}

.results::-webkit-scrollbar-track {
  background: transparent;
}

.results::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.results::-webkit-scrollbar-thumb:hover {
  background: var(--foreground-muted);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .searchButton {
    width: 100%;
    font-size: 0.85rem;
  }

  .searchShortcut {
    display: none;
  }

  .modal {
    top: 10%;
    width: 95%;
    max-width: none;
  }

  .searchInputWrapper {
    padding: 0.875rem 1rem;
  }

  .searchInput {
    font-size: 0.9rem;
  }

  .results {
    max-height: 60vh;
  }

  .resultItem {
    padding: 0.625rem 1rem;
  }

  .resultTitle {
    font-size: 0.85rem;
  }

  .resultCategory {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .modal {
    top: 5%;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .searchInputWrapper {
    padding: 0.75rem;
  }

  .results {
    max-height: 70vh;
  }
}

