.imagerr-settings-page {
	max-width: 1200px;
	margin: 20px 0;
}
.imagerr-credits-card {
	background: #fff;
	border: 1px solid #ccd0d4;
	padding: 20px;
	border-radius: 4px;
	margin: 25px 0;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.credits-info h2 {
	margin: 0 0 5px 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}
.credits-number {
	font-size: 24px;
	font-weight: 600;
	color: #2271b1;
}
.imagerr-settings-section {
	background: #fff;
	border: 1px solid #ccd0d4;
	padding: 25px;
	border-radius: 4px;
	margin: 20px 0;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.imagerr-settings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-bottom: 30px;
}
.settings-group {
	min-width: 0;
}
.settings-group h3 {
	margin: 0 0 20px 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f0f1;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}
.form-field {
	margin-bottom: 15px;
}
.form-field label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
}
.form-field input[type="text"] {
	width: 100%;
	padding: 8px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 13px;
}
.checkbox-field {
	margin-bottom: 10px;
}
.checkbox-field label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: normal;
	cursor: pointer;
}
.checkbox-field input[type="checkbox"] {
	margin: 0;
}
.checkbox-field .checkbox-field-description {
	margin: 6px 0 0 24px;
	color: #646970;
	font-size: 12px;
}
.imagerr-seo-plugin-field .imagerr-seo-detected-badge,
.imagerr-seo-detected-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 500;
	color: #1e4620;
	background: #edfaef;
	border: 1px solid #00a32a;
	border-radius: 4px;
	vertical-align: middle;
}
.imagerr-seo-plugin-field .checkbox-field-description {
	margin-top: 8px;
}
.form-field-seo-keywords {
	margin-top: 20px;
}
.language-field {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #f0f0f1;
}
.imagerr-language-control-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.imagerr-language-control-row .imagerr-seo-detected-badge {
	margin-left: 0;
	white-space: nowrap;
}
.imagerr-multilingual-detected-row {
	margin: 0 0 14px 0;
	padding: 0;
}
.imagerr-multilingual-detected-row .imagerr-seo-detected-badge {
	margin-left: 0;
}
.imagerr-settings-section .imagerr-translatepress-notice {
	margin: 0 0 18px 0;
	padding: 10px 12px;
	background: #f0f6fc;
	border-left-color: #2271b1;
}
.imagerr-settings-section .imagerr-translatepress-notice p {
	margin: 0;
	color: #2c3338;
	font-size: 13px;
	line-height: 1.5;
}
.button-primary {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
	padding: 5px 15px;
	text-decoration: none;
	border-radius: 3px;
	font-size: 13px;
	line-height: 2.15384615;
	min-height: 30px;
	cursor: pointer;
}
.button-primary:hover {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
}
.submit .button-primary {
	min-width: 120px;
	text-align: center;
}
.button-danger {
	background: #dc3232;
	border-color: #dc3232;
	color: #fff;
}

.imagerr-generate-page {
	max-width: 800px;
	margin: 20px 0;
}
.imagerr-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin: 25px 0;
}
.imagerr-stat-card {
	background: #fff;
	border: 1px solid #ccd0d4;
	padding: 20px;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.imagerr-stat-card h3 {
	margin: 0 0 10px 0;
	color: #1d2327;
	font-size: 14px;
	font-weight: 600;
}
.imagerr-stat-card .stat-number {
	font-size: 24px;
	font-weight: 600;
	color: #2271b1;
	transition: color 0.3s ease;
}

.credits-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.credits-row .stat-number {
	flex: 1;
}

.credits-row .button-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	padding: 0 12px;
	min-height: 40px;
	line-height: 1;
}

@keyframes highlight-update {
	0% {
		transform: scale(1);
		color: inherit;
	}
	50% {
		transform: scale(1.1);
		color: #2271b1;
	}
	100% {
		transform: scale(1);
		color: inherit;
	}
}

.credits-update {
	animation: highlight-update 0.5s ease-in-out;
}

.imagerr-progress-section {
	background: #fff;
	border: 1px solid #ccd0d4;
	padding: 20px;
	border-radius: 4px;
	margin: 20px 0;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.progress-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
}
#generate-meta-bulk-progress {
	flex: 1;
	height: 20px;
}
#generate-meta-bulk-progress-text {
	min-width: 45px;
}
progress {
	-webkit-appearance: none;
	appearance: none;
}
progress::-webkit-progress-bar {
	background-color: #f0f0f1;
	border-radius: 3px;
}
progress::-webkit-progress-value {
	background-color: #2271b1;
	border-radius: 3px;
	transition: width 0.3s ease;
}
.imagerr-controls {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 15px 0;
}
#imagerr-generate-meta-bulk {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
	padding: 5px 15px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 13px;
	line-height: 2.15384615;
	min-height: 30px;
	white-space: nowrap;
}
#imagerr-generate-meta-bulk:disabled {
	background: #a7aaad !important;
	border-color: #a7aaad !important;
	cursor: not-allowed;
}
.imagerr-checkbox-wrapper {
	display: flex;
	align-items: center;
	gap: 5px;
}
#generate-meta-bulk-status {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	background: #f0f0f1;
	font-size: 13px;
}

.imagerr-error-images-section {
	margin-top: 20px;
}

.imagerr-error-images-section h3 {
	margin: 0 0 15px 0;
	color: #dc3232;
	font-size: 14px;
	font-weight: 600;
}

.imagerr-error-table-wrapper {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
	overflow: hidden;
}

.imagerr-error-table {
	width: 100%;
	border-collapse: collapse;
}

.imagerr-error-table th,
.imagerr-error-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #f0f0f1;
}

.imagerr-error-table th {
	background: #f6f7f7;
	font-weight: 600;
	color: #1d2327;
}

.imagerr-error-table tbody tr:last-child td {
	border-bottom: none;
}

.imagerr-error-table a {
	color: #2271b1;
}

.imagerr-error-table tbody tr td:first-child a {
	text-decoration: none;
}

.imagerr-error-table a:hover {
	color: #135e96;
	text-decoration: underline;
}

.imagerr-documentation-link {
	margin-bottom: 20px;
}

.imagerr-documentation-link a {
	color: #2271b1;
	text-decoration: none;
}

.imagerr-documentation-link a:hover {
	color: #135e96;
	text-decoration: underline;
}

/* Support Page Styles */
.imagerr-settings-section h2 {
	margin: 0 0 15px 0;
	font-size: 18px;
	font-weight: 600;
	color: #1d2327;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f0f1;
}

.imagerr-settings-section p {
	margin: 10px 0;
	color: #50575e;
	line-height: 1.6;
}
.imagerr-settings-section p.imagerr-field-error {
	margin: 6px 0 0 0;
	padding: 0;
	font-size: 12px;
	color: #b32d2e;
}

.imagerr-settings-section .button-primary {
	margin-top: 10px;
}

.imagerr-settings-section textarea {
	resize: vertical;
}

.imagerr-settings-section .button {
	background: #f6f7f7;
	border-color: #dcdcde;
	color: #2c3338;
	padding: 5px 15px;
	text-decoration: none;
	border-radius: 3px;
	font-size: 13px;
	line-height: 2.15384615;
	min-height: 30px;
	cursor: pointer;
	display: inline-block;
	margin-right: 10px;
}

.imagerr-settings-section .button:hover {
	background: #f0f0f1;
	border-color: #8c8f94;
	color: #2c3338;
}

@media (max-width: 600px) {
	.imagerr-language-control-row {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}
}
