/**
 * MCP Tools for Elementor — Admin Settings Styles
 *
 * @package Elementor_MCP
 * @since   1.0.0
 */

/* =========================================================================
 * CSS Custom Properties
 * ========================================================================= */

.elementor-mcp-admin {
	--mcp-primary: #6366f1;
	--mcp-primary-hover: #4f46e5;
	--mcp-primary-light: #eef2ff;
	--mcp-success: #10b981;
	--mcp-success-light: #ecfdf5;
	--mcp-danger: #ef4444;
	--mcp-danger-light: #fef2f2;
	--mcp-warning: #f59e0b;
	--mcp-pro: #8b5cf6;
	--mcp-pro-light: #f5f3ff;
	--mcp-gray-50: #f9fafb;
	--mcp-gray-100: #f3f4f6;
	--mcp-gray-200: #e5e7eb;
	--mcp-gray-300: #d1d5db;
	--mcp-gray-400: #9ca3af;
	--mcp-gray-500: #6b7280;
	--mcp-gray-600: #4b5563;
	--mcp-gray-700: #374151;
	--mcp-gray-800: #1f2937;
	--mcp-gray-900: #111827;
	--mcp-white: #ffffff;
	--mcp-radius: 10px;
	--mcp-radius-sm: 6px;
	--mcp-radius-lg: 14px;
	--mcp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--mcp-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
	--mcp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	--mcp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
	--mcp-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
 * Page Layout & Header
 * ========================================================================= */

.elementor-mcp-admin {
	max-width: 1280px;
	margin-right: 20px;
}

.elementor-mcp-admin > h1 {
	display: none;
}

.elementor-mcp-header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	margin: 20px 0 0;
	background: var(--mcp-white);
	border: 1px solid var(--mcp-gray-200);
	border-radius: var(--mcp-radius-lg) var(--mcp-radius-lg) 0 0;
	border-bottom: none;
}

.elementor-mcp-header-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: linear-gradient(135deg, var(--mcp-primary), #818cf8);
	border-radius: var(--mcp-radius);
	flex-shrink: 0;
}

.elementor-mcp-header-icon svg {
	width: 22px;
	height: 22px;
	fill: var(--mcp-white);
}

.elementor-mcp-header-info {
	flex: 1;
}

.elementor-mcp-header-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--mcp-gray-900);
	margin: 0;
	line-height: 1.3;
}

.elementor-mcp-header-version {
	font-size: 12px;
	font-weight: 500;
	color: var(--mcp-gray-400);
	margin-left: 8px;
}

.elementor-mcp-header-subtitle {
	font-size: 13px;
	color: var(--mcp-gray-500);
	margin: 2px 0 0;
}

.elementor-mcp-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	margin-left: auto;
}

.elementor-mcp-header-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 500;
	border-radius: var(--mcp-radius-sm);
	text-decoration: none;
	transition: all var(--mcp-transition);
	white-space: nowrap;
	line-height: 1.4;
}

.elementor-mcp-header-btn svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
	flex-shrink: 0;
}

.elementor-mcp-header-btn--secondary {
	background: var(--mcp-white);
	color: var(--mcp-gray-600);
	border: 1px solid var(--mcp-gray-300);
}

.elementor-mcp-header-btn--secondary:hover {
	background: var(--mcp-gray-50);
	border-color: var(--mcp-gray-400);
	color: var(--mcp-gray-700);
}

.elementor-mcp-header-btn--primary {
	background: var(--mcp-primary);
	color: var(--mcp-white);
	border: 1px solid var(--mcp-primary);
}

.elementor-mcp-header-btn--primary:hover {
	background: var(--mcp-primary-hover);
	border-color: var(--mcp-primary-hover);
	color: var(--mcp-white);
	box-shadow: var(--mcp-shadow-md);
}

/* =========================================================================
 * Stats Bar
 * ========================================================================= */

.elementor-mcp-stats {
	display: flex;
	gap: 12px;
	padding: 16px 24px;
	background: var(--mcp-gray-50);
	border: 1px solid var(--mcp-gray-200);
	border-top: none;
}

