/**
 * Kaya Studio - Admin Dashboard Styles
 *
 * @version 2.0.0
 */


/* ==========================================================================
   Base
   ========================================================================== */

.ks-wp-dashboard-page-container,
.ks-wp-dashboard-page-container *,
.ks-wp-dashboard-page-container *::before,
.ks-wp-dashboard-page-container *::after {
	box-sizing: border-box;
}

.ks-wp-dashboard-page-container {
	width: 100%;
	margin: 0 auto;
	padding: 0 20px 30px;
	color: #1d2327;
	font-size: 14px;
	line-height: 1.6;
}

.ks-wp-dashboard-page-container a {
	color: #2271b1;
}

.ks-wp-dashboard-page-container a:hover {
	color: #135e96;
}


/* ==========================================================================
   Layout
   ========================================================================== */

.ks-wp-dashboard-page-row {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
	gap: 24px;
	align-items: start;
}

.ks-wp-dashboard-page-header {
	grid-column: 1 / -1;
	width: 100%;
}


/* ==========================================================================
   Header
   ========================================================================== */

.ks-wp-dashboard-page-header-title {
	display: flex;
	align-items: center;
	min-height: 64px;
	padding: 0 20px;
	margin-top: 16px;
	background: #273476;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ks-wp-dashboard-page-header-title h1 {
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
}

.ks-wp-dashboard-page-header-intro {
	padding: 20px;
	margin: 0 0 20px 0;
	background: #fff;
	border: 1px solid #dcdcde;
	border-left: 4px solid #273476;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ks-wp-dashboard-page-header-intro h2 {
	margin: 0 0 6px;
	padding: 0;
	color: #1d2327;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}

.ks-wp-dashboard-page-header-intro p {
	margin: 0;
	color: rgb(51, 51, 48);
	font-size: 14px;
	line-height: 1.6;
}


/* ==========================================================================
   Content
   ========================================================================== */

.ks-wp-dashboard-page-content {
	min-width: 0;
}

.ks-wp-dashboard-page-content-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}


/* ==========================================================================
   Plugin Cards
   ========================================================================== */

.ks-wp-dashboard-page-content-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 20px;
	margin: 0;
	font-size: 14px !important;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease;
	overflow: hidden;
}

.ks-wp-dashboard-page-content-card:hover {
	border-color: #c3c4c7;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.ks-wp-dashboard-page-content-card-title {
	margin: -20px -20px 20px;
	padding: 14px 18px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: #1d2327;
	background-color: #f1f3fb;
	border-bottom: 1px solid #dcdcde;
}

.ks-wp-dashboard-page-content-card p {
	font-size: 14px !important;
	margin: 0 0 16px;
	color: rgb(51, 51, 48);
	line-height: 1.6;
}

.ks-wp-dashboard-page-content-card-full {
	grid-column: 1 / -1;
}

.ks-wp-dashboard-page-content-card-action {
	margin-top: auto !important;
	margin-bottom: 0 !important;
}


/* ==========================================================================
   All Plugins Card
   ========================================================================== */

.ks-wp-dashboard-page-content-card-all-plugins {
	grid-column: 1 / -1;
	background: #FCFCFE;
	border-color: #dcdcde;
}

.ks-wp-dashboard-page-content-card-all-plugins .ks-wp-dashboard-page-content-card-title {
	background-color: #F2F3F8 !important;
	border-bottom-color: #dcdcde !important;
}


/* ==========================================================================
   Sidebar
   ========================================================================== */

.ks-wp-dashboard-page-sidebar {
	min-width: 0;
}


/* ==========================================================================
   Sidebar Cards
   ========================================================================== */

.ks-wp-dashboard-page-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0 0 20px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

.ks-wp-dashboard-page-card-header {
	padding: 14px 18px;
	margin: 0;
	color: #1d2327;
	background: #F2F3F8;
	border-bottom: 1px solid #dcdcde;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.ks-wp-dashboard-page-card-body {
	flex: 1 1 auto;
	padding: 18px;
}

