/**
 * UI Boxes Module - Admin Styles
 *
 * Handles the layout for the settings page of the UI Boxes module.
 * Creates a dashboard-like experience with grid layouts for card previews,
 * flex containers for settings, and styled alert boxes for notices.
 *
 * @package    Kabook_Editor_Tools
 * @subpackage Kabook_Editor_Tools/modules/ui-boxes/assets
 * @author     Kabook
 * @license    GPL-2.0+
 */

/* ==========================================================================
   1. General Settings Box (Side-by-Side Layout)
   ========================================================================== */

.kabook-general-settings-box {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	padding: 20px 25px;
	display: flex; /* Makes items sit in one row */
	flex-wrap: wrap;
	align-items: center;
	gap: 40px; /* Space between "Show Icons" and "Box Radius" */
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	margin-bottom: 25px;
}

.kabook-setting-item {
	display: flex;
	align-items: center;
	gap: 15px;
}

.kabook-setting-item .k-label strong {
	font-size: 14px;
	color: #1d2327;
	display: block;
}

.kabook-setting-item .description {
	margin: 2px 0 0;
	color: #646970;
	font-size: 12px;
}

/* ==========================================================================
   2. Info / Technical Note Box (Blue Box)
   ========================================================================== */

.kabook-admin-info-box {
	background-color: #e3f2fd;
	border-left: 4px solid #2196f3;
	padding: 15px 20px;
	margin: 25px 0 35px 0;
	border-radius: 0 4px 4px 0;
	display: flex;
	gap: 15px;
	align-items: flex-start;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.kabook-admin-info-box .dashicons {
	color: #2196f3;
	font-size: 26px;
	width: 26px;
	height: 26px;
	margin-top: 2px;
}

.kabook-admin-info-content strong {
	display: block;
	color: #0d47a1;
	font-size: 1.05em;
	margin-bottom: 8px;
}

.kabook-admin-info-content p {
	margin: 0;
	color: #455a64;
	line-height: 1.6;
	font-size: 13px;
	text-align: justify;
}

/* ==========================================================================
   3. Pattern Cards Preview (4 Column Grid)
   ========================================================================== */

.kabook-pattern-preview-grid {
	display: grid;
	/* Create 4 equal columns. Uses auto-fit for responsiveness on smaller screens */
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
	margin-top: 15px;
}

.kabook-pattern-demo {
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	font-weight: 600;
	color: #555;
	font-size: 0.95rem;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.kabook-pattern-demo:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   4. Luxury Cards Preview & Inputs
   ========================================================================== */

.kabook-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 25px;
	margin-bottom: 30px;
}

.kabook-card-preview-box {
	padding: 20px;
	border-radius: 12px;
	border: 1px solid #ddd;
	position: relative;
	overflow: hidden;
}

.kabook-card-preview-box.light-mode {
	background: #fff;
	border: 1px solid #e5e5e5;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.kabook-flex-row {
	display: flex;
	gap: 15px;
	align-items: flex-end;
}

.k-input-col {
	flex: 1;
}

.k-input-col label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	opacity: 0.8;
	margin-bottom: 5px;
	font-weight: 600;
}

/* Ensure color pickers fit nicely */
.kabook-card-preview-box .wp-picker-container {
	width: 100%;
}

.kabook-card-preview-box .wp-picker-container .wp-color-result.button {
	width: 100%;
	margin: 0;
}

/* ==========================================================================
   5. Visual Table (Color Pickers)
   ========================================================================== */

.kabook-visual-table th {
	vertical-align: middle;
	padding: 15px 10px;
	width: 200px;
	font-weight: 600;
}

.kabook-visual-table td {
	padding: 10px;
	vertical-align: middle;
}

.kabook-visual-table tr:nth-child(odd) {
	background-color: #fcfcfc;
}