.elementor-mcp-stat {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	background: var(--mcp-white);
	border-radius: var(--mcp-radius-sm);
	border: 1px solid var(--mcp-gray-200);
	min-width: 0;
}

.elementor-mcp-stat-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	flex-shrink: 0;
}

.elementor-mcp-stat-icon--tools {
	background: var(--mcp-primary-light);
	color: var(--mcp-primary);
}

.elementor-mcp-stat-icon--active {
	background: var(--mcp-success-light);
	color: var(--mcp-success);
}

.elementor-mcp-stat-icon--pro {
	background: var(--mcp-pro-light);
	color: var(--mcp-pro);
}

.elementor-mcp-stat-icon--prompts {
	background: #fef3c7;
	color: var(--mcp-warning);
}

.elementor-mcp-stat-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.elementor-mcp-stat-content {
	min-width: 0;
}

.elementor-mcp-stat-value {
	font-size: 18px;
	font-weight: 700;
	color: var(--mcp-gray-900);
	line-height: 1.2;
}

.elementor-mcp-stat-label {
	font-size: 12px;
	color: var(--mcp-gray-500);
	white-space: nowrap;
}

/* =========================================================================
 * Tab Navigation
 * ========================================================================= */

.elementor-mcp-admin .nav-tab-wrapper {
	border: 1px solid var(--mcp-gray-200);
	border-top: none;
	border-bottom: 2px solid var(--mcp-gray-200);
	padding: 0 24px;
	margin: 0;
	background: var(--mcp-white);
	display: flex;
	gap: 0;
}

.elementor-mcp-admin .nav-tab {
	border: none;
	border-bottom: 2px solid transparent;
	margin: 0 0 -2px;
	padding: 12px 20px;
	font-size: 13px;
	font-weight: 500;
	color: var(--mcp-gray-500);
	background: transparent;
	transition: color var(--mcp-transition), border-color var(--mcp-transition);
}

.elementor-mcp-admin .nav-tab:hover {
	color: var(--mcp-gray-700);
	background: transparent;
}

.elementor-mcp-admin .nav-tab-active,
.elementor-mcp-admin .nav-tab-active:hover,
.elementor-mcp-admin .nav-tab-active:focus {
	color: var(--mcp-primary);
	border-bottom-color: var(--mcp-primary);
	background: transparent;
	box-shadow: none;
}

/* =========================================================================
 * Tab Content
 * ========================================================================= */

.elementor-mcp-admin .tab-content {
	margin-top: 0;
	padding: 24px;
	background: var(--mcp-white);
	border: 1px solid var(--mcp-gray-200);
	border-top: none;
	border-radius: 0 0 var(--mcp-radius-lg) var(--mcp-radius-lg);
}

/* =========================================================================
 * Bulk Actions
 * ========================================================================= */

.elementor-mcp-bulk-actions {
	margin: 0 0 24px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.elementor-mcp-bulk-actions .button {
	padding: 6px 16px;
	font-size: 13px;
	border-radius: var(--mcp-radius-sm);
	transition: all var(--mcp-transition);
}

.elementor-mcp-bulk-actions .elementor-mcp-bulk-save {
	margin-left: auto;
}

/* =========================================================================
 * Category Sections
 * ========================================================================= */

.elementor-mcp-category {
	margin-bottom: 28px;
}

.elementor-mcp-category:last-of-type {
	margin-bottom: 0;
}

.elementor-mcp-category-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--mcp-gray-200);
	font-size: 14px;
	font-weight: 600;
	color: var(--mcp-gray-800);
	margin-top: 0;
	margin-bottom: 0;
}

.elementor-mcp-category-count {
	color: var(--mcp-gray-400);
	font-weight: 500;
	font-size: 12px;
	background: var(--mcp-gray-100);
	padding: 2px 8px;
	border-radius: 10px;
}

.elementor-mcp-category-actions {
	margin-left: auto;
	font-size: 12px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 4px;
}

