/* Modern Design System - CSS Variables */
:root {
	/* Color Palette */
	--color-primary: #4361ee;
	--color-primary-light: #6c8aff;
	--color-primary-dark: #2541b2;
	--color-secondary: #4cc9f0;
	--color-success: #4ade80;
	--color-warning: #fbbf24;
	--color-danger: #ef4444;
	--color-info: #60a5fa;

	/* Neutral Colors */
	--color-background: #ffffff;
	--color-surface: #f8fafc;
	--color-surface-hover: #f1f5f9;
	--color-border: #e2e8f0;
	--color-border-light: #f1f5f9;

	/* Text Colors */
	--color-text-primary: #1e293b;
	--color-text-secondary: #64748b;
	--color-text-muted: #94a3b8;
	--color-text-on-primary: #ffffff;

	/* Spacing System */
	--space-xs: 0.25rem;  /* 4px */
	--space-sm: 0.5rem;   /* 8px */
	--space-md: 1rem;     /* 16px */
	--space-lg: 1.5rem;   /* 24px */
	--space-xl: 2rem;     /* 32px */
	--space-2xl: 3rem;    /* 48px */

	/* Typography */
	--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--font-size-xs: 0.75rem;   /* 12px */
	--font-size-sm: 0.875rem;  /* 14px */
	--font-size-md: 1rem;      /* 16px */
	--font-size-lg: 1.125rem;  /* 18px */
	--font-size-xl: 1.25rem;   /* 20px */
	--font-size-2xl: 1.5rem;   /* 24px */
	--font-size-3xl: 1.875rem; /* 30px */

	/* Font Weights */
	--font-weight-normal: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;

	/* Line Heights */
	--line-height-tight: 1.25;
	--line-height-normal: 1.5;
	--line-height-relaxed: 1.75;

	/* Border Radius */
	--radius-sm: 0.25rem;  /* 4px */
	--radius-md: 0.375rem; /* 6px */
	--radius-lg: 0.5rem;   /* 8px */
	--radius-xl: 0.75rem;  /* 12px */
	--radius-2xl: 1rem;    /* 16px */
	--radius-full: 9999px;

	/* Shadows */
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

	/* Transitions */
	--transition-fast: 150ms ease;
	--transition-normal: 250ms ease;
	--transition-slow: 350ms ease;

	/* Z-index */
	--z-index-dropdown: 1000;
	--z-index-sticky: 1020;
	--z-index-fixed: 1030;
	--z-index-modal-backdrop: 1040;
	--z-index-modal: 1050;
	--z-index-popover: 1060;
	--z-index-tooltip: 1070;
}

/* Product Search Wrapper */
.product-search-wrapper.premium-feature {
	width: 100%;
	display: block;
}


/* Base Styles */
[v-cloak] {
	display: none;
}

body {
	font-family: var(--font-family);
	color: var(--color-text-primary);
	line-height: var(--line-height-normal);
	background-color: var(--color-surface);
}

h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	margin-bottom: var(--space-md);
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-tight);
}

h1 {
	font-size: var(--font-size-3xl);
}

h2 {
	font-size: var(--font-size-2xl);
}

h3 {
	font-size: var(--font-size-xl);
}

p {
	margin-top: 0;
	margin-bottom: var(--space-md);
}

/* Layout Components */
.wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: var(--space-md);
}

.main-content-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xl);
	margin-top: var(--space-xl);
}

.main-content-layout {
	flex: 1 1 65%;
	min-width: 0;
}

.form-column {
	display: flex;
	align-items: flex-start; /* Added for better vertical alignment */
}

.info-column {
	flex-shrink: 0; /* Prevents this column from shrinking */
	width: 300px; /* Explicitly sets the width */
}

@media (max-width: 992px) {
	.main-content-wrapper {
		flex-direction: column;
	}

	.main-content-layout, .info-column {
		flex: 1 1 100%;
		margin-left: 0;
		width: 100%; /* Override the fixed width for small screens */
	}
}

/* Card/Container Styles */
.plugin-container, .info-box {
	background-color: var(--color-background);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	padding: var(--space-lg);
	margin-bottom: var(--space-lg);
	border: 1px solid var(--color-border);
	transition: box-shadow var(--transition-normal);
}

.plugin-container {
	flex-grow: 1; /* Allows the container to take up available space */
	padding: 10px; /* Reduced internal padding */
	margin-right: 20px; /* Adds space between the two columns */
}

.plugin-container:hover, .info-box:hover {
	box-shadow: var(--shadow-lg);
}

.info-box {
	padding: var(--space-lg);
}

.info-box h3 {
	font-size: var(--font-size-lg);
	margin-bottom: var(--space-md);
	color: var(--color-text-primary);
	border-bottom: 1px solid var(--color-border);
	padding-bottom: var(--space-sm);
}

/* Typography Styles */
.admin-page-title {
	font-size: var(--font-size-3xl);
	font-weight: var(--font-weight-bold);
	margin-bottom: var(--space-lg);
	color: var(--color-text-primary);
}

.section-title {
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-semibold);
	margin-bottom: var(--space-lg);
	color: var(--color-primary-dark);
	position: relative;
	padding-bottom: var(--space-sm);
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
	border-radius: var(--radius-full);
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--space-lg);
}

.section-header .section-title {
	margin-bottom: 0;
}

.field-description {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	margin-top: var(--space-sm);
	margin-bottom: var(--space-md);
	line-height: var(--line-height-relaxed);
	padding-left: var(--space-xs);
	border-left: 2px solid var(--color-border-light);
}

/* Alert Styles */
.alert {
	display: flex;
	align-items: flex-start;
	padding: var(--space-md);
	border-radius: var(--radius-lg);
	margin-bottom: var(--space-lg);
	box-shadow: var(--shadow-sm);
	transition: all var(--transition-normal);
	z-index: var(--z-index-dropdown);
}

.alert-icon {
	flex-shrink: 0;
	margin-right: var(--space-md);
	width: 24px;
	height: 24px;
}

.alert-content {
	flex: 1;
}

.alert-info {
	background-color: rgba(96, 165, 250, 0.1);
	border-left: 4px solid var(--color-info);
	margin-top: 24px;
}

.alert-success {
	background-color: rgba(74, 222, 128, 0.1);
	border-left: 4px solid var(--color-success);
	margin-top: 24px;
}

.alert-error {
	background-color: rgba(239, 68, 68, 0.1);
	border-left: 4px solid var(--color-danger);
	margin-top: 24px;
}

.alert-warning {
	background-color: rgba(251, 191, 36, 0.1);
	border-left: 4px solid var(--color-warning);
	margin-top: 24px;
}

