/* Search Bar Styles */
.search-container {
  position: relative;
  max-width: 400px;
  margin: 1rem auto;
}

#search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 25px;
  outline: none;
  transition: border-color 0.3s ease;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

#search-results .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

#search-results .close-btn:hover {
  color: #333;
}

#search-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#search-results li {
  border-bottom: 1px solid #eee;
}

#search-results li:last-child {
  border-bottom: none;
}

#search-results a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease;
}

#search-results a:hover {
  background-color: #f8f9fa;
}

#search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

@media (max-width: 768px) {
  .search-container {
    max-width: 100%;
    margin: 1rem 1rem;
  }

  #search-input {
    font-size: 1.1rem;
  }

  #search-results {
    max-height: 250px;
  }
}
