/**
 * iOS-Style Toggle Switch - WhoKnew Shield
 * Premium Design
 */

/* ========================================
	Toggle Switch - Premium iOS Style
	======================================== */

/* Toggle Container */
.whoknewshield-toggle-switch {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
	margin-left: 20px;
	vertical-align: middle;
}

/* Hide the native checkbox */
.whoknewshield-toggle-switch input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* The slider/track */
.whoknewshield-toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
	border-radius: 34px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08);
	border: 2px solid #e5e7eb;
}

/* The sliding knob/circle */
.whoknewshield-toggle-slider::before {
	position: absolute;
	content: "";
	height: 26px;
	width: 26px;
	left: 2px;
	bottom: 2px;
	background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
	border-radius: 50%;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Checked state - green background */
.whoknewshield-toggle-switch input[type="checkbox"]:checked + .whoknewshield-toggle-slider {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	border-color: #059669;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 2px 12px rgba(16, 185, 129, 0.3);
}

/* Move knob to the right when checked */
.whoknewshield-toggle-switch input[type="checkbox"]:checked + .whoknewshield-toggle-slider::before {
	transform: translateX(26px);
	box-shadow: 0 2px 12px rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Hover effects */
.whoknewshield-toggle-slider:hover {
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.whoknewshield-toggle-switch input[type="checkbox"]:checked + .whoknewshield-toggle-slider:hover {
	background: linear-gradient(135deg, #059669 0%, #047857 100%);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(16, 185, 129, 0.4);
}

/* Focus state for accessibility */
.whoknewshield-toggle-switch input[type="checkbox"]:focus + .whoknewshield-toggle-slider {
	outline: none;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.whoknewshield-toggle-switch input[type="checkbox"]:focus:checked + .whoknewshield-toggle-slider {
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(16, 185, 129, 0.3);
}
