/**
 * LoginNova Admin Styles
 * 
 * CSS for the plugin's admin interface
 */

.switch-container {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}

.switch-label {
	flex: 0 0 200px;
	font-weight: normal;
	margin-right: 15px;
}

.switch-controls {
	display: flex;
	align-items: center;
}

.switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 24px;
	margin-right: 15px;
	vertical-align: middle;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
.switch-disabled {
    opacity: 0.5;
    pointer-events: none;
}
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .3s;
	border-radius: 24px;
	width: 50px;
}

.slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .3s;
	border-radius: 50%;
}

input:checked + .slider {
	background-color: #2271b1; /* WordPress blue */
}

input:focus + .slider {
	box-shadow: 0 0 1px #2271b1;
}

input:checked + .slider:before {
	transform: translateX(26px);
}

.required-switch {
	display: flex;
	align-items: center;
	margin-left: 10px;
}

.required-label {
	font-size: 13px;
	color: #666;
	margin-left: 5px;
}

/* Admin Preview Styles */
.style-preview-container {
	display: flex;
	flex-wrap: wrap;
	margin-top: 20px;
}

.style-options {
	flex: 1;
	min-width: 300px;
	padding-right: 20px;
}

.style-preview {
	flex: 1;
	min-width: 300px;
	background: #f5f5f5;
	padding: 20px;
	border-radius: 5px;
}

.preview-container {
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(0, 0, 0, 0.1);
	padding: 20px;
	min-height: 400px;
}

.preview-popup {
	background: #fff;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 5px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	width: 400px;
}

.preview-input-group {
	margin-bottom: 15px;
}

.preview-input-group label {
	display: block;
	margin-bottom: 5px;
}

.preview-input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 3px;
}

.preview-button-container {
	text-align: right;
	margin-top: 10px;
}

.preview-button {
	background-color: #0073aa;
	color: #fff;
	border: none;
	padding: 8px 15px;
	border-radius: 3px;
	cursor: pointer;
}

.preview-links {
	margin-top: 15px;
	text-align: center;
}

.preview-link {
	color: #0073aa;
	text-decoration: none;
}

/* Form table styling */
.form-table th {
	width: 150px;
	vertical-align: top;
	padding-top: 15px;
}

.form-table td p {
	margin: 5px 0;
}

.form-table label {
	display: inline-block;
	width: 150px;
}

.form-table td .switch-container:last-child {
	margin-bottom: 0;
	border-bottom: none;
}

/* Reset Styles Section */
.reset-styles-container {
	margin: 15px 0;
	padding: 10px;
	background: #f9f9f9;
	border-left: 4px solid #0073aa;
	display: flex;
	align-items: center;
}

.reset-styles-container button {
	margin-right: 10px;
}

.reset-styles-container:after {
	content: "This will reset all style settings to their default values. You'll need to save settings after resetting.";
	font-style: italic;
	color: #666;
}

/* Mobile responsiveness */
@media screen and (max-width: 782px) {
	.switch-container {
		flex-direction: column;
		align-items: flex-start;
		padding-bottom: 15px;
	}
	
	.switch-label {
		margin-bottom: 10px;
		font-weight: 500;
		flex: none;
	}
	
	.switch-controls {
		width: 100%;
	}
	
	.required-switch {
		margin-left: auto;
	}
}
