/**
 * Global Search Suggestions Styles
 */

/* Suggestions Container */
.global-search-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1000;
	background-color: #fff;
	border: 1px solid #dee2e6;
	border-radius: 0.375rem;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
	overflow: hidden;
	margin-top: 4px;
}

/* Suggestions List */
.global-search-suggestions-list {
	overflow: hidden;
}

/* Individual Suggestion Item */
.global-search-suggestion-item {
	display: block;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.2s ease;
}

.global-search-suggestion-item:hover,
.global-search-suggestion-item.active {
	background-color: #f8f9fa;
	text-decoration: none;
	color: inherit;
}

.global-search-suggestion-item:last-child {
	border-bottom: none;
}

/* Suggestion Content */
.global-search-suggestion-item .d-flex {
	padding: 12px 16px;
}

.global-search-suggestion-icon {
	font-size: 20px;
	color: #6c757d;
	margin-top: 2px;
	flex-shrink: 0;
}

.global-search-suggestion-title {
	font-weight: 600;
	font-size: 14px;
	color: #212529;
	margin-bottom: 4px;
	line-height: 1.4;
}

.global-search-suggestion-description {
	font-size: 13px;
	color: #6c757d;
	margin-bottom: 4px;
	line-height: 1.4;
}

.global-search-suggestion-meta {
	font-size: 12px;
	color: #868e96;
}

/* Highlighted query text */
.global-search-suggestion-item mark {
	background-color: #fff3cd;
	color: #856404;
	padding: 0 2px;
	font-weight: 600;
}

/* View More Button */
.global-search-view-more-wrapper {
	border-top: 1px solid #dee2e6;
	padding: 8px;
	background-color: #f8f9fa;
}

.global-search-view-more-btn {
	color: #0d6efd;
	font-size: 13px;
	font-weight: 500;
	padding: 8px;
	text-decoration: none;
	border: none;
	background: none;
	cursor: pointer;
	transition: color 0.2s ease;
}

.global-search-view-more-btn:hover {
	color: #0a58ca;
	text-decoration: underline;
}

.global-search-view-more-btn:focus {
	outline: 2px solid #0d6efd;
	outline-offset: 2px;
}

/* Loading State */
.global-search-loading {
	padding: 20px;
}

.global-search-loading .spinner-border {
	width: 2rem;
	height: 2rem;
}

/* Error State */
.global-search-error {
	padding: 20px;
}

/* No Results State */
.global-search-no-results {
	padding: 20px;
}

/* View More Modal Styles */
#globalSearchViewMoreModal .list-group-item {
	border-left: none;
	border-right: none;
	padding: 16px;
}

#globalSearchViewMoreModal .list-group-item:first-child {
	border-top: none;
}

#globalSearchViewMoreModal .list-group-item:last-child {
	border-bottom: none;
}

#globalSearchViewMoreModal .list-group-item:hover {
	background-color: #f8f9fa;
}

#globalSearchViewMoreModal mark {
	background-color: #fff3cd;
	color: #856404;
	padding: 0 2px;
	font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
	.global-search-suggestions {
		max-height: 300px;
	}

	.global-search-suggestion-item .d-flex {
		padding: 10px 12px;
	}

	.global-search-suggestion-title {
		font-size: 13px;
	}

	.global-search-suggestion-description {
		font-size: 12px;
	}

	.global-search-suggestion-meta {
		font-size: 11px;
	}
}

/* Scrollbar Styling */
.global-search-suggestions::-webkit-scrollbar {
	width: 8px;
}

.global-search-suggestions::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.global-search-suggestions::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

.global-search-suggestions::-webkit-scrollbar-thumb:hover {
	background: #555;
}

