* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  color: #333;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1 {
  margin: 0 0 1.5rem 0;
  font-weight: 600;
}

/* Status indicators */
.status {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  color: #666;
}

.status-item.ready {
  color: #2e7d32;
}

.status-item.error {
  color: #c62828;
}

.status-icon {
  width: 1.5em;
  text-align: center;
}

/* Search form */
.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.search-form input[type="text"] {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
}

.search-form input[type="text"]:focus {
  border-color: #2196f3;
}

.search-form input[type="number"] {
  width: 70px;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
}

.search-form button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-form button:hover {
  background: #1976d2;
}

.search-form button:disabled {
  background: #bdbdbd;
  cursor: not-allowed;
}

/* Results */
.results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
}

.result-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #666;
}

.result-score {
  font-weight: 500;
}

.result-id {
  color: #999;
}

.result-text {
  margin: 0;
}

.no-results {
  text-align: center;
  color: #666;
  padding: 2rem;
}

.searching {
  text-align: center;
  color: #666;
  padding: 2rem;
}

/* Footer */
footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  color: #999;
  font-size: 0.875rem;
}