.elementor-mcp-category-actions .button-link {
	color: var(--mcp-primary);
	text-decoration: none;
	padding: 2px 6px;
	border-radius: 4px;
	transition: background var(--mcp-transition);
}

.elementor-mcp-category-actions .button-link:hover {
	background: var(--mcp-primary-light);
}

.elementor-mcp-separator {
	color: var(--mcp-gray-300);
	margin: 0;
}

/* =========================================================================
 * Tool Cards Grid
 * ========================================================================= */

.elementor-mcp-tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.elementor-mcp-tool-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	background: var(--mcp-white);
	border: 1px solid var(--mcp-gray-200);
	border-radius: var(--mcp-radius);
	cursor: pointer;
	transition: all var(--mcp-transition);
	position: relative;
}

.elementor-mcp-tool-card:hover {
	border-color: var(--mcp-primary);
	box-shadow: var(--mcp-shadow-sm);
}

.elementor-mcp-tool-card.is-enabled {
	background: var(--mcp-white);
	border-color: var(--mcp-gray-200);
}

.elementor-mcp-tool-card.is-disabled {
	background: var(--mcp-gray-50);
	opacity: 0.6;
}

.elementor-mcp-tool-card.is-disabled:hover {
	opacity: 0.85;
}

/* Hide the native checkbox */
.elementor-mcp-tool-card input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* =========================================================================
 * Toggle Switch
 * ========================================================================= */

.elementor-mcp-toggle {
	position: relative;
	width: 38px;
	height: 22px;
	flex-shrink: 0;
	margin-top: 1px;
}

.elementor-mcp-toggle-track {
	display: block;
	width: 38px;
	height: 22px;
	background: var(--mcp-gray-300);
	border-radius: 11px;
	transition: background var(--mcp-transition);
	position: relative;
}

.elementor-mcp-toggle-track::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	background: var(--mcp-white);
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	transition: transform var(--mcp-transition);
}

/* Enabled state */
.elementor-mcp-tool-card.is-enabled .elementor-mcp-toggle-track {
	background: var(--mcp-primary);
}

.elementor-mcp-tool-card.is-enabled .elementor-mcp-toggle-track::after {
	transform: translateX(16px);
}

/* Focus state for accessibility */
.elementor-mcp-tool-card input[type="checkbox"]:focus-visible ~ .elementor-mcp-toggle .elementor-mcp-toggle-track {
	box-shadow: 0 0 0 2px var(--mcp-white), 0 0 0 4px var(--mcp-primary);
}

/* =========================================================================
 * Tool Info
 * ========================================================================= */

.elementor-mcp-tool-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1;
}

.elementor-mcp-tool-name {
	font-weight: 600;
	font-size: 13px;
	color: var(--mcp-gray-800);
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	line-height: 1.4;
}

.elementor-mcp-tool-desc {
	color: var(--mcp-gray-500);
	font-size: 12px;
	line-height: 1.5;
}

.elementor-mcp-tool-slug {
	font-size: 11px;
	color: var(--mcp-gray-400);
	background: var(--mcp-gray-100);
	padding: 2px 7px;
	border-radius: 4px;
	display: inline-block;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* =========================================================================
 * Badges
 * ========================================================================= */

.elementor-mcp-badge {
	display: inline-flex;
	align-items: center;
	padding: 1px 7px;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.7;
}

.elementor-mcp-badge--read-only {
	background: #dbeafe;
	color: #1d4ed8;
}

.elementor-mcp-badge--destructive {
	background: var(--mcp-danger-light);
	color: var(--mcp-danger);
}

.elementor-mcp-badge--pro {
	background: var(--mcp-pro-light);
	color: var(--mcp-pro);
}

/* =========================================================================
 * Save Button
 * ========================================================================= */

.elementor-mcp-admin .submit {
	margin-top: 8px;
	padding: 0;
	border-top: 1px solid var(--mcp-gray-200);
	padding-top: 20px;
}

.elementor-mcp-admin .submit #submit {
	background: var(--mcp-primary);
	border-color: var(--mcp-primary);
	color: var(--mcp-white);
	padding: 8px 24px;
	font-size: 13px;
	font-weight: 500;
	border-radius: var(--mcp-radius-sm);
	transition: all var(--mcp-transition);
	text-shadow: none;
	box-shadow: none;
	height: auto;
	line-height: 1.5;
}