/* Fade-in Animation */
.fade-in {
	animation: fadeIn 0.3s ease-in-out;
	margin-top: 24px;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Form Styles */
.form-group {
	margin-bottom: var(--space-lg);
}

.form-control {
	display: block;
	width: 100%;
	padding: var(--space-sm) var(--space-md);
	font-size: var(--font-size-md);
	line-height: var(--line-height-normal);
	color: var(--color-text-primary);
	background-color: var(--color-background);
	background-clip: padding-box;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
	border-color: var(--color-primary-light);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

label {
	display: block;
	margin-bottom: var(--space-sm);
	font-weight: var(--font-weight-medium);
	color: var(--color-text-primary);
}

/* Button Styles */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-sm) var(--space-lg);
	font-size: var(--font-size-md);
	font-weight: var(--font-weight-medium);
	line-height: 1.5;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	cursor: pointer;
	user-select: none;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	transition: all var(--transition-fast);
}

.button-primary {
	color: var(--color-text-on-primary);
	background-color: var(--color-primary);
	border-color: var(--color-primary);
}

.button-primary:hover, .button-primary:focus {
	background-color: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
}

.button-secondary {
	color: var(--color-text-primary);
	background-color: var(--color-background);
	border-color: var(--color-border);
}

.button-secondary:hover, .button-secondary:focus {
	background-color: var(--color-surface-hover);
	border-color: var(--color-text-muted);
}

.button-danger {
	color: var(--color-text-on-primary);
	background-color: var(--color-danger);
	border-color: var(--color-danger);
}

.button-danger:hover, .button-danger:focus {
	background-color: #dc2626;
	border-color: #dc2626;
}

.button-large {
	padding: var(--space-md) var(--space-xl);
	font-size: var(--font-size-lg);
}

.button:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* Wizard Styles */
.wizard-progress {
	display: flex;
	justify-content: space-between;
	margin: var(--space-xl) 0 var(--space-2xl);
	position: relative;
	padding: 0 var(--space-md);
}

.wizard-progress::before {
	content: '';
	position: absolute;
	top: 24px;
	left: 10%;
	right: 10%;
	height: 4px;
	background: linear-gradient(to right, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.2));
	border-radius: var(--radius-full);
	z-index: 1;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wizard-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 2;
	flex: 1;
	transition: transform var(--transition-normal);
}

.wizard-step:hover {
	transform: translateY(-3px);
}

.step-number {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: linear-gradient(145deg, #ffffff, #f5f7ff);
	border: 2px solid rgba(67, 97, 238, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: var(--font-weight-semibold);
	font-size: var(--font-size-lg);
	color: var(--color-text-secondary);
	margin-bottom: var(--space-sm);
	transition: all var(--transition-normal);
	box-shadow: var(--shadow-md);
	position: relative;
	overflow: hidden;
}

.step-number::before {
	content: '';
	position: absolute;
	top: -10px;
	left: -10px;
	width: 20px;
	height: 20px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
	border-radius: 50%;
	opacity: 0.6;
}

.step-label {
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-medium);
	color: var(--color-text-secondary);
	transition: all var(--transition-normal);
	text-align: center;
	padding: var(--space-xs) var(--space-sm);
	border-radius: var(--radius-md);
}

.wizard-step.active .step-number {
	background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark));
	border-color: var(--color-primary);
	color: var(--color-text-on-primary);
	box-shadow: 0 0 15px rgba(67, 97, 238, 0.4);
	transform: scale(1.05);
}

.wizard-step.active .step-label {
	color: var(--color-primary-dark);
	font-weight: var(--font-weight-semibold);
	background-color: rgba(67, 97, 238, 0.1);
}

.wizard-step.completed .step-number {
	background: linear-gradient(145deg, var(--color-success), #2e9d5d);
	border-color: var(--color-success);
	color: var(--color-text-on-primary);
	box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

.wizard-step.completed .step-number::after {
	font-size: var(--font-size-xl);
	position: absolute;
	top: 79%;
	left: 53%;
	transform: translate(-50%, -50%);
}

.wizard-step.completed .step-label {
	color: #2e9d5d;
	font-weight: var(--font-weight-semibold);
	background-color: rgba(74, 222, 128, 0.1);
}

.wizard-step-content {
	padding: var(--space-xl) var(--space-md);
	background: linear-gradient(145deg, #ffffff, rgba(67, 97, 238, 0.02));
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-sm);
	border: 1px solid rgba(67, 97, 238, 0.08);
	margin-bottom: var(--space-xl);
}

/* Slide Animation */
.slide-in-up {
	animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform, opacity;
	transform-origin: center bottom;
}

@keyframes slideInUp {
	0% {
		opacity: 0;
		transform: translateY(30px) scale(0.98);
		box-shadow: 0 0 0 rgba(67, 97, 238, 0);
	}
	70% {
		opacity: 1;
		transform: translateY(-5px) scale(1.01);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
		box-shadow: var(--shadow-sm);
	}
}

/* Tab Styles */
.content-goal-tabs {
	display: flex;
	border-bottom: 1px solid var(--color-border);
	margin-bottom: var(--space-lg);
	overflow-x: auto;
	scrollbar-width: none;
}

.content-goal-tabs::-webkit-scrollbar {
	display: none;
}

.tab-button {
	padding: var(--space-md) var(--space-lg);
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	font-size: var(--font-size-md);
	font-weight: var(--font-weight-medium);
	color: var(--color-text-secondary);
	cursor: pointer;
	transition: all var(--transition-fast);
	white-space: nowrap;
}

.tab-button:hover {
	color: var(--color-primary);
}

.tab-button.active {
	color: var(--color-primary);
	border-bottom-color: var(--color-primary);
	font-weight: var(--font-weight-semibold);
}

/* Form Actions */
.form-actions {
	display: flex;
	justify-content: flex-end;
	gap: var(--space-md);
	margin-top: var(--space-xl);
	padding: var(--space-lg) var(--space-xl);
	border-top: 1px solid rgba(67, 97, 238, 0.15);
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(67, 97, 238, 0.05));
	border-radius: 0 0 var(--radius-xl) var(--radius-xl);
	margin-left: calc(-1 * var(--space-lg));
	margin-right: calc(-1 * var(--space-lg));
	margin-bottom: calc(-1 * var(--space-lg));
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.form-actions .button {
	transition: all var(--transition-normal);
	transform: translateY(0);
	box-shadow: var(--shadow-md);
}

.form-actions .button:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.form-actions .button-primary {
	background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark));
	border-color: var(--color-primary-dark);
	padding: var(--space-sm) var(--space-xl);
	font-weight: var(--font-weight-semibold);
}

