/* Smart LazyLoad — Settings admin UI */

.smll-admin {
	max-width: 960px;
	margin: 20px 0 40px;
}

.smll-admin * {
	box-sizing: border-box;
}

/* Header */

.smll-admin-header {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 34px 40px;
	background: linear-gradient(135deg, #4338ca 0%, #4f46e5 45%, #6366f1 100%);
	border-radius: 14px 14px 0 0;
	color: #fff;
	overflow: hidden;
}

.smll-admin-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,.14) 0, transparent 45%),
		radial-gradient(circle at 10% 90%, rgba(255,255,255,.08) 0, transparent 40%);
	pointer-events: none;
}

.smll-header-left {
	position: relative;
	z-index: 1;
}

.smll-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 6px;
}

.smll-brand-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(255,255,255,.16);
	backdrop-filter: blur(2px);
}

.smll-brand-icon .dashicons {
	color: #fff;
	font-size: 22px;
	width: 22px;
	height: 22px;
}

.smll-title {
	font-size: 26px;
	line-height: 1.1;
	color: #fff;
	font-weight: 700;
	margin: 0;
	letter-spacing: -.01em;
}

.smll-subtitle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	margin-top: 10px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .85;
}

.smll-version-pill {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 20px;
	background: rgba(255,255,255,.18);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: none;
}

.smll-header-right {
	position: relative;
	z-index: 1;
	text-align: right;
	font-size: 13px;
	flex-shrink: 0;
}

.smll-rate-us strong {
	display: block;
	font-size: 14px;
	margin-bottom: 4px;
}

.smll-rate-us {
	line-height: 1.6;
	opacity: .95;
}

.smll-rate-us a {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.smll-stars {
	display: inline-flex;
	gap: 2px;
	margin-top: 8px;
}

.smll-stars .dashicons {
	font-size: 17px;
	width: 17px;
	height: 17px;
	color: #fbbf24;
	transition: transform .15s ease;
}

.smll-stars:hover .dashicons {
	transform: translateY(-1px);
}

/* Body shell */

.smll-admin-body {
	background: #fff;
	border: 1px solid #e2e2e9;
	border-top: 0;
	border-radius: 0 0 14px 14px;
	padding: 28px 32px 8px;
	box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

.smll-summary {
	font-size: 14px;
	line-height: 1.65;
	color: #555b66;
	margin: 0 0 26px;
	padding-bottom: 22px;
	border-bottom: 1px solid #eee;
}

/* Cards */

.smll-card {
	border: 1px solid #e7e7ee;
	border-radius: 12px;
	margin: 0 0 20px;
	overflow: hidden;
	transition: box-shadow .15s ease, border-color .15s ease;
}

.smll-card:hover {
	border-color: #d8d8e6;
	box-shadow: 0 2px 10px rgba(16,24,40,.05);
}

.smll-card-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: #f8f8fc;
	border-bottom: 1px solid #eeeef4;
}

.smll-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #eef0ff;
	flex-shrink: 0;
}

.smll-card-icon .dashicons {
	color: #4f46e5;
	font-size: 17px;
	width: 17px;
	height: 17px;
}

.smll-card-heading {
	margin: 8px 0;
	font-size: 16px;
	font-weight: 700;
	color: #1f2130;
}

.smll-card-desc {
	margin: 1px 0 0;
	font-size: 12.5px;
	color: #767b8a;
}

.smll-card-body {
	padding: 6px 20px 8px;
}

/* Option rows (toggle switches) */

.smll-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 20px;
	border-bottom: 1px solid #f1f1f6;
}

.smll-row:last-child {
	border-bottom: 0;
}

.smll-row-text label {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13.5px;
	font-weight: 600;
	color: #262838;
	cursor: pointer;
}

.smll-row-hint {
	margin: 3px 0 0;
	font-size: 12.5px;
	color: #82879a;
	max-width: 460px;
	line-height: 1.5;
}

.smll-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 20px;
	background: #eafbf1;
	color: #1a9c63;
}

.smll-badge-info {
	background: #eef2ff;
	color: #4f46e5;
}