.elementor-mcp-admin .submit #submit:hover {
	background: var(--mcp-primary-hover);
	border-color: var(--mcp-primary-hover);
}

/* =========================================================================
 * Connection Page
 * ========================================================================= */

.elementor-mcp-connection {
	max-width: 860px;
}

.elementor-mcp-section {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--mcp-gray-200);
}

.elementor-mcp-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.elementor-mcp-section > h2 {
	font-size: 16px;
	font-weight: 600;
	color: var(--mcp-gray-800);
	margin: 0 0 8px;
}

.elementor-mcp-section > p.description {
	color: var(--mcp-gray-500);
	font-size: 13px;
	margin: 0 0 16px;
}

.elementor-mcp-section h3 {
	font-size: 14px;
	font-weight: 600;
	color: var(--mcp-gray-700);
	margin: 20px 0 8px;
}

.elementor-mcp-section h4 {
	font-size: 13px;
	font-weight: 600;
	color: var(--mcp-gray-700);
	margin: 20px 0 4px;
}

/* =========================================================================
 * Status Cards (Connection Tab)
 * ========================================================================= */

.elementor-mcp-status-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
	margin-bottom: 8px;
}

.elementor-mcp-status-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--mcp-gray-50);
	border: 1px solid var(--mcp-gray-200);
	border-radius: var(--mcp-radius);
}

.elementor-mcp-status-card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	flex-shrink: 0;
}

.elementor-mcp-status-card-icon--ok {
	background: var(--mcp-success-light);
	color: var(--mcp-success);
}

.elementor-mcp-status-card-icon--warn {
	background: var(--mcp-danger-light);
	color: var(--mcp-danger);
}

.elementor-mcp-status-card-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.elementor-mcp-status-card-info {
	min-width: 0;
}

.elementor-mcp-status-card-label {
	font-size: 12px;
	color: var(--mcp-gray-500);
}

.elementor-mcp-status-card-value {
	font-size: 13px;
	font-weight: 600;
	color: var(--mcp-gray-800);
}

/* Legacy status badges — still used in status table fallback */
.elementor-mcp-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
}

.elementor-mcp-status--active {
	background: var(--mcp-success-light);
	color: #059669;
}

.elementor-mcp-status--inactive {
	background: var(--mcp-danger-light);
	color: var(--mcp-danger);
}

/* =========================================================================
 * Endpoint URL
 * ========================================================================= */

.elementor-mcp-endpoint {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: var(--mcp-gray-50);
	border: 1px solid var(--mcp-gray-200);
	border-radius: var(--mcp-radius-sm);
	margin: 12px 0 0;
}

.elementor-mcp-endpoint code {
	font-size: 12px;
	color: var(--mcp-gray-700);
	background: none;
	padding: 0;
	word-break: break-all;
	flex: 1;
}

.elementor-mcp-endpoint .elementor-mcp-copy-btn {
	position: static;
	background: var(--mcp-white) !important;
	border: 1px solid var(--mcp-gray-300) !important;
	color: var(--mcp-gray-600) !important;
	font-size: 11px !important;
	padding: 3px 10px !important;
	min-height: auto !important;
	border-radius: 4px !important;
	flex-shrink: 0;
}

.elementor-mcp-endpoint .elementor-mcp-copy-btn:hover {
	background: var(--mcp-gray-100) !important;
	border-color: var(--mcp-gray-400) !important;
}

/* =========================================================================
 * Credential Form
 * ========================================================================= */

.elementor-mcp-cred-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 500px;
}

.elementor-mcp-cred-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.elementor-mcp-cred-field label {
	font-size: 13px;
	font-weight: 500;
	color: var(--mcp-gray-700);
}

.elementor-mcp-cred-field input {
	padding: 8px 12px;
	border: 1px solid var(--mcp-gray-300);
	border-radius: var(--mcp-radius-sm);
	font-size: 13px;
	transition: border-color var(--mcp-transition), box-shadow var(--mcp-transition);
	width: 100%;
	box-sizing: border-box;
}