.form-actions .button-secondary {
	background: linear-gradient(145deg, #ffffff, #f5f7ff);
	border-color: rgba(67, 97, 238, 0.2);
	color: var(--color-primary-dark);
	padding: var(--space-sm) var(--space-xl);
	font-weight: var(--font-weight-medium);
}

/* Credit Selection Styles */
.credit-selection-container {
	margin-bottom: var(--space-lg);
	background-color: var(--color-background);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: var(--space-lg);
	border: 1px solid var(--color-border);
}

.credit-info {
	display: flex;
	justify-content: space-between;
	margin-bottom: var(--space-md);
}

.available-credits {
	display: flex;
	align-items: center;
	font-size: var(--font-size-sm);
	background-color: rgba(96, 165, 250, 0.1);
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-md);
	margin-bottom: var(--space-md);
	border-left: 4px solid var(--color-primary);
	box-shadow: var(--shadow-sm);
	width: 100%;
}

.credit-label {
	font-weight: var(--font-weight-semibold);
	margin-right: var(--space-sm);
	color: var(--color-text-primary);
}

.credit-value {
	font-weight: var(--font-weight-bold);
	color: var(--color-primary);
	font-size: var(--font-size-md);
}

/* Slider Styles */
.credit-slider-container {
	margin-top: var(--space-lg);
	padding: var(--space-xs) 0;
}

.credit-slider, .seo-budget-slider {
	width: 100%;
	height: 8px;
	-webkit-appearance: none;
	appearance: none;
	background: linear-gradient(to right, var(--color-primary) 0%, var(--color-primary-light) 100%);
	outline: none;
	border-radius: var(--radius-full);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.credit-slider::-webkit-slider-thumb, .seo-budget-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--color-background);
	cursor: pointer;
	border: 2px solid var(--color-primary);
	box-shadow: var(--shadow-md);
	transition: all var(--transition-fast);
}

.credit-slider::-webkit-slider-thumb:hover, .seo-budget-slider::-webkit-slider-thumb:hover {
	transform: scale(1.1);
	box-shadow: var(--shadow-lg);
}

.credit-slider::-moz-range-thumb, .seo-budget-slider::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--color-background);
	cursor: pointer;
	border: 2px solid var(--color-primary);
	box-shadow: var(--shadow-md);
	transition: all var(--transition-fast);
}

.credit-slider::-moz-range-thumb:hover, .seo-budget-slider::-moz-range-thumb:hover {
	transform: scale(1.1);
	box-shadow: var(--shadow-lg);
}

.slider-labels, .seo-budget-slider-labels {
	display: flex;
	justify-content: space-between;
	margin-top: var(--space-sm);
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	font-weight: var(--font-weight-medium);
}

/* Keywords Input Styles */
.keywords-input-container {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	margin-bottom: var(--space-md);
}

.keywords-input-container .form-control {
	width: 100%;
}

.analyze-blog-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-sm) var(--space-md);
	background-color: var(--color-background);
	color: var(--color-primary);
	border: 1px solid var(--color-primary);
	border-radius: var(--radius-md);
	font-weight: var(--font-weight-medium);
	cursor: pointer;
	transition: all var(--transition-fast);
	box-shadow: var(--shadow-sm);
	text-decoration: none;
	max-width: fit-content;
}

.analyze-blog-btn:hover {
	background-color: rgba(67, 97, 238, 0.05);
	box-shadow: var(--shadow-md);
}

.analyze-blog-btn:active {
	background-color: var(--color-background);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.analyze-blog-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* Keyword Chips */
.analyzed-keywords {
	margin-top: var(--space-md);
	padding: var(--space-md);
	background-color: var(--color-surface);
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
}

.analyzed-keywords p {
	margin-top: 0;
	margin-bottom: var(--space-sm);
	font-weight: var(--font-weight-medium);
}

.keyword-chips, .seo-keyword-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

.keyword-chip, .seo-keyword-chip {
	display: inline-block;
	padding: var(--space-xs) var(--space-md);
	background-color: rgba(67, 97, 238, 0.1);
	color: var(--color-primary);
	border-radius: var(--radius-full);
	font-size: var(--font-size-sm);
	cursor: pointer;
	transition: all var(--transition-fast);
}

.keyword-chip:hover, .seo-keyword-chip:hover {
	background-color: rgba(67, 97, 238, 0.2);
	transform: translateY(-1px);
}

.keyword-chip.active, .seo-keyword-chip.active {
	background-color: var(--color-success);
	color: var(--color-text-on-primary);
}

.seo-keyword-chips-wrap {
	margin-top: var(--space-md);
	padding: var(--space-md);
	background-color: var(--color-surface);
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
}

.seo-keyword-chips-label {
	margin-top: 0;
	margin-bottom: var(--space-sm);
	font-weight: var(--font-weight-medium);
}

/* SEO Content Section */
.seo-content-section {
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	margin-bottom: var(--space-lg);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-sm);
}

.seo-content-section .form-group {
	margin-bottom: var(--space-lg);
}

/* Product Content Section - Matching SEO Content Section styling */
.wizard-step-content .form-group {
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	margin-bottom: var(--space-lg);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-sm);
}

/* Style Product-Focused Content form elements to match SEO-Focused Content */
.wizard-step-content .form-group label {
	font-weight: var(--font-weight-semibold);
	color: var(--color-text-primary);
	margin-bottom: var(--space-xs);
	display: block;
}

.wizard-step-content .form-group select.form-control {
	width: 100%;
	font-size: var(--font-size-md);
	font-weight: var(--font-weight-semibold);
	color: var(--color-primary);
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	background: var(--color-background);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
	transition: all var(--transition-fast);
	appearance: auto;
}

.wizard-step-content .form-group select.form-control:focus {
	border-color: var(--color-primary-light);
	outline: none;
	box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.wizard-step-content .form-group .error-text,
.wizard-step-content .seo-content-section .error-text,
.seo-error-text {
	color: var(--color-danger);
	font-size: var(--font-size-sm);
	margin-top: var(--space-sm);
	display: block;
	padding: var(--space-xs) var(--space-sm);
	background-color: rgba(239, 68, 68, 0.1);
	border-left: 3px solid var(--color-danger);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Style Product Details section */
.wizard-step-content .seo-content-section .product-details,
.wizard-step-content .form-group .product-details {
	background: var(--color-surface-hover);
	border-radius: var(--radius-md);
	padding: var(--space-md);
	margin-top: var(--space-md);
	border: 1px solid var(--color-border-light);
}

.wizard-step-content .seo-content-section .product-details h4,
.wizard-step-content .form-group .product-details h4 {
	font-size: var(--font-size-md);
	font-weight: var(--font-weight-semibold);
	margin-bottom: var(--space-sm);
	color: var(--color-text-primary);
}

.wizard-step-content .seo-content-section .product-detail-item,
.wizard-step-content .form-group .product-detail-item {
	margin-bottom: var(--space-xs);
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
}

.wizard-step-content .seo-content-section .product-detail-item strong,
.wizard-step-content .form-group .product-detail-item strong {
	font-weight: var(--font-weight-medium);
	color: var(--color-text-primary);
}

/* Style field description */
.wizard-step-content .form-group .field-description,
.wizard-step-content .seo-content-section .field-description {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	margin-top: var(--space-xs);
	margin-bottom: var(--space-sm);
}

.seo-budget-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-lg);
	align-items: flex-start;
	margin-bottom: var(--space-lg);
	padding: var(--space-md);
	background-color: var(--color-background);
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border-light);
	transition: all var(--transition-normal);
}

