/* pages/viewcomponents/searchbox.css */

.searchbox-wrapper
{
	padding: 0 0;
}

.searchbox-container
{
	text-align: center;
	padding: 0.5rem 1rem;
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	height: auto;
}

.searchbox-title
{
	margin: 0.5rem 0;
	padding: 0;
	font-size: 1.5rem;
	font-weight: 600;
	font-family: Calibri;
}

.searchbox-description
{
	margin: 0.5rem 0;
	padding: 0;
	font-size: 1rem;
	font-weight: 300;
	font-family: Calibri;
}


/* === OUTER GROUP === */
.search-group
{
	border: 1px solid #ccc;
	border-radius: 0.5rem;
	overflow: hidden;
	background-color: ghostwhite !important;
	transition: border 0.3s ease;
	box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.03);
	position: relative;
	width: 100%;
	/* === şurayı yeni ekledim === */
	overflow: visible; /* dropdown menünün kesilmemesi için */
}

	.search-group:hover
	{
		border-color: #0d6efd;
		box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
	}

/* === INPUT === */
.search-input-box
{
	border: none;
	border-radius: 0 !important;
	outline: none;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	background-color: ghostwhite !important;
	box-shadow: none;
	transition: all 0.2s ease;
	width: 100%;
}

	.search-input-box:focus,
	input:focus-visible
	{
		outline: none !important;
		box-shadow: none !important;
	}

/* === BUTTON === */
.search-submit-button
{
	background-color: ghostwhite !important;
	border: none;
	color: #0d6efd;
	font-weight: 500;
	font-size: 1rem;
	border-radius: 0 !important;
	transition: color 0.2s ease, transform 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 1rem;
	min-width: 48px;
}

	.search-submit-button:hover
	{
		color: #084298;
		transform: scale(1.05);
	}

.bi-search
{
	font-size: 1.2rem;
	line-height: 1;
}

/* === şurayı yeni ekledim === */
/* Dropdown fixleri */
.search-group .btn-group
{
	position: relative;
	z-index: 2; /* dropdown'u input'un üstüne çıkar */
}

.search-group .dropdown-menu
{
	z-index: 1056; /* Bootstrap modal vs. altında kalmasın */
	margin-top: 0.25rem; /* butonla menü arasında boşluk */
}

/* === AUTOCOMPLETE === */
#autocomplete-wrapper
{
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	z-index: 2000;
	padding: 0 1.5rem;
}

.search-group-wrapper:focus-within #autocomplete-wrapper
{
	display: block;
}

.autocomplete-suggestions
{
	width: 100%;
	background-color: white;
	border: 1px solid #ddd;
	border-top: none;
	max-height: 250px;
	overflow-y: auto;
	font-size: 0.95rem;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
	border-radius: 0 0 0.5rem 0.5rem;
}

.autocomplete-item
{
	display: block;
	width: 100%;
	border: none;
	background: none;
	color: #333;
	padding: 0.65rem 1.25rem;
	cursor: pointer;
	transition: background-color 0.2s ease;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 0.95rem;
	font-weight: 500;
	border-bottom: 1px solid #ccc;
}
