/* General Body and Layout */
body {
	font-family: "Inter", sans-serif;
	background: #f8f9fa;
}

/* Draggable Form Elements in Left Sidebar */
.form-element {
	background: #fff;
	border: 1px solid #dee2e6;
	padding: 0.75rem;
	margin-bottom: 0.5rem;
	border-radius: 0.375rem;
	cursor: grab;
	font-size: 0.9rem;
}
.form-element:hover {
	background: #e9ecef;
	border-color: #0d6efd;
	color: #0d6efd;
}
.form-element i {
	margin-right: 0.75rem;
	width: 20px;
	text-align: center;
}

/* Main Builder Canvas Area */
.form-builder-area .drop-zone {
	border: 2px dashed #dee2e6;
	border-radius: 0.5rem;
}
.form-builder-area .drop-zone.drag-over {
	border-color: #0d6efd;
	background: #f0f6ff;
}

/* Individual Field Styles (in Builder) */
.form-field-wrapper {
	padding: 0.5rem;
	transition: background 0.2s;
}
.form-field,
.page-break-element {
	padding: 1.5rem;
	border: 1px solid #e9ecef;
	border-radius: 0.5rem;
	position: relative;
	background: #fff;
	transition: all 0.2s;
	height: 100%;
}
.form-field.selected,
.page-break-element.selected {
	border-color: #0d6efd;
	box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}
.field-controls {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	gap: 4px;
	z-index: 10;
}
.field-controls .btn {
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.page-break-element {
	text-align: center;
	border-style: dashed;
	border-color: #0d6efd;
	color: #0d6efd;
	background: #f0f6ff;
}

/* Properties Panel and Modal Styles */
.nav-link.disabled {
	color: #adb5bd !important;
	pointer-events: none;
}
.modal-backdrop {
	z-index: 1050;
}
.modal {
	z-index: 1060;
}
.option-item {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

/* Custom Field Type Styles */
.star-rating {
	display: flex;
	gap: 2px;
}
.star-rating i {
	color: #ddd;
	cursor: pointer;
	transition: color 0.2s;
}
.star-rating i.filled {
	color: #ffc107;
}
.star-rating i:hover,
.star-rating i:hover ~ i {
	color: #ffc107;
}
.date-range-container {
	display: flex;
	gap: 10px;
	align-items: center;
}
.multi-select-container {
	border: 1px solid #ced4da;
	border-radius: 0.375rem;
	padding: 0.5rem;
	min-height: 38px;
	cursor: pointer;
}
.multi-select-options {
	display: none;
	position: absolute;
	background: white;
	border: 1px solid #ced4da;
	border-radius: 0.375rem;
	z-index: 1000;
	width: 100%;
	max-height: 200px;
	overflow-y: auto;
}
.multi-select-option {
	padding: 0.5rem;
	cursor: pointer;
}
.multi-select-option:hover {
	background: #f8f9fa;
}
.address-field-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}
.address-field-group .full-width {
	grid-column: 1 / -1;
}

/* Conditional Logic UI Styles */
.condition-group {
	background-color: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 0.5rem;
	padding: 1rem;
	margin-bottom: 1rem;
}
.condition-rule {
	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: 0.375rem;
	padding: 0.75rem;
	margin-bottom: 0.5rem;
}
.condition-logic-toggle .form-check {
	margin-right: 1rem;
}

.form-logo {
	max-width: 100%;
	height: auto;
}

.alignment-toggle-group {
	margin-bottom: 1rem;
}