.seo-budget-row:hover {
	box-shadow: var(--shadow-md);
	border-color: var(--color-border);
}

.seo-budget-col {
	flex: 1 1 180px;
	min-width: 180px;
}

.seo-budget-label {
	font-weight: var(--font-weight-semibold);
	color: var(--color-text-primary);
	margin-bottom: var(--space-sm);
	display: block;
	font-size: var(--font-size-md);
	position: relative;
}

.seo-budget-label .required {
	color: var(--color-danger);
	margin-left: var(--space-xs);
}

.seo-budget-input {
	width: 100%;
	font-size: var(--font-size-md);
	font-weight: var(--font-weight-medium);
	color: var(--color-text-primary);
	padding: var(--space-md);
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	background: var(--color-background);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
	transition: all var(--transition-fast);
}

.seo-budget-input:hover {
	border-color: var(--color-text-muted);
}

.seo-budget-input:focus {
	border-color: var(--color-primary-light);
	outline: none;
	box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.seo-budget-slider-wrap {
	margin-top: var(--space-sm);
}

.seo-available-credits {
	font-size: var(--font-size-sm);
	color: var(--color-primary);
	background: rgba(67, 97, 238, 0.1);
	border-radius: var(--radius-md);
	padding: var(--space-xs) var(--space-md);
	margin-bottom: 0;
	font-weight: var(--font-weight-medium);
	display: inline-block;
}

/* Keywords Input and Suggestions */
.seo-keywords-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
	align-items: flex-end;
}

.seo-keywords-col {
	flex: 2 1 260px;
	min-width: 220px;
}

.seo-keywords-label {
	font-weight: var(--font-weight-semibold);
	color: var(--color-text-primary);
	margin-bottom: var(--space-xs);
	display: block;
}

.seo-keywords-input {
	width: 100%;
	font-size: var(--font-size-md);
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	background: var(--color-background);
	transition: all var(--transition-fast);
	min-height: 40px;
	box-sizing: border-box;
	resize: none;
	overflow-y: hidden;
	line-height: var(--line-height-normal);
}

.seo-keywords-input:focus {
	border-color: var(--color-primary-light);
	outline: none;
	box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.seo-analyze-btn {
	padding: 0 var(--space-lg);
	background: var(--color-primary);
	color: var(--color-text-on-primary);
	border: none;
	border-radius: var(--radius-md);
	font-weight: var(--font-weight-semibold);
	font-size: var(--font-size-md);
	cursor: pointer;
	transition: all var(--transition-fast);
	box-shadow: var(--shadow-sm);
	height: 40px;
	display: flex;
	align-items: center;
}

.seo-analyze-btn:hover:not(:disabled) {
	background: var(--color-primary-dark);
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

.seo-analyze-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.seo-keywords-desc {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	margin-top: var(--space-xs);
}

.seo-error-text, .error-text {
	color: var(--color-danger);
	font-size: var(--font-size-sm);
	margin-top: var(--space-sm);
	display: block;
	padding: var(--space-xs) var(--space-sm);
	background-color: rgba(239, 68, 68, 0.1);
	border-left: 3px solid var(--color-danger);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Validation Errors */
.validation-errors-list {
	margin: var(--space-sm) 0 0 0;
	padding-left: var(--space-lg);
}

.validation-errors-list li {
	margin-bottom: var(--space-xs);
	font-size: var(--font-size-sm);
}

/* Error Highlight Animation */
.highlight-error {
	animation: pulse-error 1.5s ease-in-out;
}

@keyframes pulse-error {
	0% { background-color: rgba(239, 68, 68, 0.1); }
	50% { background-color: rgba(239, 68, 68, 0.2); }
	100% { background-color: rgba(239, 68, 68, 0.1); }
}

/* Styles for wizardS class elements */
.wizardS .seo-content-section > * {
	margin-bottom: var(--space-lg);
}

.wizardS .seo-content-section select,
.wizardS .seo-content-section textarea {
	padding: var(--space-sm);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	width: 100%;
	box-sizing: border-box;
}

.wizardS .seo-content-section button.button-primary {
	padding: var(--space-md) var(--space-xl);
	background-color: var(--color-primary);
	color: var(--color-text-on-primary);
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	font-size: var(--font-size-md);
	font-weight: var(--font-weight-bold);
}

.wizardS .seo-content-section label {
	display: block;
	margin-bottom: var(--space-sm);
	font-weight: var(--font-weight-bold);
	color: var(--color-text-primary);
}

.wizardS .seo-content-section .field-description {
	font-size: var(--font-size-xs);
	color: var(--color-text-secondary);
	margin-top: var(--space-xs);
}

.wizardS .seo-content-section .seo-analyze-btn {
	padding: var(--space-sm) var(--space-lg);
	background-color: var(--color-surface-hover);
	color: var(--color-text-primary);
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	font-size: var(--font-size-sm);
	margin-bottom: 0;
}

.wizardS .seo-content-section .seo-keywords-row {
	display: flex;
	align-items: flex-end;
	gap: var(--space-sm);
}

.wizardS .seo-content-section .seo-keywords-row textarea.seo-keywords-input,
.wizardS .seo-content-section .seo-keywords-row button.seo-analyze-btn {
	margin-bottom: 0;
}

/* Inactive Task Styles */
.inactive-task {
	background-color: rgba(0, 0, 0, 0.02);
	opacity: 0.85;
}

.inactive-task-warning {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	font-size: var(--font-size-sm);
	color: var(--color-danger);
	margin-top: var(--space-sm);
	padding: var(--space-md);
	background-color: rgba(239, 68, 68, 0.08);
	border-radius: var(--radius-lg);
	border-left: 4px solid var(--color-danger);
	box-shadow: var(--shadow-sm);
	position: relative;
	overflow: hidden;
}

.inactive-task-warning svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--color-danger);
}

.inactive-task-warning::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 60px;
	height: 60px;
	background-color: rgba(239, 68, 68, 0.03);
	border-radius: 50%;
	transform: translate(30%, -30%);
	z-index: 0;
}