.elementor-mcp-cred-field input:focus {
	border-color: var(--mcp-primary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
	outline: none;
}

.elementor-mcp-cred-field .description {
	font-size: 12px;
	color: var(--mcp-gray-400);
	margin: 0;
}

.elementor-mcp-generate-btn {
	align-self: flex-start;
	background: var(--mcp-primary) !important;
	border-color: var(--mcp-primary) !important;
	color: var(--mcp-white) !important;
	padding: 8px 20px !important;
	border-radius: var(--mcp-radius-sm) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	transition: all var(--mcp-transition) !important;
	text-shadow: none !important;
	box-shadow: none !important;
	height: auto !important;
	line-height: 1.5 !important;
}

.elementor-mcp-generate-btn:hover {
	background: var(--mcp-primary-hover) !important;
	border-color: var(--mcp-primary-hover) !important;
}

/* Auth result */
.elementor-mcp-auth-result {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: var(--mcp-success-light);
	border: 1px solid #a7f3d0;
	border-radius: var(--mcp-radius-sm);
	margin-top: 4px;
}

.elementor-mcp-auth-result code {
	font-size: 12px;
	color: var(--mcp-gray-700);
	background: none;
	word-break: break-all;
	flex: 1;
}

.elementor-mcp-auth-result .elementor-mcp-copy-btn {
	position: static;
	background: var(--mcp-white) !important;
	border: 1px solid #a7f3d0 !important;
	color: #059669 !important;
	font-size: 11px !important;
	padding: 3px 10px !important;
	min-height: auto !important;
	border-radius: 4px !important;
	flex-shrink: 0;
}

/* =========================================================================
 * Config Code Blocks
 * ========================================================================= */

.elementor-mcp-config-card {
	margin: 12px 0 20px;
	border: 1px solid var(--mcp-gray-200);
	border-radius: var(--mcp-radius);
	overflow: hidden;
}

.elementor-mcp-config-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: var(--mcp-gray-50);
	border-bottom: 1px solid var(--mcp-gray-200);
}

.elementor-mcp-config-card-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--mcp-gray-700);
}

.elementor-mcp-config-card-header .elementor-mcp-copy-btn {
	position: static;
	background: var(--mcp-white) !important;
	border: 1px solid var(--mcp-gray-300) !important;
	color: var(--mcp-gray-600) !important;
	font-size: 11px !important;
	padding: 3px 12px !important;
	min-height: auto !important;
	border-radius: 4px !important;
}

.elementor-mcp-config-card-header .elementor-mcp-copy-btn:hover {
	background: var(--mcp-gray-100) !important;
	border-color: var(--mcp-gray-400) !important;
}

.elementor-mcp-config-card pre {
	margin: 0;
	padding: 14px 16px;
	background: var(--mcp-gray-900);
	color: #e2e8f0;
	font-size: 12px;
	line-height: 1.6;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-all;
}

.elementor-mcp-config-card code {
	background: none;
	color: inherit;
	font-size: inherit;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Legacy code block style — kept for backward compat */
.elementor-mcp-code-block {
	position: relative;
	margin: 8px 0 16px;
}

.elementor-mcp-code-block pre {
	background: var(--mcp-gray-900);
	color: #e2e8f0;
	padding: 14px 16px;
	border-radius: var(--mcp-radius-sm);
	overflow-x: auto;
	margin: 0;
	font-size: 12px;
	line-height: 1.6;
	white-space: pre-wrap;
	word-break: break-all;
}

.elementor-mcp-code-block code {
	background: none;
	color: inherit;
	font-size: inherit;
}

/* Copy button — generic */
.elementor-mcp-copy-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 11px !important;
	padding: 3px 10px !important;
	min-height: 24px !important;
	background: rgba(255, 255, 255, 0.1) !important;
	border-color: rgba(255, 255, 255, 0.2) !important;
	color: #e2e8f0 !important;
	border-radius: 4px !important;
	cursor: pointer;
	transition: all var(--mcp-transition) !important;
}

