/* ==========================================================================
   Admin Settings Layout
   ========================================================================== */

/* ==========================================================================
   Admin Page Layout
   Two-column scalable settings architecture
========================================================================== */

.prdsm-admin-layout {
	display: flex;
	gap: 32px;
	align-items: flex-start;
	margin-top: 24px;
}

.prdsm-admin-main {
	flex: 1;
	min-width: 0;
	max-width: 900px;
}

.prdsm-admin-sidebar {
	width: 320px;
	flex-shrink: 0;
	position: sticky;
	top: 42px;
}

.prdsm-admin-sections {
	flex: 1;
	min-width: 0;
	max-width: 900px;
}



/* ==========================================================================
   Accordion Section Card
   ========================================================================== */

.prdsm-admin-section {
	margin-bottom: 20px;
	background: #ffffff;
	border: 1px solid #e9e9e9;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
	transition:
	background-color 0.25s ease,
	box-shadow 0.25s ease;
}

.prdsm-admin-section:hover {
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Accordion Toggle Button
   Accessible button-based accordion trigger
   ========================================================================== */

.prdsm-admin-section-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 18px 20px;
	border: none;
	background: #ffffff;
	cursor: pointer;
	text-align: left;
	letter-spacing: 0.2px;
	font-weight: 600;
	min-height: 64px;
	padding: 0 24px;
}

.prdsm-admin-section-toggle:hover {
	background: #f6f7f7;
}

/* ==========================================================================
   Accordion Header Content
   ========================================================================== */

.prdsm-admin-section-title {
	font-size: 15px;
	font-weight: 600;
	color: #1d2327;
}

.prdsm-admin-section-icon {
	position: relative;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.prdsm-admin-section-icon::before,
.prdsm-admin-section-icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	background: #222222;
	transform: translate(-50%, -50%);
	transition: all 0.25s ease;
}

.prdsm-admin-section-icon::before {
	width: 14px;
	height: 2px;
}

.prdsm-admin-section-icon::after {
	width: 2px;
	height: 14px;
}

.prdsm-admin-section.active .prdsm-admin-section-icon {
	transform: rotate(45deg);
}


/* ==========================================================================
   Accordion Content Area
========================================================================== */

.prdsm-admin-section-content {
	overflow: hidden;
	max-height: 0;
	padding: 0 20px;

	border-top: 0 solid transparent;

	transition:
	max-height 0.35s cubic-bezier(.25, 1, .5, 1),
	padding 0.25s ease,
	border-color 0.25s ease;
}

/* Expanded accordion state */
.prdsm-admin-section.active .prdsm-admin-section-content {
	padding: 0 20px 20px;
	border-top: 1px solid #f0f0f1;
}

/* ==========================================================================
   Form Table Refinements
   ========================================================================== */

.prdsm-admin-section-content .form-table {
	margin-top: 10px;
}

.prdsm-admin-section-content th {
	width: 260px;
	padding-left: 0;
}

.prdsm-admin-section-content td {
	padding-right: 0;
}

/* ==========================================================
   Responsive Breakpoint Range Slider
========================================================== */

.prdsm-range-control {
	width: 420px;
	max-width: 420px;
	padding-top: 2px;
}

.prdsm-range-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	margin: 0;
	cursor: pointer;
	background: transparent;
}

/* Track */
.prdsm-range-slider::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 999px;

	background: linear-gradient(
		90deg,
		#F59E0B 0%,
		#2b87da 100%
	);

	box-shadow:
		inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.prdsm-range-slider::-moz-range-track {
	height: 6px;
	border-radius: 999px;

	background: linear-gradient(
		90deg,
		#F59E0B 0%,
		#2b87da 100%
	);

	box-shadow:
		inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Thumb */
.prdsm-range-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #719d41;
	border: 3px solid #ffffff;
	margin-top: -5px;
	cursor: pointer;
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.08),
		0 4px 10px rgba(0, 0, 0, 0.12);

	transition:
		transform 0.2s ease,
		background-color 0.2s ease,
		box-shadow 0.2s ease;
}

.prdsm-range-slider::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border: 3px solid #ffffff;
	border-radius: 50%;
	background: #719d41;
	cursor: pointer;
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.08),
		0 4px 10px rgba(0, 0, 0, 0.12);

	transition:
		transform 0.2s ease,
		background-color 0.2s ease,
		box-shadow 0.2s ease;
}

