/**
 * System Module - Admin Styles
 *
 * Handles the styling for the main settings page of the System module,
 * including switch toggles (iOS style), field rows, and the danger zone area.
 *
 * @package    Kabook_Editor_Tools
 * @subpackage Kabook_Editor_Tools/modules/system/assets
 * @author     Kabook
 * @license    GPL-2.0+
 */

/* ==========================================================================
   1. Field Rows (Settings Layout)
   ========================================================================== */

.kabook-field-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
	border-bottom: 1px solid #f0f0f1;
}

.kabook-field-row:last-child {
	border-bottom: none;
}

.kabook-field-row .k-label strong {
	font-size: 14px;
	color: #1d2327;
}

.kabook-field-row .description {
	margin: 5px 0 0 0;
}

/* ==========================================================================
   2. Switch Toggle (iOS Style)
   ========================================================================== */

.kabook-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 24px;
}

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

.kabook-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: .4s;
	transition: .4s;
}

.kabook-slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	-webkit-transition: .4s;
	transition: .4s;
}

input:checked + .kabook-slider {
	background-color: #005bea; /* References global primary color variable */
}

input:focus + .kabook-slider {
	box-shadow: 0 0 1px #005bea;
}

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

/* Rounded sliders */
.kabook-slider.round {
	border-radius: 34px;
}

.kabook-slider.round:before {
	border-radius: 50%;
}

/* ==========================================================================
   3. Danger Zone
   ========================================================================== */

.kabook-danger-zone {
	border: 1px solid #f5c6cb;
	background-color: #fff8f8;
	padding: 20px;
	border-radius: 5px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
}

.kabook-danger-zone .k-danger-text strong {
	color: #d32f2f;
	font-size: 1.1em;
}

.kabook-danger-zone .k-danger-text p {
	margin: 5px 0 0 0;
	color: #721c24;
}

/* ==========================================================================
   4. Grid Wrapper
   ========================================================================== */

#kabook-modules-management-area {
	margin-bottom: 30px;
}