.modal-body .inactive-task-warning {
	margin: var(--space-lg) 0;
	font-weight: var(--font-weight-medium);
}

.sidebar-warning {
	margin: var(--space-xs) 0;
	font-size: var(--font-size-xs);
	padding: var(--space-xs) var(--space-xs);
}

.inactive-badge {
	background-color: var(--color-danger);
	color: var(--color-text-on-primary);
	font-size: var(--font-size-xs);
	padding: 2px var(--space-xs);
	border-radius: var(--radius-full);
	margin-left: var(--space-xs);
	font-weight: var(--font-weight-bold);
	text-transform: uppercase;
}

.status-badge.inactive {
	background-color: var(--color-danger);
	color: var(--color-text-on-primary);
}

.inactive-autopilot {
	opacity: 0.8;
	background-color: rgba(0, 0, 0, 0.02);
	border-left: 3px solid var(--color-danger);
}

/* Budget Smallbox */
.seo-budget-smallbox {
	background: linear-gradient(145deg, lightblue, rgba(67, 97, 238, 0.08));
	border: 1px solid rgba(67, 97, 238, 0.15);
	padding: var(--space-lg);
	min-height: 240px;
	font-size: var(--font-size-sm);
	margin-bottom: var(--space-md);
	transition: all var(--transition-normal);
	position: relative;
	overflow: hidden;

	box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.seo-budget-smallbox::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100px;
	height: 100px;
	background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
	border-radius: 50%;
	transform: translate(30%, -30%);
	z-index: 0;
}

.seo-budget-smallbox:hover {
	box-shadow: var(--shadow-lg), 0 0 20px rgba(67, 97, 238, 0.2);
	transform: translateY(-3px);
	border-color: rgba(67, 97, 238, 0.3);
}

.seo-budget-smallbox .seo-budget-label {
	font-size: var(--font-size-md);
	margin-bottom: var(--space-sm);
	color: var(--color-primary-dark);
	font-weight: var(--font-weight-semibold);
	position: relative;
	z-index: 1;
}

.seo-budget-smallbox .seo-budget-input {
	font-size: var(--font-size-sm);
	border: 2px solid rgba(67, 97, 238, 0.2);
	background-color: rgba(255, 255, 255, 0.9);
	color: var(--color-primary-dark);
	font-weight: var(--font-weight-semibold);
	text-align: left;
	transition: all var(--transition-normal);
	position: relative;
	z-index: 1;

	border-color: rgb(204, 204, 204);
	background-color: rgb(255, 255, 255);
	padding: 8px 24px 8px 12px;
	border-radius: 4px;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px inset;
	appearance: none;
	background-image: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E);
	background-position: right 10px center;
	background-repeat: no-repeat;
	background-size: 12px 12px;
}

.seo-budget-smallbox .seo-budget-input:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.05);
	outline: none;
}

.seo-budget-smallbox .seo-budget-slider-wrap {
	margin: var(--space-md) 0;
	padding: 0 var(--space-xs);
	position: relative;
	z-index: 1;
}

.seo-budget-smallbox .seo-budget-slider {
	height: 10px;
	background: linear-gradient(to right, rgba(67, 97, 238, 0.3), rgba(76, 201, 240, 0.6));
	border-radius: var(--radius-full);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.seo-budget-smallbox .seo-budget-slider::-webkit-slider-thumb {
	width: 24px;
	height: 24px;
	background: linear-gradient(145deg, #ffffff, #f5f7ff);
	border: 2px solid var(--color-primary);
	box-shadow: 0 2px 6px rgba(67, 97, 238, 0.3);
}

.seo-budget-smallbox .seo-budget-slider::-moz-range-thumb {
	width: 24px;
	height: 24px;
	background: linear-gradient(145deg, #ffffff, #f5f7ff);
	border: 2px solid var(--color-primary);
	box-shadow: 0 2px 6px rgba(67, 97, 238, 0.3);
}

.seo-budget-smallbox .seo-budget-slider::-webkit-slider-thumb:hover {
	transform: scale(1.15);
	box-shadow: 0 3px 8px rgba(67, 97, 238, 0.4);
}

.seo-budget-smallbox .seo-budget-slider::-moz-range-thumb:hover {
	transform: scale(1.15);
	box-shadow: 0 3px 8px rgba(67, 97, 238, 0.4);
}

.seo-budget-smallbox .seo-budget-slider-labels {
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-medium);
	color: var(--color-primary-dark);
	margin-top: var(--space-sm);
	padding: 0 var(--space-xs);
	display: flex;
	justify-content: space-between;
}

.seo-budget-smallbox .seo-available-credits {
	font-size: var(--font-size-sm);
	padding: var(--space-sm) var(--space-md);
	margin-top: var(--space-sm);
	background: linear-gradient(145deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.15));
	border-radius: var(--radius-lg);
	color: var(--color-primary-dark);
	font-weight: var(--font-weight-semibold);
	text-align: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	position: relative;
	z-index: 1;
}

/* Loading Overlay */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(255, 255, 255, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: var(--z-index-modal);
}

.loading-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid rgba(67, 97, 238, 0.2);
	border-radius: 50%;
	border-top-color: var(--color-primary);
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Status Badges */
.status-badge {
	display: inline-flex;
	align-items: center;
	padding: var(--space-xs) var(--space-sm);
	border-radius: var(--radius-full);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-semibold);
	text-transform: uppercase;
}

.status-badge.draft {
	background-color: rgba(100, 116, 139, 0.2);
	color: var(--color-text-secondary);
}

.status-badge.publish {
	background-color: rgba(74, 222, 128, 0.2);
	color: #15803d;
}

/* Frequency Badges */
.frequency-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	padding: var(--space-xs) var(--space-sm);
	border-radius: var(--radius-full);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-medium);
	background-color: rgba(67, 97, 238, 0.1);
	color: var(--color-primary);
}

/* Content Goal Badge */
.content-goal-badge {
	display: inline-flex;
	align-items: center;
	padding: var(--space-xs) var(--space-sm);
	border-radius: var(--radius-full);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-medium);
	margin-left: var(--space-xs);
}

/* Traffic light color scheme for content goal badges */
/* Green (success) */
.content-goal-badge.traffic {
	background-color: rgba(74, 222, 128, 0.2);
	color: #15803d;
}

.content-goal-badge.content_generation {
	background-color: rgba(74, 222, 128, 0.2);
	color: #15803d;
}

.content-goal-badge.educational {
	background-color: rgba(74, 222, 128, 0.2);
	color: #15803d;
}

