/* Text justification styles */
.text-justify {
  text-align: justify !important;
  font-size: large;        
}
.text-justify p {
  text-align: justify !important;
}
.text-justify li {
  text-align: justify !important;
}

/* Search functionality styles */
.search-container {
  position: relative;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 350px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  margin-top: 0.25rem;
}

/* Responsive search results for smaller screens */
@media (max-width: 768px) {
  .search-results {
    width: 280px;
    left: -50px;
  }
}

@media (max-width: 576px) {
  .search-results {
    width: 250px;
    left: -75px;
  }
}

.search-results__items {
  padding: 0.5rem 0;
}

.search-results__item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-left: 3px solid transparent;
}

.search-results__item:hover {
  background-color: #f8f9fa;
  border-left-color: #0d6efd;
  transform: translateX(2px);
}

.search-results__item:last-child {
  border-bottom: none;
}

.search-results__item:first-child {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.search-results__item:last-child {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.search-results__title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #212529;
  font-size: 0.95rem;
}

.search-results__description {
  font-size: 0.8rem;
  color: #6c757d;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.search-results__url {
  font-size: 0.75rem;
  color: #0d6efd;
  font-weight: 500;
}

/* Empty state styling */
.search-results__empty {
  padding: 1rem;
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

/* Loading state styling */
.search-results__loading {
  padding: 1rem;
  text-align: center;
  color: #6c757d;
}