.elementor-mcp-copy-btn:hover {
	background: rgba(255, 255, 255, 0.2) !important;
	border-color: rgba(255, 255, 255, 0.3) !important;
	color: #fff !important;
}

/* Hidden textarea for copy source */
.elementor-mcp-copy-source {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* =========================================================================
 * Tools Summary (beneath bulk actions)
 * ========================================================================= */

.elementor-mcp-tools-summary {
	font-size: 13px;
	color: var(--mcp-gray-500);
	margin: 0 0 16px;
}

.elementor-mcp-tools-summary strong {
	color: var(--mcp-gray-700);
}

/* =========================================================================
 * Low-tools mode card
 * ========================================================================= */

.elementor-mcp-low-mode-card {
	border: 1px solid var(--mcp-gray-200);
	border-radius: var(--mcp-radius-md, 8px);
	background: #fff;
	padding: 14px 18px;
	margin: 0 0 20px;
	transition: all var(--mcp-transition);
}

.elementor-mcp-low-mode-card:has(input[type="checkbox"]:checked) {
	border-color: var(--mcp-primary, #4f46e5);
	background: rgba(79, 70, 229, 0.04);
}

.elementor-mcp-low-mode-toggle {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	cursor: pointer;
}

.elementor-mcp-low-mode-toggle input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* Drive the toggle pill from the checkbox sibling state. */
.elementor-mcp-low-mode-toggle input[type="checkbox"]:checked + .elementor-mcp-toggle .elementor-mcp-toggle-track {
	background: var(--mcp-primary);
}

.elementor-mcp-low-mode-toggle input[type="checkbox"]:checked + .elementor-mcp-toggle .elementor-mcp-toggle-track::after {
	transform: translateX(16px);
}

.elementor-mcp-low-mode-toggle input[type="checkbox"]:focus-visible + .elementor-mcp-toggle .elementor-mcp-toggle-track {
	box-shadow: 0 0 0 2px var(--mcp-white), 0 0 0 4px var(--mcp-primary);
}

.elementor-mcp-low-mode-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.elementor-mcp-low-mode-title {
	font-weight: 600;
	font-size: 14px;
	color: var(--mcp-gray-700);
}

.elementor-mcp-low-mode-desc {
	font-size: 13px;
	line-height: 1.5;
	color: var(--mcp-gray-500);
}

/* =========================================================================
 * Freemius pricing screen — branded wrapper
 * ========================================================================= */

.elementor-mcp-pricing-chrome {
	max-width: 1200px;
	margin: 20px auto;
	padding: 0 20px;
}

.elementor-mcp-pricing-header {
	margin-bottom: 24px;
}

.elementor-mcp-pricing-highlights {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 12px 20px;
	margin: 0 0 24px;
	padding: 18px 22px;
	background: #fff;
	border: 1px solid var(--mcp-gray-200);
	border-radius: var(--mcp-radius-md, 8px);
	list-style: none;
}

.elementor-mcp-pricing-highlights li {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--mcp-gray-700, #374151);
}

.elementor-mcp-pricing-highlights strong {
	color: var(--mcp-gray-700, #374151);
}

.elementor-mcp-pricing-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--mcp-primary, #4f46e5);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	vertical-align: -3px;
}

#fs_pricing.wrap {
	max-width: 1200px;
	margin: 0 auto;
}

.elementor-mcp-pricing-footer {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--mcp-gray-200);
}

.elementor-mcp-pricing-footer-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 16px;
	color: var(--mcp-gray-700, #374151);
}

.elementor-mcp-pricing-faq {
	display: grid;
	gap: 10px;
	margin-bottom: 20px;
}

.elementor-mcp-pricing-faq details {
	background: #fff;
	border: 1px solid var(--mcp-gray-200);
	border-radius: var(--mcp-radius-md, 8px);
	padding: 14px 18px;
}

.elementor-mcp-pricing-faq summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: var(--mcp-gray-700, #374151);
	list-style: none;
	position: relative;
	padding-right: 24px;
}

