/**
 * @file
 * Styles for model search functionality.
 */

/* Search wrapper */
.model-search-wrapper {
  position: sticky;
  top: 80px;
  z-index: 100;
  background: #fff;
  padding: 15px 0;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 20px;
}

/* Search input */
.model-search-input {
  border-radius: 4px;
  border: 1px solid #ced4da;
  padding: 10px 15px;
  font-size: 16px;
  background-color: #d4edda;
  transition: background-color 0.3s ease;
}

.model-search-input:hover {
  background-color: #ffffff;
}

.model-search-input:focus {
  background-color: #ffffff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Clear button */
.model-search-clear {
  border: 1px solid #ced4da;
  border-left: 0;
  background: #f8f9fa;
  cursor: pointer;
  padding: 10px 15px;
}

.model-search-clear:hover {
  background: #e9ecef;
}

/* Results info */
.model-search-results {
  font-size: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Highlight styles */
.model-search-highlight {
  background-color: #fff3cd;
  padding: 2px 4px;
  border-radius: 2px;
  font-weight: 500;
}

.model-search-highlight.model-search-active {
  background-color: #ffc107;
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.5);
}

/* Navigation buttons */
.model-search-prev,
.model-search-next {
  font-size: 13px;
  padding: 4px 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .model-search-wrapper {
    top: 60px;
    padding: 10px 0;
  }

  .model-search-input {
    font-size: 14px;
    padding: 8px 12px;
  }

  .model-search-results {
    font-size: 12px;
    margin-top: 8px;
  }

  .model-search-prev,
  .model-search-next {
    font-size: 11px;
    padding: 3px 8px;
    margin-top: 5px;
  }
}

/* Animation for smooth scrolling */
html {
  scroll-behavior: smooth;
}
