/**
 * Admin styles for EffortLess Maintenance Mode.
 *
 * @package EffortlessMaintenanceModePlugin
 */

/* Admin bar indicator */
#wp-admin-bar-elmmp-status .elmmp-bar-on {
	color: #ff6b6b;
	font-weight: 600;
}

#wp-admin-bar-elmmp-status .elmmp-bar-off {
	color: #a3e8a0;
}

/* Background image preview */
#elmmp-bg-preview {
	display: block;
	max-width: 200px;
	max-height: 120px;
	margin: 8px 0;
	border: 1px solid #ddd;
	border-radius: 3px;
}

/* Toggle switch */
.elmmp-toggle-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 8px 0 16px;
}

.elmmp-switch {
	position: relative;
	display: inline-block;
	width: 52px;
	height: 28px;
	flex-shrink: 0;
	cursor: pointer;
}

.elmmp-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.elmmp-switch-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	border-radius: 28px;
	transition: 0.3s;
}

.elmmp-switch-slider::before {
	content: '';
	position: absolute;
	height: 20px;
	width: 20px;
	left: 4px;
	bottom: 4px;
	background-color: #fff;
	border-radius: 50%;
	transition: 0.3s;
}

.elmmp-switch input:checked + .elmmp-switch-slider {
	background-color: #2271b1;
}

.elmmp-switch input:checked + .elmmp-switch-slider::before {
	transform: translateX( 24px );
}

.elmmp-switch input:focus-visible + .elmmp-switch-slider {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2271b1;
}

.elmmp-status-on {
	color: #d63638;
	font-weight: 600;
}

.elmmp-status-off {
	color: #50575e;
}

/* Template buttons row */
.elmmp-templates {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 8px 0 12px;
}