/* Yellow (warning) */
.content-goal-badge.seo-traffic {
	background-color: rgba(251, 191, 36, 0.2);
	color: #92400e;
}

.content-goal-badge.brand-awareness {
	background-color: rgba(251, 191, 36, 0.2);
	color: #92400e;
}

.content-goal-badge.community-engagement {
	background-color: rgba(251, 191, 36, 0.2);
	color: #92400e;
}

/* Red (attention) */
.content-goal-badge.product-promotion {
	background-color: rgba(239, 68, 68, 0.2);
	color: #b91c1c;
}

.content-goal-badge.affiliate-marketing {
	background-color: rgba(239, 68, 68, 0.2);
	color: #b91c1c;
}

.content-goal-badge.news-announcements {
	background-color: rgba(239, 68, 68, 0.2);
	color: #b91c1c;
}

.content-goal-badge.content_curation {
	background-color: rgba(239, 68, 68, 0.2);
	color: #b91c1c;
}

/* Legacy support */
.content-goal-badge.product {
	background-color: rgba(76, 201, 240, 0.2);
	color: #0e7490;
}

/* Task ID Badge */
.task-id-badge {
	display: inline-flex;
	align-items: center;
	padding: var(--space-xs) var(--space-sm);
	border-radius: var(--radius-md);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-semibold);
	font-family: monospace;
	background-color: rgba(67, 97, 238, 0.1);
	color: var(--color-primary-dark);
	letter-spacing: 0.5px;
	border: 1px solid rgba(67, 97, 238, 0.2);
}

/* Credit Usage Visualization */
.credit-usage {
	margin-top: var(--space-xl);
	padding: var(--space-lg);
	background-color: var(--color-surface);
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-md);
	position: relative;
	overflow: hidden;
}

.credit-usage::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-light));
}

.credit-usage-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: var(--font-weight-semibold);
	margin-bottom: var(--space-md);
	color: var(--color-text-primary);
}

.credit-usage-label span:first-child {
	font-size: var(--font-size-lg);
	color: var(--color-primary);
}

.credit-usage-label span:last-child {
	background-color: rgba(67, 97, 238, 0.1);
	padding: var(--space-xs) var(--space-sm);
	border-radius: var(--radius-md);
	font-weight: var(--font-weight-bold);
	color: var(--color-primary);
}

.credit-usage-bar {
	height: 12px;
	background-color: rgba(67, 97, 238, 0.1);
	border-radius: var(--radius-full);
	overflow: hidden;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.credit-usage-progress {
	height: 100%;
	background: linear-gradient(to right, var(--color-primary), var(--color-primary-light));
	border-radius: var(--radius-full);
	transition: width 0.5s ease;
	position: relative;
	overflow: hidden;
}

.credit-usage-progress::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		45deg,
		rgba(255, 255, 255, 0.2) 25%,
		transparent 25%,
		transparent 50%,
		rgba(255, 255, 255, 0.2) 50%,
		rgba(255, 255, 255, 0.2) 75%,
		transparent 75%
	);
	background-size: 20px 20px;
	animation: progressStripes 1s linear infinite;
	border-radius: var(--radius-full);
}

@keyframes progressStripes {
	0% { background-position: 0 0; }
	100% { background-position: 20px 0; }
}

.credit-usage-info {
	display: flex;
	justify-content: space-between;
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	margin-top: var(--space-md);
}

.credit-usage-info span:last-child {
	font-weight: var(--font-weight-medium);
}

/* Tasks Table */
.tasks-table-wrapper {
	overflow-x: auto;
	margin-bottom: var(--space-lg);
}

.tasks-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.tasks-table th {
	background-color: var(--color-surface);
	padding: var(--space-md);
	text-align: left;
	font-weight: var(--font-weight-semibold);
	color: var(--color-text-primary);
	border-bottom: 1px solid var(--color-border);
}

.tasks-table td {
	padding: var(--space-md);
	border-bottom: 1px solid var(--color-border);
	background-color: var(--color-background);
}

.tasks-table tr:last-child td {
	border-bottom: none;
}

.tasks-table tr:hover td {
	background-color: var(--color-surface-hover);
}

/* Action Buttons */
.action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--radius-md);
	border: none;
	background-color: transparent;
	cursor: pointer;
	transition: all var(--transition-fast);
	color: var(--color-text-secondary);
}

.action-btn:hover {
	background-color: var(--color-surface);
	color: var(--color-primary);
}

.action-btn.delete-btn:hover {
	color: var(--color-danger);
}

/* Floating Action Button */
.floating-action-btn {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: var(--color-primary);
	color: var(--color-text-on-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-lg);
	cursor: pointer;
	transition: all var(--transition-fast);
	z-index: var(--z-index-fixed);
}

.floating-action-btn:hover {
	background-color: var(--color-primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-xl);
}

/* Centered Content */
.center-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: var(--space-2xl) var(--space-md);
	min-height: 300px;
}

/* Add New Button */
.add-new-btn {
	padding: var(--space-md) var(--space-xl);
	font-size: var(--font-size-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm);
	transition: all var(--transition-normal);
	box-shadow: var(--shadow-md);
}

.add-new-btn:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
}

.plus-icon {
	font-size: 1.5em;
	font-weight: var(--font-weight-bold);
	line-height: 0.8;
}

/* Margin Top Utility */
.mt-4 {
	margin-top: var(--space-xl);
}

/* Modal Styles */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: var(--z-index-modal);
}

.modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(2px);
	z-index: var(--z-index-modal-backdrop);
	animation: backdropFadeIn 0.2s ease-out;
}

@keyframes backdropFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.modal-content {
	position: relative;
	width: 90%;
	max-width: 700px;
	max-height: 90vh;
	background-color: var(--color-background);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-xl);
	z-index: var(--z-index-modal);
	display: flex;
	flex-direction: column;
	animation: modalFadeIn 0.3s ease-out;
	overflow: hidden;
	border: 1px solid var(--color-border-light);
}

@keyframes modalFadeIn {
	from { opacity: 0; transform: translateY(20px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-lg) var(--space-xl);
	border-bottom: 1px solid var(--color-border);
	background-color: var(--color-surface);
}

.modal-header h3 {
	margin: 0;
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-semibold);
	color: var(--color-primary);
}

.modal-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: none;
	border: none;
	font-size: var(--font-size-2xl);
	line-height: 1;
	color: var(--color-text-secondary);
	cursor: pointer;
	transition: all var(--transition-fast);
	border-radius: var(--radius-full);
}

.modal-close:hover {
	color: var(--color-danger);
	background-color: rgba(239, 68, 68, 0.1);
}

.modal-body {
	padding: var(--space-xl);
	overflow-y: auto;
	flex: 1;
	background-color: var(--color-background);
}

.modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: var(--space-md);
	padding: var(--space-lg) var(--space-xl);
	border-top: 1px solid var(--color-border);
	background-color: var(--color-surface);
}

/* Task Details */
.task-details-container {
	display: flex;
	flex-direction: column;
	gap: var(--space-xl);
	width: 100%;
}

.task-overview-section {
	background-color: var(--color-surface);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
}

.task-overview-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--space-md);
}

.task-status-indicator {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	font-weight: var(--font-weight-medium);
	padding: var(--space-xs) var(--space-md);
	border-radius: var(--radius-full);
	font-size: var(--font-size-sm);
}

.task-status-indicator.active {
	background-color: rgba(74, 222, 128, 0.1);
	color: var(--color-success);
}

.task-status-indicator.inactive {
	background-color: rgba(239, 68, 68, 0.1);
	color: var(--color-danger);
}

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}

.task-status-indicator.active .status-dot {
	background-color: var(--color-success);
}

.task-status-indicator.inactive .status-dot {
	background-color: var(--color-danger);
}

.task-type-badge {
	padding: var(--space-xs) var(--space-md);
	border-radius: var(--radius-full);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-medium);
}

.task-type-badge.product-type {
	background-color: rgba(96, 165, 250, 0.1);
	color: var(--color-info);
}

.task-type-badge.seo-type {
	background-color: rgba(76, 201, 240, 0.1);
	color: var(--color-secondary);
}

.credit-usage-summary {
	margin-top: var(--space-md);
	background-color: var(--color-background);
	border-radius: var(--radius-md);
	padding: var(--space-md);
	border: 1px solid var(--color-border-light);
}

.credit-usage-label {
	display: flex;
	justify-content: space-between;
	margin-bottom: var(--space-xs);
	font-weight: var(--font-weight-medium);
}

.credit-amount {
	color: var(--color-primary);
	font-weight: var(--font-weight-semibold);
}

.credit-usage-bar {
	height: 8px;
	background-color: var(--color-border-light);
	border-radius: var(--radius-full);
	margin: var(--space-xs) 0;
	overflow: hidden;
}

.credit-usage-progress {
	height: 100%;
	background-color: var(--color-primary);
	border-radius: var(--radius-full);
}

.credit-usage-info {
	display: flex;
	justify-content: flex-end;
	font-size: var(--font-size-xs);
	color: var(--color-text-secondary);
}

.task-details-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--space-lg);
	width: 100%;
}

.task-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform var(--transition-fast), box-shadow var(--transition-fast);
	background-color: var(--color-background);
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.task-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.task-card h3 {
	margin-top: 0;
	margin-bottom: var(--space-md);
	padding: var(--space-md) var(--space-md) var(--space-sm);
	border-bottom: 1px solid var(--color-border);
	font-size: var(--font-size-lg);
	color: var(--color-primary);
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	background-color: var(--color-surface);
}

.card-icon {
	stroke: var(--color-primary);
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	padding: var(--space-md);
}

.detail-item {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	gap: 0;
	padding: var(--space-xs) var(--space-xs) var(--space-sm);
	border-bottom: 1px dashed var(--color-border-light);
	transition: background-color var(--transition-fast);
}

.detail-item:hover {
	background-color: rgba(67, 97, 238, 0.02);
	border-radius: var(--radius-sm);
}

.detail-item:last-child {
	border-bottom: none;
}

.detail-label {
	flex: 0 0 170px;
	font-weight: var(--font-weight-semibold);
	color: var(--color-text-secondary);
	position: relative;
	padding-left: var(--space-sm);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	height: 24px;
	line-height: 24px;
}

.detail-label::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 12px;
	background-color: var(--color-primary-light);
	border-radius: var(--radius-sm);
	opacity: 0.7;
}

.detail-value {
	flex: 1;
	min-width: 200px;
	font-weight: var(--font-weight-medium);
	color: var(--color-text-primary);
	padding: 0 var(--space-sm);
}

.detail-value.highlight {
	color: var(--color-primary);
	font-weight: var(--font-weight-semibold);
}

.keyword-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
}

.keyword-tag {
	background-color: rgba(67, 97, 238, 0.1);
	color: var(--color-primary);
	padding: var(--space-xs) var(--space-sm);
	border-radius: var(--radius-full);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-medium);
}

.titles-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
}

.title-item {
	padding: var(--space-xs) var(--space-sm);
	background-color: var(--color-surface);
	border-radius: var(--radius-sm);
	font-size: var(--font-size-sm);
}

.credit-usage-card .credit-usage {
	margin-top: var(--space-md);
}

/* Active AutoPilots Sidebar */
.active-autopilots-box {
	margin-bottom: var(--space-lg);
}

.no-active-autopilots {
	color: var(--color-text-secondary);
	font-style: italic;
}

.active-autopilots-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.active-autopilot-item {
	background-color: #ffffff; /* Change background to white */
	border: 1px solid #e2e8f0; /* Keep a subtle border */
	border-radius: 4px; /* Add slight border radius to items */
	padding: 16px 20px; /* Adjust padding */
	margin-bottom: 12px; /* Adjust bottom margin slightly */
	transition: box-shadow 0.2s ease-in-out; /* Add transition for hover effect */
}

.active-autopilot-item:hover {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); /* Subtle box shadow on hover */
}

.autopilot-item-header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin-bottom: var(--space-xs);
	font-weight: var(--font-weight-medium);
}

.autopilot-item-actions {
	display: flex;
	gap: var(--space-sm);
	margin-top: var(--space-sm);
}

.autopilot-item-actions .action-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	padding: 0 var(--space-sm);
	height: 28px;
	font-size: var(--font-size-xs);
	border-radius: var(--radius-md);
	background-color: var(--color-surface-hover);
}

.autopilot-item-actions > .delete-btn {
	background-color: rgb(220, 53, 69);
	color: white;
	padding: 4px 12px;
	width: auto;
	height: auto;
}

.autopilot-item-actions > .delete-btn:hover{
	color: #ffa1a1;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.autopilot-item-actions > .view-btn {
	background-color: rgb(1, 54, 222);
	color: white;
	padding: 4px 12px;
	width: auto;
	height: auto;
}

.autopilot-item-actions > .view-btn:hover {
	color: var(--color-primary);
}


/* Review Summary */
.review-summary {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	padding: var(--space-lg);
	background-color: var(--color-surface);
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	margin-bottom: var(--space-lg);
}

.review-item {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	padding-bottom: var(--space-xs);
	border-bottom: 1px solid var(--color-border-light);
}

