/**
 * Admin Styles for Sidocode Availability Indicators
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&display=swap');

.sacai-settings-wrap {
	font-family: 'Outfit', sans-serif;
	max-width: 900px;
	margin: 20px 0;
}

.sacai-header {
	background: #fff;
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	margin-bottom: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}


h2.sacai-header {
	font-size: 24px;
	font-weight: 600;
	margin-right: 15px;
	color: #1e1e1e;
}

.sacai-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	padding: 30px;
	margin-bottom: 24px;
	margin-right: 15px;
	border: 1px solid #f0f0f0;
}

.sacai-card-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 24px;
	color: #1e1e1e;
	display: flex;
	align-items: center;
	gap: 10px;
}

.sacai-card-title span {
	font-size: 22px;
}

.sacai-settings-row {
	margin-bottom: 24px;
	padding-bottom: 0px;
	border-bottom: 1px solid #f9f9f9;
}

.sacai-settings-row:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.sacai-label {
	display: block;
	font-weight: 500;
	margin-bottom: 8px;
	color: #444;
	font-size: 14px;
}

.sacai-input-group {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: center;
}

.sacai-field-wrap {
	flex: 1;
	min-width: 250px;
}

.sacai-field-wrap.narrow {
	flex: 0 0 120px;
	min-width: 120px;
}

.sacai-settings-wrap input[type="text"],
.sacai-settings-wrap input[type="number"],
.sacai-settings-wrap select,
.textarea.sacai-textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: #fafafa;
	height: auto;
}

textarea.sacai-textarea {
	width: 100%;
	font-family: monospace;
	font-size: 13px;
	resize: vertical;
	min-height: 160px;
	line-height: 1.6;
	border: 1px solid #ddd;
}


.sacai-settings-wrap input[type="text"]:focus,
.sacai-settings-wrap input[type="number"]:focus,
.sacai-settings-wrap select:focus,
.sacai-settings-wrap textarea:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
	background: #fff;
}

.sacai-description {
	margin-top: 8px;
	font-size: 14px;
	color: #777;
}

/* Custom Switch Toggle */
.sacai-switch {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 24px;
}

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

.sacai-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .3s;
	border-radius: 24px;
}

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

input:checked+.sacai-slider {
	background-color: #2271b1;
}

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

input:checked+.sacai-slider:before {
	transform: translateX(22px);
}

.sacai-toggle-label {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font-weight: 500;
	color: #1e1e1e;
}

/* Stock Level Specifics */
.sacai-settings-row {
	padding-left: 1rem;
}

.level-high {
	border-left: 4px solid #46b450;
}

.level-medium {
	border-left: 4px solid #ffb900;
}

.level-low {
	border-left: 4px solid #dc3232;
}

/* Action Buttons */
.sacai-actions {
	margin-top: 30px;
	display: flex;
	gap: 15px;
}

.sacai-btn-save {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 12px 30px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
	box-shadow: 0 2px 5px rgba(34, 113, 177, 0.2);
}

.sacai-btn-save:hover {
	background: #135e96;
}

/* Animations */
.advanced-settings {
	transition: opacity 0.3s, transform 0.3s;
}

/* Reveiw Notice */
p.sacai-review-nudge {
	background: #fff;
	border-left: 4px solid #2271b1;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	margin-bottom: 24px;
	display: flex;
	gap: 20px;
}

/* Responsive */
@media (max-width: 600px) {
	.sacai-input-group {
		flex-direction: column;
		align-items: flex-start;
	}

	.sacai-field-wrap {
		width: 100%;
	}
}