@font-face {
	font-family: "Jakarta";
	src: url("../../../public/assets/fonts/jakarta/PlusJakartaSans-ExtraLight.ttf")
		format("truetype");
	font-weight: 200;
	font-style: normal;
}

@font-face {
	font-family: "Jakarta";
	src: url("../../../public/assets/fonts/jakarta/PlusJakartaSans-Light.ttf")
		format("truetype");
	font-weight: 300;
	font-style: normal;
}

@font-face {
	font-family: "Jakarta";
	src: url("../../../public/assets/fonts/jakarta/PlusJakartaSans-Regular.ttf")
		format("truetype");
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: "Jakarta";
	src: url("../../../public/assets/fonts/jakarta/PlusJakartaSans-Medium.ttf")
		format("truetype");
	font-weight: 500;
	font-style: normal;
}

@font-face {
	font-family: "Jakarta";
	src: url("../../../public/assets/fonts/jakarta/PlusJakartaSans-SemiBold.ttf")
		format("truetype");
	font-weight: 600;
	font-style: normal;
}

@font-face {
	font-family: "Jakarta";
	src: url("../../../public/assets/fonts/jakarta/PlusJakartaSans-Bold.ttf")
		format("truetype");
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: "Jakarta";
	src: url("../../../public/assets/fonts/jakarta/PlusJakartaSans-ExtraBold.ttf")
		format("truetype");
	font-weight: 800;
	font-style: normal;
}

:root {
	--orphic-wp-block-option-page-bg: white;
	--orphic-wp-block-option-page-bg-section: #f4f5f7;
	--orphic-wp-block-option-page-bg-button: #ebecf0;
	--orphic-wp-block-option-page-bg-button-hover: #d9d9d9;
	--orphic-wp-block-option-page-color-text: #172b4d;
	--orphic-wp-block-option-page-success-text: #36b37e;
	--orphic-wp-block-option-page-success: #abf5d1;
	--orphic-wp-block-option-page-info-text: white;
	--orphic-wp-block-option-page-info-bg: #0065ff;
}

.search-builder-app {
	font-family: "Jakarta", sans-serif;
	color: var(--orphic-wp-block-option-page-color-text);
	max-width: 1600px;
	margin: 30px auto;
	padding: 20px;
	position: relative;
}

.search-builder-app h1 {
	font-family: "Jakarta", sans-serif;
	font-size: 30px !important;
	font-weight: 700 !important;
	color: var(--orphic-wp-block-option-page-color-text);
	margin-bottom: 20px;
}

.search-builder-app h2 {
	font-family: "Jakarta", sans-serif;
	font-size: 20px !important;
	font-weight: 600 !important;
	color: var(--orphic-wp-block-option-page-color-text);
	margin-bottom: 20px;
}

.search-builder-content {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 30px;
	margin-top: 30px;
}

.search-builder-sidebar {
	position: sticky;
	top: 32px; /* WordPress admin bar height */
	height: calc(
		100vh - 200px - 150px
	); /* Viewport height minus admin bar and padding */
	overflow-y: auto;
	padding-right: 20px;
	border-right: 1px solid #ddd;
	background: var(--orphic-wp-block-option-page-bg);
}

.search-builder-main {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.search-builder-preview-section,
.search-builder-options-section {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-builder-preview-section h2,
.search-builder-options-section h2 {
	margin-top: 0;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
	color: #1d2327;
	font-size: 1.3em;
}

.option-group {
	margin-bottom: 24px;
}

.option-group label {
	display: block;
	margin-bottom: 10px;
	font-family: "Jakarta", sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--orphic-wp-block-option-page-color-text);
}

.option-group select,
.option-group input {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--orphic-wp-block-option-page-bg-button);
	border-radius: 6px;
	font-family: "Jakarta", sans-serif;
	font-size: 14px;
	color: var(--orphic-wp-block-option-page-color-text);
	background-color: var(--orphic-wp-block-option-page-bg);
	transition: all 0.2s ease;
}

.option-group select:focus,
.option-group input:focus {
	outline: none;
	border-color: var(--orphic-wp-block-option-page-info-bg);
	box-shadow: 0 0 0 2px rgba(0, 101, 255, 0.1);
}

.save-button {
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: "Jakarta", sans-serif;
	font-size: 14px !important;
	font-weight: 600 !important;
	border-radius: 6px;
	padding: 10px 18px;
	transition: all 0.2s ease;
	cursor: pointer;
	user-select: none;
	background-color: var(--orphic-wp-block-option-page-info-bg);
	color: white;
	border: 1px solid var(--orphic-wp-block-option-page-info-bg);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.save-button:hover {
	background-color: #0052cc;
	border-color: #0052cc;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.save-button:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.search-preview {
	border-radius: 8px;
	display: flex;
}

.search-preview input {
	flex: 1;
	padding: 12px 16px;
	font-family: "Jakarta", sans-serif;
	font-size: 14px;
	border: 1px solid var(--orphic-wp-block-option-page-bg-button);
	border-radius: 6px 0 0 6px;
}

.search-preview button {
	background: var(--orphic-wp-block-option-page-info-bg);
	border: none;
	color: white;
	padding: 0 20px;
	font-family: "Jakarta", sans-serif;
	font-size: 14px;
	font-weight: 600;
	border-radius: 0 6px 6px 0;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.search-preview button:hover {
	background-color: #0052cc;
}

/* Responsive design */
@media (max-width: 1200px) {
	.search-builder-content {
		grid-template-columns: 250px 1fr;
		gap: 20px;
	}
}

@media (max-width: 782px) {
	.search-builder-content {
		grid-template-columns: 1fr;
	}

	.search-builder-sidebar {
		position: relative;
		height: auto;
		top: 0;
		border-right: none;
		border-bottom: 1px solid #ddd;
		padding-bottom: 20px;
		margin-bottom: 20px;
	}
}
