/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #18181b;
  color: white;
  min-height: 100vh;
}

/* Fixed search box */
.search-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, #18181b 70%, rgba(24, 24, 27, 0) 100%);
  padding: 16px 0 24px 0;
  z-index: 50;
}

.search-wrapper {
  max-width: 672px;
  margin: 0 auto;
  padding: 0 8px;
}

@media (min-width: 768px) {
  .search-wrapper {
    padding: 0 16px;
  }
}

.search-box {
  width: 100%;
  padding: 12px 16px;
  font-size: 18px;
  line-height: 28px;
  background-color: #27272a;
  border: 2px solid #3f3f46;
  color: white;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s;
}

.search-box::placeholder {
  color: #a1a1aa;
}

.search-box:focus {
  border-color: #71717a;
}

/* Results container */
.results-container {
  max-width: 672px;
  margin: 0 auto;
  padding: 0 8px 32px;
  margin-top: 96px;
}

@media (min-width: 768px) {
  .results-container {
    padding: 0 16px 32px;
  }
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* App item */
.app-item {
  background-color: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.2s ease-out forwards;
}

.app-item:hover {
  background-color: #3f3f46;
  border-color: #52525b;
}

.app-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-icon {
  flex-shrink: 0;
}

.app-icon img,
.app-icon div {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

.app-icon div {
  background-color: #52525b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.app-info {
  flex: 1;
}

.app-name {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
}

.app-desc {
  font-size: 14px;
  line-height: 20px;
  color: #a1a1aa;
}

.app-link {
  flex-shrink: 0;
}

.app-link img {
  width: 20px;
  height: 20px;
}

/* Selected state */
.app-item.selected {
  background-color: #3f3f46;
  border-color: #52525b;
}

/* No results */
.no-results {
  color: #a1a1aa;
  text-align: center;
  padding: 32px 0;
}

/* Animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}