.review-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.review-label {
	flex: 0 0 220px;
	font-weight: var(--font-weight-semibold);
	color: var(--color-text-secondary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	height: 24px;
	line-height: 24px;
}

.review-value {
	flex: 1;
	min-width: 200px;
}

/* No Tasks Message */
.no-tasks-message {
	text-align: center;
	padding: var(--space-xl) 0;
	color: var(--color-text-secondary);
}

.no-tasks-message p {
	margin-bottom: var(--space-lg);
}

/* Active Tasks List in Main Content */
.active-tasks-list {
	margin: 0 auto; /* Center the list */
	max-width: 600px; /* Limit the width for better readability */
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add a subtle box shadow */
	border-radius: 8px; /* Add slight border radius */
	overflow: hidden; /* Hide overflowing content due to border radius */
}

.active-tasks-list h3 {
	text-align: center;
	margin-bottom: var(--space-lg);
	color: var(--color-text-primary);
	font-size: var(--font-size-xl);
}

.active-tasks-list .active-autopilot-item {
	margin-bottom: var(--space-md);
}

.add-new-task-button {
	display: inline-block; /* Make it inline-block for better control */
	/*background-color: #4f46e5; !* Professional primary color (example: indigo) *!*/
	color: #ffffff; /* White text color */
	padding: 10px 20px; /* Add padding */
	border-radius: 4px; /* Add border radius */
	text-decoration: none; /* Remove underline if it's an anchor tag */
	margin-top: 24px; /* Adjust top margin */
	font-weight: 600; /* Make text slightly bolder */
	border: none; /* Remove default border */
	cursor: pointer; /* Indicate it's clickable */
	transition: background-color 0.2s ease-in-out; /* Add transition */
}

.add-new-task-button:hover {
	/*background-color: #4338ca; !* Slightly darker shade on hover *!*/
}

.active-tasks-list .add-new-task-button {
	text-align: center;
	margin-top: var(--space-xl);
}

.active-tasks-list .button-medium {
	padding: 8px 16px;
	height: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
	.detail-label, .review-label {
		flex: 0 0 100%;
		/* Maintain one-line constraint even on mobile */
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		height: 24px;
		line-height: 24px;
	}

	.detail-value, .review-value {
		flex: 0 0 100%;
	}

	.seo-budget-row {
		flex-direction: column;
	}

	.seo-budget-smallbox {
		max-width: 100%;
	}

	.form-actions {
		flex-direction: column;
	}

	.form-actions button {
		width: 100%;
	}
}

/* Print Styles */
@media print {
	.plugin-container, .info-box {
		box-shadow: none !important;
		border: 1px solid #ddd !important;
	}

	.button, .action-btn, .floating-action-btn {
		display: none !important;
	}
}

/* Product Selection Styles */
.product-search-container {
	display: flex;
	margin-bottom: var(--space-md);
	position: relative;
}

.product-search-container input {
	flex: 1;
	padding-right: 80px;
}

.product-search-btn {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	width: 40px;
	background: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text-secondary);
	transition: color var(--transition-fast);
}

.product-search-btn:hover {
	color: var(--color-primary);
}

.product-reset-btn {
	position: absolute;
	right: 40px;
	top: 0;
	height: 100%;
	width: 40px;
	background: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text-secondary);
	transition: color var(--transition-fast);
}

.product-reset-btn:hover {
	color: var(--color-danger);
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: var(--space-md);
	margin-bottom: var(--space-lg);
	max-height: 400px;
	overflow-y: auto;
	padding: var(--space-sm);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background-color: var(--color-surface);
}

.product-item {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-sm);
	cursor: pointer;
	transition: all var(--transition-fast);
	background-color: var(--color-background);
	display: flex;
	flex-direction: column;
}

.product-item:hover {
	border-color: var(--color-primary-light);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.product-item.selected {
	border-color: var(--color-primary);
	background-color: rgba(67, 97, 238, 0.05);
}

.product-image {
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: var(--space-sm);
	overflow: hidden;
	border-radius: var(--radius-sm);
	background-color: var(--color-surface);
}

.product-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.no-image {
	color: var(--color-text-muted);
	font-size: var(--font-size-xs);
	text-align: center;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-surface-hover);
}

.product-info {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.product-name {
	font-weight: var(--font-weight-medium);
	font-size: var(--font-size-sm);
	margin-bottom: var(--space-xs);
	color: var(--color-text-primary);
	/* Limit to 2 lines with ellipsis */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.product-price {
	font-size: var(--font-size-xs);
	color: var(--color-text-secondary);
	margin-top: auto;
}

.no-products {
	grid-column: 1 / -1;
	text-align: center;
	padding: var(--space-lg);
	color: var(--color-text-muted);
	font-style: italic;
}

.pagination-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: var(--space-md) 0;
	gap: var(--space-md);
}

.pagination-btn {
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-xs) var(--space-md);
	cursor: pointer;
	font-size: var(--font-size-sm);
	transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
	background-color: var(--color-primary-light);
	color: var(--color-text-on-primary);
	border-color: var(--color-primary-light);
}

.pagination-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.pagination-info {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
}

/* Product Details Styles */
.product-details {
	margin-top: var(--space-lg);
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background-color: var(--color-surface);
}

.product-details h4 {
	margin-top: 0;
	margin-bottom: var(--space-md);
	color: var(--color-primary);
	font-size: var(--font-size-lg);
}

.product-detail-container {
	display: flex;
	gap: var(--space-lg);
}

.product-detail-image {
	width: 150px;
	height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: var(--radius-md);
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
}

.product-detail-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.product-detail-info {
	flex: 1;
}

.product-detail-item {
	margin-bottom: var(--space-sm);
	line-height: var(--line-height-relaxed);
}

.product-detail-item strong {
	font-weight: var(--font-weight-semibold);
	color: var(--color-text-primary);
	margin-right: var(--space-xs);
}

.product-detail-item a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.product-detail-item a:hover {
	color: var(--color-primary-dark);
	text-decoration: underline;
}

button.button.button-primary.button-large.add-new-btn {
	background-color: rgb(0, 123, 255); /* Or use the hex value #007bff */
	border-color: rgb(0, 123, 255);     /* Or use the hex value #007bff */
	padding: 8px 16px;
	font-size: 14px;
	/* Add other desired styles like color, border-radius, etc. */
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.product-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}

	.product-detail-container {
		flex-direction: column;
	}

	.product-detail-image {
		width: 100%;
		height: 200px;
		margin-bottom: var(--space-md);
	}
}

/* Enhanced review section styling */
.review-summary {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	padding: 24px;
	margin-bottom: 24px;
}
.review-item {
	display: flex;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f0;
}
.review-item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}
.review-label {
	font-weight: 600;
	color: #333;
	width: 180px;
	font-size: 14px;
}
.review-value {
	flex: 1;
	color: #555;
	font-size: 14px;
}
