/* Bulk Alt Text AI — admin styles */

.batai-alt-status {
	display: inline-block;
	margin-left: 6px;
	font-size: 12px;
	color: #1d2327;
}

.batai-error {
	color: #b32d2e;
}

.batai-wrap h1 .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	vertical-align: text-bottom;
}

.batai-panel {
	margin-top: 16px;
	max-width: 900px;
}

/* Stat cards */
.batai-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 20px 0 8px;
}

.batai-card {
	flex: 1 1 200px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.batai-card-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #646970;
}

.batai-card-num {
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	color: #1d2327;
}

.batai-card-num.is-warn {
	color: #bd8600;
}

.batai-card-num.is-ok {
	color: #008a20;
}

/* Locked / upsell */
.batai-locked {
	background: #fcf9e8;
	border: 1px solid #f0e6b8;
	border-radius: 8px;
	padding: 20px 24px;
	max-width: 620px;
}

.batai-locked .dashicons {
	color: #bd8600;
	vertical-align: middle;
}

/* Progress */
.batai-progress {
	margin: 16px 0;
	max-width: 520px;
}

.batai-progress-bar {
	background: #e2e4e7;
	border-radius: 6px;
	overflow: hidden;
	height: 16px;
}

.batai-progress-bar span {
	display: block;
	height: 100%;
	width: 0;
	background: #2271b1;
	transition: width .3s ease;
}

.batai-progress-label {
	margin-top: 6px;
	color: #646970;
	font-variant-numeric: tabular-nums;
}

.batai-log {
	margin-top: 12px;
	max-height: 340px;
	overflow: auto;
	font-size: 12px;
	border: 1px solid #f0f0f1;
	border-radius: 6px;
}

.batai-log:empty {
	display: none;
}

.batai-log li {
	padding: 6px 10px;
	border-bottom: 1px solid #f0f0f1;
}

.batai-log li:last-child {
	border-bottom: 0;
}

/* Revert */
.batai-revert-status {
	margin-left: 8px;
	color: #646970;
}

/* Steps */
.batai-step {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 4px 24px 20px;
	margin: 20px 0;
	max-width: 900px;
}

.batai-step-num {
	display: inline-block;
	width: 26px;
	height: 26px;
	line-height: 26px;
	text-align: center;
	border-radius: 50%;
	background: #2271b1;
	color: #fff;
	font-size: 14px;
	margin-right: 6px;
}

.batai-step h3 {
	margin-top: 24px;
	margin-bottom: 4px;
}

/* Connection test */
.batai-test-result {
	margin-left: 8px;
}

.batai-test-result.is-ok,
.batai-manual-status.is-ok,
.batai-ai-selected-status.is-ok {
	color: #008a20;
}

.batai-test-result.is-error,
.batai-manual-status.is-error,
.batai-ai-selected-status.is-error {
	color: #b32d2e;
}

/* Audit table */
.batai-table {
	margin-top: 8px;
	max-width: 860px;
}

.batai-table .check-column {
	width: 32px;
	padding: 8px 0 8px 10px;
	vertical-align: middle;
}

.batai-thumb {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.batai-cell-file {
	word-break: break-all;
	max-width: 220px;
}

.batai-cell-alt {
	max-width: 320px;
}

.batai-cell-alt em {
	color: #b32d2e;
	font-style: normal;
}

.batai-selcount {
	margin-left: 10px;
	color: #646970;
}

.batai-badge.is-missing {
	background: #fcf0f1;
	color: #b32d2e;
}

.batai-badge.is-gen {
	background: #e5f1f8;
	color: #2271b1;
}

/* Inline Pro lock */
.batai-prolock {
	background: #fcf9e8;
	border: 1px solid #f0e6b8;
	border-radius: 6px;
	padding: 10px 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.batai-prolock .dashicons {
	color: #bd8600;
}

/* Page scanner */
.batai-scan-frame-wrap {
	position: absolute;
	left: -9999px;
	top: 0;
	width: 1200px;
	height: 800px;
	overflow: hidden;
}

.batai-scan-frame-wrap iframe {
	width: 1200px;
	height: 800px;
	border: 0;
}

.batai-scan-summary {
	display: flex;
	gap: 10px;
	margin: 16px 0;
}

.batai-pill {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 13px;
}

.batai-pill.is-fail {
	background: #fcf0f1;
	color: #b32d2e;
}

.batai-pill.is-warn {
	background: #fcf9e8;
	color: #996800;
}

.batai-pill.is-pass {
	background: #d7f5dd;
	color: #008a20;
}

.batai-scan-section {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 4px 20px 12px;
	margin: 16px 0;
	max-width: 900px;
}

.batai-scan-item {
	border-left: 4px solid #dcdcde;
	padding: 2px 12px;
	margin: 10px 0;
}

.batai-scan-item.is-fail {
	border-left-color: #b32d2e;
}

.batai-scan-item.is-warn {
	border-left-color: #dba617;
}

.batai-scan-item.is-pass {
	border-left-color: #00a32a;
}

.batai-scan-item.is-info {
	border-left-color: #72aee6;
}

.batai-scan-item-head {
	margin: 6px 0;
	font-weight: 600;
}

.batai-scan-item ul {
	margin: 4px 0 8px 18px;
	list-style: disc;
}

.batai-scan-item code {
	font-size: 11px;
	word-break: break-all;
}

/* License */
.batai-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: #e2e4e7;
	color: #50575e;
	font-size: 12px;
	font-weight: 600;
	margin-right: 8px;
}

.batai-badge.is-pro {
	background: #d7f5dd;
	color: #008a20;
}

.batai-license-msg.is-ok {
	color: #008a20;
}

.batai-license-msg.is-error {
	color: #b32d2e;
}