.elementor-mcp-pricing-faq summary::-webkit-details-marker {
	display: none;
}

.elementor-mcp-pricing-faq summary::after {
	content: '+';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 18px;
	font-weight: 400;
	color: var(--mcp-gray-500);
	transition: transform var(--mcp-transition);
}

.elementor-mcp-pricing-faq details[open] summary::after {
	content: '\2212';
}

.elementor-mcp-pricing-faq details p {
	margin: 10px 0 0;
	color: var(--mcp-gray-500);
	font-size: 13.5px;
	line-height: 1.6;
}

.elementor-mcp-pricing-contact {
	text-align: center;
	font-size: 13.5px;
	color: var(--mcp-gray-500);
	margin: 0;
	padding: 12px 0;
}

.elementor-mcp-pricing-contact a {
	color: var(--mcp-primary, #4f46e5);
	font-weight: 600;
	text-decoration: none;
}

.elementor-mcp-pricing-contact a:hover {
	text-decoration: underline;
}

/* =========================================================================
 * Prompts Tab
 * ========================================================================= */

.elementor-mcp-prompts-intro {
	margin-bottom: 24px;
}

.elementor-mcp-prompts-intro h2 {
	font-size: 16px;
	font-weight: 600;
	color: var(--mcp-gray-800);
	margin: 0 0 6px;
}

.elementor-mcp-prompts-intro .description {
	color: var(--mcp-gray-500);
	font-size: 13px;
	margin: 0;
	max-width: 680px;
}

.elementor-mcp-prompts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 28px;
}

.elementor-mcp-prompt-card {
	position: relative;
	padding: 20px;
	background: var(--mcp-white);
	border: 1px solid var(--mcp-gray-200);
	border-radius: var(--mcp-radius);
	transition: all var(--mcp-transition);
	display: flex;
	flex-direction: column;
}

.elementor-mcp-prompt-card:hover {
	border-color: var(--mcp-primary);
	box-shadow: var(--mcp-shadow-md);
	transform: translateY(-2px);
}

.elementor-mcp-prompt-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.elementor-mcp-prompt-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--mcp-gray-800);
	margin: 0;
}

.elementor-mcp-prompt-tag {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 500;
	background: var(--mcp-primary-light);
	color: var(--mcp-primary);
	white-space: nowrap;
	flex-shrink: 0;
}

.elementor-mcp-prompt-desc {
	color: var(--mcp-gray-500);
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 16px;
	flex: 1;
}

.elementor-mcp-prompt-actions {
	display: flex;
	align-items: center;
}

.elementor-mcp-prompt-actions .elementor-mcp-copy-btn {
	position: static;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--mcp-gray-50) !important;
	border: 1px solid var(--mcp-gray-300) !important;
	color: var(--mcp-gray-600) !important;
	font-size: 12px !important;
	padding: 6px 14px !important;
	min-height: auto !important;
	border-radius: var(--mcp-radius-sm) !important;
	font-weight: 500;
}

.elementor-mcp-prompt-actions .elementor-mcp-copy-btn:hover {
	background: var(--mcp-primary-light) !important;
	border-color: var(--mcp-primary) !important;
	color: var(--mcp-primary) !important;
}

.elementor-mcp-prompt-actions .elementor-mcp-copy-btn svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
	flex-shrink: 0;
}

/* Prompts CTA Banner */
.elementor-mcp-prompts-cta {
	background: linear-gradient(135deg, var(--mcp-primary), #818cf8);
	border-radius: var(--mcp-radius);
	padding: 32px;
	text-align: center;
}

.elementor-mcp-prompts-cta-content h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--mcp-white);
	margin: 0 0 8px;
}

.elementor-mcp-prompts-cta-content p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	margin: 0 0 20px;
	max-width: 540px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.5;
}

.elementor-mcp-prompts-cta-btn.button.button-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--mcp-white) !important;
	color: var(--mcp-primary) !important;
	border: none !important;
	padding: 10px 24px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	border-radius: var(--mcp-radius-sm) !important;
	text-decoration: none;
	transition: all var(--mcp-transition) !important;
	box-shadow: var(--mcp-shadow) !important;
	text-shadow: none !important;
}

