/* Image Enhancer - Admin Styles */

.ie-btn-enhance {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	font-size: 0.8rem;
	font-weight: 500;
	color: #6c5ce7;
	background: #f0edff;
	border: 1px solid #d5cff5;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
	margin-bottom: 10px;
}

.ie-btn-enhance:hover {
	background: #e4dffe;
	border-color: #6c5ce7;
	color: #5a4bd1;
}

.ie-btn-enhance svg {
	width: 16px;
	height: 16px;
}

.ie-btn-restore {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffeaa7;
	border: 1px solid #fdcb6e;
	border-radius: 4px;
	cursor: pointer;
	z-index: 5;
	font-size: 11px;
	line-height: 1;
	padding: 0;
	transition: all 0.2s;
}

.ie-btn-restore:hover {
	background: #fdcb6e;
}

/* Modal overlay */
.ie-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.25s;
}

.ie-modal-overlay.active {
	display: flex;
	opacity: 1;
}

.ie-modal {
	background: #fff;
	border-radius: 16px;
	width: 90%;
	max-width: 800px;
	max-height: 85vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	transform: translateY(20px);
	transition: transform 0.25s;
}

.ie-modal-overlay.active .ie-modal {
	transform: translateY(0);
}

.ie-modal-header {
	padding: 20px 24px;
	border-bottom: 1px solid #eee;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ie-modal-header h3 {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ie-modal-close {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: #f5f5f5;
	border-radius: 8px;
	cursor: pointer;
	font-size: 18px;
	color: #666;
	transition: all 0.2s;
}

.ie-modal-close:hover {
	background: #eee;
	color: #333;
}

.ie-modal-body {
	padding: 24px;
	overflow-y: auto;
	flex: 1;
}

.ie-modal-options {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
	align-items: center;
}

.ie-modal-options label {
	font-size: 0.82rem;
	font-weight: 500;
	color: #555;
}

.ie-modal-options select {
	padding: 6px 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 0.82rem;
}

/* Progress area */
.ie-progress {
	text-align: center;
	padding: 30px 0;
}

.ie-progress-text {
	font-size: 0.9rem;
	color: #666;
	margin-top: 12px;
}

.ie-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #f0edff;
	border-top-color: #6c5ce7;
	border-radius: 50%;
	animation: ie-spin 0.8s linear infinite;
	margin: 0 auto;
}

@keyframes ie-spin {
	to { transform: rotate(360deg); }
}

.ie-progress-bar {
	width: 100%;
	height: 6px;
	background: #f0f0f0;
	border-radius: 3px;
	margin-top: 16px;
	overflow: hidden;
}

.ie-progress-fill {
	height: 100%;
	background: #6c5ce7;
	border-radius: 3px;
	transition: width 0.3s;
	width: 0;
}

/* Results grid */
.ie-results {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ie-result-item {
	display: flex;
	gap: 16px;
	padding: 16px;
	background: #fafafa;
	border-radius: 12px;
	border: 1px solid #eee;
	align-items: center;
}

.ie-result-images {
	display: flex;
	gap: 12px;
	flex: 1;
}

.ie-result-img-wrap {
	flex: 1;
	text-align: center;
}

.ie-result-img-wrap img {
	max-width: 100%;
	max-height: 200px;
	border-radius: 8px;
	border: 1px solid #ddd;
}

.ie-result-img-wrap small {
	display: block;
	margin-top: 6px;
	font-size: 0.72rem;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ie-result-arrow {
	font-size: 1.2rem;
	color: #ccc;
	display: flex;
	align-items: center;
}

.ie-result-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 110px;
}

.ie-btn {
	padding: 7px 14px;
	border: none;
	border-radius: 8px;
	font-size: 0.78rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	text-align: center;
}

.ie-btn-apply {
	background: #00b894;
	color: #fff;
}

.ie-btn-apply:hover {
	background: #00a381;
}

.ie-btn-regen {
	background: #f0edff;
	color: #6c5ce7;
	border: 1px solid #d5cff5;
}

.ie-btn-regen:hover {
	background: #e4dffe;
}

.ie-btn-applied {
	background: #dfe6e9;
	color: #636e72;
	cursor: default;
}

.ie-result-error {
	padding: 16px;
	background: #fff5f5;
	border: 1px solid #ffdddd;
	border-radius: 12px;
	color: #c0392b;
	font-size: 0.85rem;
}

.ie-result-error .ie-result-error-actions {
	margin-top: 10px;
}
