/* Custom Autocomplete Styles */
.custom-autocomplete-widget {
  padding: 0 16px;
  display: flex;
  align-items: center;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  i {
    font-size: 20px;
  }

  .custom-autocomplete-results {
    position: absolute;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 6;
    display: none;
    margin-top: 5px;
    top: 50px;
    left: 0;

    .search-highlight {
      display: contents;
      color: #ff431e;
    }
  }

  .autocomplete-suggestions {
    padding: 5px 0;
  }

  .autocomplete-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
  }

  .autocomplete-item:last-child {
    border-bottom: none;
  }

  .autocomplete-item:hover {
    background-color: #f8f8f8;
  }

  .item-content {
    flex: 1;
    min-width: 0;
  }

  .item-content h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .item-meta {
    margin: 0;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
  }

  .item-meta i {
    margin-right: 6px;
    font-size: 12px;
  }

  /* LOADING and empty states */
  .autocomplete-loading,
  .autocomplete-empty {
    padding: 15px;
    text-align: center;
    color: #666;
  }

  .custom-autocomplete-input {
    transition: all 0.3s ease-in-out 0s;
    box-shadow: none;
    padding-left: 12px;
    height: 50px;
    width: 100%;
    border-radius: 0;
    resize: none;
    color: #626a70;
    border: 0;
  }

  .autocomplete-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: 100px;
  }

  /* Spinner Animation */
  .loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #F7A816;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
}