.ks-wp-dashboard-page-card-title {
	margin: 0 0 10px;
	color: #1d2327;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}

.ks-wp-dashboard-page-card-text {
	margin: 0 0 14px;
	color: #50575e;
	line-height: 1.6;
}

.ks-wp-dashboard-page-card-text-small {
	font-size: 13px;
}

/* ==========================================================================
   Settings Form Sections
   ========================================================================== */

.ks-wp-dashboard-page-settings-section-header-spaced {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #dcdcde;
}

.ks-wp-dashboard-page-settings-section-header h3 {
	margin: 0 0 4px;
	color: #273476;
	font-size: 17px !important;
	font-weight: 600;
	line-height: 1.4;
}

.ks-wp-dashboard-page-settings-section-header p {
	margin: 0;
	font-size: 15px !important;
	line-height: 1.6;
}

.ks-wp-dashboard-page-settings-preview {
	max-width: 900px;
	min-width: 50%;
	padding: 20px;
	margin: 24px auto;
	background: #dcdfed;
	border: 2px dashed #273476;
	border-radius: 12.5px;
}

.ks-wp-dashboard-page-settings-preview-image {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
	padding: 16px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.ks-wp-dashboard-page-settings-preview-image img {
	display: block;
	max-width: 100%;
	height: auto;
}

.ks-wp-dashboard-page-settings-form {
	padding-bottom: 4px;
}

.ks-wp-dashboard-page-settings-fields {
	margin: 20px 1rem 0 1rem;
	padding: 0 1rem 1rem 1rem;
	background-color: #FAFBFE;
	border-radius: 8px;
}

.ks-wp-dashboard-page-settings-fields h4 {
	margin: 20px -1rem 20px -1rem;
	padding: 10px;
	color: #121836;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	background-color: #f1f3fb;
	border: 1px solid #dcdcde;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}

.ks-wp-dashboard-page-settings-fields label {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0;
	margin: 16px 0 8px;
	line-height: 1;
}

.ks-wp-dashboard-page-settings-fields p.description {
	display: block;
	padding: 4px 0;
	margin: 4px 0 16px;
	font-size: 13px !important;
}

.ks-wp-dashboard-page-settings-danger {
	margin-top: 28px !important;
	padding-top: 20px !important;
	border-top: 1px solid #dcdcde !important;
}

/* ==========================================================================
   Settings Form Components
   ========================================================================== */


.ks-wp-dashboard-page-settings-fields select {
	min-width: 5rem;
}

/* ==========================================================================
   Settings Form Actions
   ========================================================================== */

.ks-wp-dashboard-page-form-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 20px;
	margin-top: 20px;
	border-top: 1px solid #dcdcde;
}

.ks-wp-dashboard-page-settings-danger .ks-wp-dashboard-page-form-actions {
	padding-top: 0;
	border: none;
}


/* ==========================================================================
   Buttons
   ========================================================================== */

.ks-wp-dashboard-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 6px 14px;
	color: #1d2327;
	background: #fff;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition:
		color 0.15s ease,
		background-color 0.15s ease,
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.ks-wp-dashboard-page-btn:hover {
	color: #1d2327;
	background: #f6f7f7;
	border-color: #646970;
	text-decoration: none;
}

.ks-wp-dashboard-page-btn:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.ks-wp-dashboard-page-btn-primary {
	color: #fff !important;
	background: #2271b1;
	border-color: #2271b1;
}

.ks-wp-dashboard-page-btn-primary:hover {
	color: #fff;
	background: #135e96;
	border-color: #135e96;
}

.ks-wp-dashboard-page-btn-secondary {
	color: #2271b1;
	background: #fff;
	border-color: #2271b1;
}

.ks-wp-dashboard-page-btn-secondary:hover {
	color: #135e96;
	background: #f0f6fc;
	border-color: #135e96;
}


/* ==========================================================================
   Warning Button
   ========================================================================== */

.ks-wp-dashboard-page-btn-warning {
	color: #b32d2e !important;
	background: #fff !important;
	border-color: #b32d2e !important;
}

.ks-wp-dashboard-page-btn-warning:hover {
	color: #8a2424 !important;
	background: #fcf0f0 !important;
	border-color: #8a2424 !important;
}

.ks-wp-dashboard-page-btn-warning:focus-visible {
	color: #8a2424 !important;
	background: #fff !important;
	border-color: #8a2424 !important;
	outline: 2px solid #2271b1 !important;
	outline-offset: 2px !important;
}


/* ==========================================================================
   Bitcoin Donation
   ========================================================================== */

.ks-wp-dashboard-page-bitcoin {
	display: none;
	margin-top: 15px;
	text-align: center;
}

.ks-wp-dashboard-page-bitcoin.is-visible {
	display: block;
}

.ks-wp-dashboard-page-bitcoin .ks-wp-dashboard-page-qrcode {
	display: inline-block;
	width: auto;
	height: auto;
	max-width: 180px;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.ks-wp-dashboard-page-footer {
	grid-column: 1 / -1;
	width: 100%;
}

.ks-wp-dashboard-page-footer-version {
	padding: 12px 16px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	color: #646970;
	font-size: 13px;
}

.ks-wp-dashboard-page-footer-version p {
	margin: 0;
	text-align: center;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {

	.ks-wp-dashboard-page-row {
		grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
	}

}


@media (max-width: 900px) {

	.ks-wp-dashboard-page-row {
		grid-template-columns: 1fr;
	}

	.ks-wp-dashboard-page-sidebar {
		width: 100%;
	}

}


@media (max-width: 640px) {

	.ks-wp-dashboard-page-container {
		padding-right: 12px;
		padding-left: 12px;
	}

	.ks-wp-dashboard-page-content-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ks-wp-dashboard-page-header-title {
		min-height: 56px;
		padding: 0 16px;
	}

	.ks-wp-dashboard-page-header-title h1 {
		font-size: 20px;
	}

	.ks-wp-dashboard-page-header-intro {
		padding: 16px;
		margin-bottom: 16px;
	}

	.ks-wp-dashboard-page-content-card {
		padding: 16px;
	}

	.ks-wp-dashboard-page-card-body {
		padding: 16px;
	}

	.ks-wp-dashboard-page-settings-fields {
		margin-left: .5rem;
		margin-right: .5rem;
	}

}


@media (prefers-reduced-motion: reduce) {

	.ks-wp-dashboard-page-container *,
	.ks-wp-dashboard-page-container *::before,
	.ks-wp-dashboard-page-container *::after {
		transition: none !important;
	}

}