.user-result {
  transition: transform 0.2s ease;
  border-left: 5px solid #ddd;
}

.user-result:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.match-score {
  font-size: 1.1em;
  padding: 5px 10px;
}

.match-score.high {
  background-color: #28a745;
}

.match-score.medium {
  background-color: #ffc107;
}

.match-score.low {
  background-color: #dc3545;
}

.match-details-list {
  padding-left: 0;
  list-style-type: none;
}

.match-details-item {
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 4px;
}

.match-details-item.matched {
  background-color: rgba(40, 167, 69, 0.1);
  border-left: 3px solid #28a745;
}

.match-details-item.unmatched {
  background-color: rgba(220, 53, 69, 0.1);
  border-left: 3px solid #dc3545;
}

#search-examples {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#search-examples .card-header {
  flex-shrink: 0;
}

#search-examples .card-body {
  padding: 1rem;
  overflow-y: auto;
  flex-grow: 1;
  max-height: 300px; /* Will be overridden by JavaScript to match search box */
}

.example-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
}

.example-list li {
  margin-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
}

.example-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.example-query {
  display: block;
  color: #007bff;
  cursor: pointer;
  line-height: 1.3;
  transition: all 0.2s ease;
  padding: 5px;
  border-radius: 4px;
}

.example-query:hover {
  text-decoration: none;
  background-color: #f8f9fa;
  color: #0056b3;
  transform: translateX(3px);
}

.badge-match {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  background-color: #28a745;
  color: white;
  margin-left: 8px;
}

.badge-nomatch {
  background-color: #dc3545;
}

.user-vehicle-list {
  list-style-type: none;
  padding-left: 0;
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
}

.user-vehicle-list li {
  margin-right: 10px;
  margin-bottom: 5px;
  border: 1px solid #ddd;
  padding: 3px 8px;
  border-radius: 15px;
  font-size: 0.85em;
  display: inline-block;
}

.user-vehicle-list li.matched {
  background-color: rgba(40, 167, 69, 0.1);
  border-color: #28a745;
}

.user-banned {
  color: #dc3545;
  font-weight: bold;
}

.search-params-summary {
  background-color: #e8f4f8;
  border-left: 4px solid #17a2b8;
  padding: 15px 20px;
  border-radius: 4px;
}

.search-params-summary h5 {
  margin-bottom: 10px;
  color: #17a2b8;
  font-weight: 600;
}

.search-params-summary p {
  margin-bottom: 8px;
  line-height: 1.5;
}

.search-params-summary ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.search-params-summary .font-italic {
  color: #6c757d;
}

/* Card styling */
.card {
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.1);
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.card-header h4, .card-header h5 {
  margin-bottom: 0;
  color: #343a40;
}

/* Search box styling */
#search-query {
  resize: vertical;
  min-height: 120px;
  font-size: 16px;
  line-height: 1.5;
  border-color: #ced4da;
}

#search-query:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Make the search button larger */
#search-form .btn-primary {
  padding: 8px 24px;
  font-size: 16px;
  margin-top: 10px;
}

/* Fade in animation for search results */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#search-results {
  animation: fadeIn 0.5s ease-out;
}

.user-result {
  animation: fadeIn 0.5s ease-out;
  animation-fill-mode: both;
}

/* Staggered animation delay for results */
.user-result:nth-child(2) { animation-delay: 0.1s; }
.user-result:nth-child(3) { animation-delay: 0.2s; }
.user-result:nth-child(4) { animation-delay: 0.3s; }
.user-result:nth-child(5) { animation-delay: 0.4s; }