/* Hover */
.prdsm-range-slider:hover::-webkit-slider-thumb {
	background: #F59E0B;
	transform: scale(1.08);
	box-shadow:
		0 0 0 4px rgba(245, 158, 11, 0.12),
		0 6px 14px rgba(0, 0, 0, 0.14);
}

.prdsm-range-slider:hover::-moz-range-thumb {
	background: #F59E0B;
	transform: scale(1.08);
	box-shadow:
		0 0 0 4px rgba(245, 158, 11, 0.12),
		0 6px 14px rgba(0, 0, 0, 0.14);
}

/* Labels */
.prdsm-range-values {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
	font-size: 12px;
	color: #666666;
	letter-spacing: 0.2px;
}

/* Current Breakpoint Input */
.prdsm-breakpoint-input-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 120px;
}

#prdsm-breakpoint-input {
	width: 96px;
	height: 42px;
	padding: 6px 10px;

	border: 1px solid #dcdcde;
	background: #ffffff;

	font-size: 15px;
	font-weight: 600;
	text-align: center;

	color: #20292f;

	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

#prdsm-breakpoint-input:hover {
	border-color: #719d41;
}

#prdsm-breakpoint-input:focus {
	border-color: #719d41;
	outline: none;
	box-shadow: 0 0 0 1px #719d41;
}

.prdsm-breakpoint-unit {
	font-size: 13px;
	font-weight: 600;
	color: #666666;
}

/* ==========================================================================
   Pro Features Placeholder
========================================================================== */

.prdsm-feature-placeholder {
	padding: 4px 2px;
}

.prdsm-feature-placeholder-text {
	margin-top: 0;
	margin-bottom: 16px;
	color: #50575e;
	line-height: 1.6;
}

.prdsm-feature-list {
	margin: 0;
	padding-left: 18px;
}

.prdsm-feature-list li {
	margin-bottom: 10px;
	line-height: 1.5;
}


/* ==========================================================================
   Admin Page Header
========================================================================== */

.prdsm-admin-page-header {
	margin-bottom: 32px;
	padding: 32px 36px;
	background: #ffffff;
	border-left: 4px solid #3858e9;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.prdsm-admin-page-title {
	margin: 0 0 10px;
	font-size: 32px;
	font-weight: 600 !important;
	line-height: 1.2;
	color: #333333;
}

.prdsm-admin-page-description {
	max-width: 760px;
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #20292f;
}

/* ==========================================================================
   Pro Locked Fields
========================================================================== */

.prdsm-pro-field {
	position: relative;
	opacity: 0.5;
	pointer-events: none;
}

/* ==========================================================================
   Pro Badge
========================================================================== */

.prdsm-admin-section-content table.form-table .prdsm-pro-field.prdsm-pro-slide-direction,
.prdsm-admin-section-content table.form-table .prdsm-pro-field.prdsm-pro-hamburger-icon-style
{
    max-width: 250px;
}

.prdsm-admin-section-content table.form-table .prdsm-pro-field.prdsm-pro-overlay-color {
	max-width: 150px;
}

.prdsm-pro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0px;
    left: 50%;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    background: #F59E0B;
}

.prdsm-pro-field.prdsm-pro-overlay-opacity {
    max-width: 80%;
}

.prdsm-pro-field.prdsm-pro-overlay-opacity .prdsm-pro-badge {
    left: 70%;
}

/* ==========================================================================
   Pro Upgrade Sidebar
========================================================================== */

.prdsm-upgrade-card {
	padding: 24px;
	background: #ffffff;
	border: 1px solid #e9e9e9;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
	position: relative;
}

.prdsm-upgrade-card h2 {
	margin-top: 0;
	margin-bottom: 12px;
	font-size: 22px;
	line-height: 1.3;
}

.prdsm-upgrade-card p {
	line-height: 1.7;
	color: #50575e;
}

.prdsm-upgrade-features {
	margin: 20px 0;
	padding-left: 10px;
}

.prdsm-upgrade-features li {
	margin-bottom: 10px;
	line-height: 1.6;
}

.prdsm-upgrade-card .prdsm-pro-badge {
	display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -10px;
    right: -20px;
	left: unset;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    background: #F59E0B;
}

