/**
 * Admin styles for Featured Image Creator AI
 */

/* Modern Admin Page Styling */
.aifig-settings-section {
	max-width: 1000px;
}

.aifig-settings-section h1 {
	font-size: 32px;
	font-weight: 600;
	margin-bottom: 10px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.aifig-settings-section .form-table {
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	margin-top: 20px;
}

.aifig-settings-section .form-table th {
	font-weight: 600;
	color: #1d2327;
	padding: 15px 20px 15px 0;
}

.aifig-settings-section .form-table td {
	padding: 15px 20px 15px 0;
}

.aifig-quick-actions .button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
	transition: all 0.3s ease;
}

/* Bulk Generation Page Styling */
.aifig-bulk-container {
	max-width: 100%;
	margin: 0 auto;
}

.aifig-bulk-container h1 {
	font-size: 32px;
	font-weight: 600;
	margin-bottom: 10px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.aifig-bulk-container .card {
	background: white;
	border: none;
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
	padding: 30px;
	margin: 20px 0;
	transition: all 0.3s ease;
}

.aifig-bulk-container .card:hover {
	box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.aifig-bulk-container .card h2 {
	margin-top: 0;
	color: #1d2327;
	font-size: 24px;
	font-weight: 600;
}

.aifig-bulk-container .notice {
	border-left-width: 4px;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}


/* Meta Box Styles */
.aifig-meta-box {
	padding: 10px 0;
}

.aifig-status {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	background: #f0f6fc;
	border-left: 3px solid #2271b1;
	margin: 10px 0;
}

.aifig-status.aifig-no-image {
	background: #fcf9e8;
	border-left-color: #dba617;
}

.aifig-status .dashicons {
	flex-shrink: 0;
}

.aifig-warning {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	background: #fcf0f1;
	border-left: 3px solid #d63638;
	margin: 10px 0;
	color: #d63638;
}

.aifig-generate-btn {
	width: 100%;
	height: auto;
	padding: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.aifig-generate-btn .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.aifig-loading {
	text-align: center;
	padding: 20px;
}

.aifig-loading .spinner {
	float: none;
	margin: 0 auto;
}

.aifig-result {
	margin-top: 15px;
}

.aifig-result.success {
	padding: 10px;
	background: #edfaef;
	border-left: 3px solid #00a32a;
}

.aifig-result.error {
	padding: 10px;
	background: #fcf0f1;
	border-left: 3px solid #d63638;
	color: #d63638;
}

.aifig-result img {
	max-width: 100%;
	height: auto;
	margin-top: 10px;
	border-radius: 4px;
}

/* Tab Styles */
.aifig-tabs {
	display: flex;
	gap: 5px;
	margin: 15px 0 10px;
	border-bottom: 1px solid #dcdcde;
}

.aifig-tab-btn {
	background: transparent;
	border: none;
	padding: 10px 15px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	color: #646970;
	font-size: 13px;
	border-bottom: 2px solid transparent;
	transition: all 0.2s;
}

.aifig-tab-btn:hover {
	color: #2271b1;
}

.aifig-tab-btn.active {
	color: #2271b1;
	border-bottom-color: #2271b1;
	font-weight: 600;
}

.aifig-tab-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.aifig-tab-content {
	display: none;
	padding: 15px 0;
}

.aifig-tab-content.active {
	display: block;
}

/* Upload Button */
.aifig-upload-btn {
	width: 100%;
	height: auto;
	padding: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.aifig-upload-btn .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.aifig-upload-preview {
	margin-top: 10px;
	text-align: center;
}


/* Bulk Generation Page Styles */
.aifig-bulk-container {
	max-width: 800px;
}

.aifig-bulk-container .card {
	padding: 20px;
	margin: 20px 0;
}

.aifig-bulk-container h2 {
	margin-top: 0;
}

.aifig-start-batch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	color: white;
	padding: 15px 30px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
	transition: all 0.3s ease;
	cursor: pointer;
}

.aifig-start-batch:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.aifig-start-batch:active {
	transform: translateY(0);
}

.aifig-start-batch .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	margin-right: 8px;
}

.aifig-batch-progress {
	margin: 20px 0;
}

.aifig-batch-progress progress {
	width: 100%;
	height: 30px;
	margin: 15px 0;
}

.aifig-progress-text {
	font-size: 18px;
	font-weight: 600;
	text-align: center;
	margin: 10px 0;
}

.aifig-progress-status {
	text-align: center;
	color: #646970;
}

.aifig-batch-results {
	margin: 20px 0;
}

.aifig-results-content {
	margin-top: 15px;
}

.aifig-result-item {
	padding: 10px;
	margin: 5px 0;
	border-left: 3px solid #00a32a;
	background: #edfaef;
}

.aifig-result-item.error {
	border-left-color: #d63638;
	background: #fcf0f1;
}

.aifig-result-item strong {
	display: block;
	margin-bottom: 5px;
}

/* Settings Page Styles */
.aifig-settings-section {
	max-width: 800px;
}

#aifig_prompt_template {
	font-family: monospace;
}

/* Responsive */
@media (max-width: 782px) {
	.aifig-generate-btn {
		padding: 10px;
	}

	.aifig-start-batch {
		width: 100%;
		justify-content: center;
	}
}