/* Switch control */

.smll-switch {
	position: relative;
	flex-shrink: 0;
	width: 42px;
	height: 24px;
	margin-top: 1px;
}

.smll-switch input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
	z-index: 1;
}

.smll-switch-track {
	position: absolute;
	inset: 0;
	background: #d8dae3;
	border-radius: 20px;
	transition: background-color .2s ease;
}

.smll-switch-track::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,.25);
	transition: transform .2s ease;
}

.smll-switch input:checked + .smll-switch-track {
	background: #4f46e5;
}

.smll-switch input:checked + .smll-switch-track::before {
	transform: translateX(18px);
}

.smll-switch input:focus-visible + .smll-switch-track {
	outline: 2px solid #4f46e5;
	outline-offset: 2px;
}

/* Field controls (number/text/select) */

.smll-field {
	display: flex;
	flex-direction: column;
	padding: 14px 20px;
	border-bottom: 1px solid #f1f1f6;
}

.smll-field:last-child {
	border-bottom: 0;
}

.smll-field-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.smll-field label {
	font-size: 13.5px;
	font-weight: 600;
	color: #262838;
}

.smll-field input[type=number],
.smll-field input[type=text],
.smll-field select {
	border: 1px solid #d7d8e2;
	border-radius: 7px;
	padding: 7px 10px;
	font-size: 13px;
	color: #262838;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.smll-field input[type=number] {
	width: 120px;
}

.smll-field input[type=text].smll-text-field {
	width: 100%;
	max-width: 440px;
	margin-top: 8px;
}

.smll-field textarea.smll-textarea-field {
	width: 100%;
	max-width: 540px;
	margin-top: 8px;
	resize: vertical;
	min-height: 70px;
	font-family: inherit;
}

.smll-field input:focus,
.smll-field select:focus {
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79,70,229,.12);
	outline: none;
}

.smll-field-hint {
	margin: 8px 0 0;
	font-size: 12.5px;
	color: #82879a;
	line-height: 1.5;
}

.smll-disabled {
	opacity: .45;
	pointer-events: none;
}

.smll-card-locked {
	opacity: .45;
	pointer-events: none;
	position: relative;
}

.smll-card-locked::after {
	content: "";
	position: absolute;
	inset: 0;
	cursor: not-allowed;
}

/* Post edit screen meta box */

.smll-metabox-select {
	width: 100%;
}

/* Color field (WordPress core color picker) */

.smll-hint-tight {
	margin-top: 2px;
}

.smll-color-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}

/* Actions bar */

.smll-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 8px 0 24px;
	padding: 18px 20px;
	background: #f8f8fc;
	border: 1px solid #e7e7ee;
	border-radius: 12px;
}

.smll-actions .button-primary {
	background: #4f46e5;
	border: 0;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(16,24,40,.08);
	padding: 8px 22px;
	height: auto;
	font-size: 13.5px;
	font-weight: 600;
	transition: background-color .15s ease, transform .1s ease;
}

.smll-actions .button-primary:hover {
	background: #4338ca;
	transform: translateY(-1px);
}

.smll-actions .button-primary:active {
	transform: translateY(0);
}

.smll-reset-form {
	margin: 0;
}

.smll-reset-button {
	background: transparent !important;
	color: #b42318 !important;
	border: 1px solid #f0c9c4 !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	padding: 6px 16px !important;
	height: auto !important;
	transition: background-color .15s ease;
}

.smll-reset-button:hover {
	background: #fef3f2 !important;
	border-color: #e6a19a !important;
}

.smll-inline-error {
	font-size: 12.5px;
	margin-top: 6px;
	color: #d92d20;
}

@media (max-width: 782px) {
	.smll-admin-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.smll-header-right {
		text-align: left;
	}

	.smll-row {
		flex-direction: column;
	}

	.smll-actions {
		flex-direction: column;
		align-items: stretch;
		margin: 24px -16px 0;
		padding: 16px;
	}

	.smll-admin-body {
		padding: 22px 18px 8px;
	}
}