.elementor-mcp-prompts-cta-btn.button.button-primary:hover {
	background: var(--mcp-gray-50) !important;
	box-shadow: var(--mcp-shadow-lg) !important;
	transform: translateY(-1px);
}

.elementor-mcp-prompts-cta-btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
	flex-shrink: 0;
}

/* =========================================================================
 * Changelog Tab
 * ========================================================================= */

.elementor-mcp-changelog-intro {
	margin-bottom: 24px;
}

.elementor-mcp-changelog-intro h2 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	color: var(--mcp-gray-900);
}

.elementor-mcp-changelog-intro .description {
	color: var(--mcp-gray-500);
	font-size: 14px;
	margin: 0;
}

.elementor-mcp-changelog-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.elementor-mcp-changelog-version {
	background: var(--mcp-white);
	border: 1px solid var(--mcp-gray-200);
	border-radius: var(--mcp-radius-lg);
	padding: 20px 24px;
	transition: border-color var(--mcp-transition);
}

.elementor-mcp-changelog-version:hover {
	border-color: var(--mcp-gray-300);
}

.elementor-mcp-changelog-version.is-latest {
	border-color: var(--mcp-primary);
	border-width: 2px;
}

.elementor-mcp-changelog-version-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.elementor-mcp-changelog-version-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--mcp-gray-900);
}

.elementor-mcp-changelog-badge {
	display: inline-block;
	padding: 2px 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--mcp-white);
	background: var(--mcp-primary);
	border-radius: 99px;
}

.elementor-mcp-changelog-items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.elementor-mcp-changelog-items li {
	position: relative;
	padding: 6px 0 6px 20px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--mcp-gray-700);
	border-bottom: 1px solid var(--mcp-gray-100);
}

.elementor-mcp-changelog-items li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.elementor-mcp-changelog-items li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--mcp-gray-300);
}

.elementor-mcp-changelog-items li strong {
	color: var(--mcp-gray-900);
}

.elementor-mcp-changelog-items li code {
	padding: 1px 6px;
	font-size: 12px;
	background: var(--mcp-gray-50);
	border: 1px solid var(--mcp-gray-200);
	border-radius: 3px;
	font-family: monospace;
}

/* =========================================================================
 * Responsive
 * ========================================================================= */

@media screen and (max-width: 960px) {
	.elementor-mcp-stats {
		flex-wrap: wrap;
	}

	.elementor-mcp-stat {
		flex: 1 1 140px;
	}

	.elementor-mcp-header {
		flex-wrap: wrap;
	}

	.elementor-mcp-header-actions {
		width: 100%;
		margin-left: 0;
		margin-top: 4px;
	}

	.elementor-mcp-prompts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 782px) {
	.elementor-mcp-admin {
		margin-right: 10px;
	}

	.elementor-mcp-header {
		padding: 16px;
	}

	.elementor-mcp-header-btn {
		padding: 6px 12px;
		font-size: 12px;
	}

	.elementor-mcp-stats {
		flex-direction: column;
		padding: 12px 16px;
	}

	.elementor-mcp-stat {
		flex: 1 1 auto;
	}

	.elementor-mcp-admin .nav-tab-wrapper {
		padding: 0 16px;
	}

	.elementor-mcp-admin .tab-content {
		padding: 16px;
	}

	.elementor-mcp-tools-grid {
		grid-template-columns: 1fr;
	}

	.elementor-mcp-category-header {
		flex-wrap: wrap;
	}

	.elementor-mcp-category-actions {
		margin-left: 0;
		width: 100%;
	}

	.elementor-mcp-status-grid {
		grid-template-columns: 1fr;
	}

	.elementor-mcp-prompts-grid {
		grid-template-columns: 1fr;
	}

	.elementor-mcp-prompts-cta {
		padding: 24px 16px;
	}

	.elementor-mcp-changelog-version {
		padding: 16px;
	}
}
