/**
 * CacheLoop Admin Styles
 *
 * Uses native WordPress color variables where possible for seamless
 * integration with both light and dark admin themes.
 *
 * @package CacheLoop
 */

/* =========================================================
	1. GOOGLE FONTS IMPORT
	========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =========================================================
	2. CSS CUSTOM PROPERTIES
	========================================================= */
:root {
	--cl-font-family:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	/* Brand colours */
	--cl-accent:           #6366f1;   /* Indigo */
	--cl-accent-dark:      #4f46e5;
	--cl-accent-light:     #eef2ff;
	--cl-pro-gold:         #f59e0b;
	--cl-pro-gold-light:   #fef3c7;

	/* Neutrals */
	--cl-surface:          #ffffff;
	--cl-surface-2:        #f8fafc;
	--cl-border:           #e2e8f0;
	--cl-text:             #1e293b;
	--cl-text-muted:       #64748b;

	/* Feedback */
	--cl-success:          #10b981;
	--cl-error:            #ef4444;

	/* Spacing */
	--cl-radius:           12px;
	--cl-radius-sm:        8px;
	--cl-shadow:           0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
	--cl-shadow-hover:     0 4px 12px rgba(99, 102, 241, 0.15), 0 8px 32px rgba(0, 0, 0, 0.08);

	/* Toggle */
	--cl-toggle-w:         52px;
	--cl-toggle-h:         28px;
	--cl-toggle-knob:      22px;

	/* Transitions */
	--cl-transition:       0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
	3. RESET & BASE
	========================================================= */
.cl-wrap *,
.cl-wrap *::before,
.cl-wrap *::after {
	box-sizing: border-box;
}

.cl-wrap {
	font-family: var(--cl-font-family);
	color: var(--cl-text);
	max-width: 1100px;
	padding-bottom: 20px;
}

/* =========================================================
	4. HEADER
	========================================================= */
.cl-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 20px 0 24px;
	padding: 20px 24px;
	background: linear-gradient(135deg, var(--cl-accent) 0%, var(--cl-accent-dark) 100%);
	border-radius: var(--cl-radius);
	color: #fff;
	box-shadow: var(--cl-shadow);
}

.cl-header__logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cl-header__icon {
	font-size: 28px !important;
	color: rgba(255, 255, 255, 0.9);
}

.cl-header__title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	color: #fff !important;
	border-bottom: none !important;
	line-height: 1 !important;
}

.cl-header__meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* =========================================================
	5. BADGES
	========================================================= */
.cl-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 99px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cl-badge--version {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.cl-badge--pro {
	background: var(--cl-pro-gold);
	color: #1e293b;
}

/* =========================================================
	6. STATUS BAR
	========================================================= */
.cl-status-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: var(--cl-radius-sm);
	margin-bottom: 28px;
	gap: 16px;
	flex-wrap: wrap;
}

.cl-status-bar__message {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: #166534;
	display: flex;
	align-items: center;
	gap: 6px;
}

.cl-status-bar__message .dashicons {
	color: var(--cl-success);
	font-size: 18px !important;
	width: 18px;
	height: 18px;
}

/* =========================================================
	7. SECTIONS
	========================================================= */
.cl-section {
	margin-bottom: 36px;
}

.cl-section__title {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: var(--cl-text) !important;
	margin: 0 0 4px !important;
	padding: 0 !important;
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: none !important;
}

.cl-section__desc {
	margin: 0 0 16px !important;
	font-size: 13px;
	color: var(--cl-text-muted);
}

.cl-section--pro .cl-section__title {
	color: var(--cl-text) !important;
}

/* =========================================================
	8. CARDS GRID
	========================================================= */
.cl-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

/* =========================================================
	9. SINGLE CARD
	========================================================= */
.cl-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 22px;
	background: var(--cl-surface);
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius);
	box-shadow: var(--cl-shadow);
	transition:
		box-shadow var(--cl-transition),
		border-color var(--cl-transition),
		transform var(--cl-transition);
}

.cl-card:hover {
	box-shadow: var(--cl-shadow-hover);
	border-color: var(--cl-accent);
	transform: translateY(-1px);
}

.cl-card--locked {
	background: var(--cl-surface-2);
	opacity: 0.75;
}

.cl-card--locked:hover {
	border-color: var(--cl-pro-gold);
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
	transform: translateY(-1px);
}

.cl-card__content {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	flex: 1;
	min-width: 0;
}

.cl-card__icon {
	font-size: 24px;
	line-height: 1;
	flex-shrink: 0;
	margin-top: 1px;
}

.cl-card__text {
	flex: 1;
	min-width: 0;
}

.cl-card__title {
	margin: 0 0 4px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: var(--cl-text) !important;
	display: flex;
	align-items: center;
	gap: 6px;
}

.cl-card__desc {
	margin: 0 !important;
	font-size: 12.5px;
	color: var(--cl-text-muted);
	line-height: 1.5;
}

.cl-lock-icon {
	font-size: 13px;
	opacity: 0.7;
}

/* Cards with extra content below the icon/title/toggle row (host+port
   fields, safelist textareas, etc.) — .cl-card is nowrap-row by default
   (one .cl-card__content + one .cl-card__action side by side), so anything
   beyond that pair needs a column layout instead or it gets squeezed onto
   the same row. */
.cl-card--expandable {
	flex-direction: column;
	align-items: stretch;
}

.cl-card--expandable .cl-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
}

.cl-card__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

/* Card action placeholder (select, buttons, etc.) */
.cl-card__action {
	flex-shrink: 0;
}

.cl-card__action select {
	padding: 6px 12px;
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius);
	background: var(--cl-surface-2);
	color: var(--cl-text);
	font-size: 13px;
	line-height: 1.5;
	cursor: pointer;
	transition: border-color var(--cl-transition);
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	padding-right: 28px;
}

.cl-card__action select:hover {
	border-color: var(--cl-accent);
}

.cl-card__action select:focus {
	outline: none;
	border-color: var(--cl-accent);
	box-shadow: 0 0 0 2px var(--cl-accent-light);
}

/* =========================================================
	10. TOGGLE SWITCH
	========================================================= */
.cl-toggle {
	position: relative;
	display: inline-block;
	width: var(--cl-toggle-w);
	height: var(--cl-toggle-h);
	flex-shrink: 0;
	cursor: pointer;
}

.cl-toggle input[type="checkbox"] {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.cl-toggle__slider {
	position: absolute;
	inset: 0;
	background: #cbd5e1;
	border-radius: 99px;
	transition: background var(--cl-transition);
}

.cl-toggle__slider::before {
	content: '';
	position: absolute;
	left: 3px;
	top: 50%;
	transform: translateY(-50%);
	width: var(--cl-toggle-knob);
	height: var(--cl-toggle-knob);
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	transition:
		left var(--cl-transition),
		box-shadow var(--cl-transition);
}

.cl-toggle input[type="checkbox"]:checked + .cl-toggle__slider {
	background: var(--cl-accent);
}

.cl-toggle input[type="checkbox"]:checked + .cl-toggle__slider::before {
	left: calc(var(--cl-toggle-w) - var(--cl-toggle-knob) - 3px);
	box-shadow: 0 1px 6px rgba(99, 102, 241, 0.4);
}

.cl-toggle input[type="checkbox"]:focus-visible + .cl-toggle__slider {
	outline: 3px solid rgba(99, 102, 241, 0.4);
	outline-offset: 2px;
}

.cl-toggle--disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.cl-toggle--disabled .cl-toggle__slider {
	background: #e2e8f0;
}

.cl-pro-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	border-radius: 999px;
	white-space: nowrap;
}

.cl-pro-badge:hover,
.cl-pro-badge:focus {
	color: #fff;
	opacity: 0.9;
}

.cl-pro-teaser {
	margin-top: 24px;
	padding: 28px;
	background: linear-gradient(135deg, var(--cl-pro-gold-light) 0%, #fff7ed 100%);
	border: 1px solid #fde68a;
	border-radius: var(--cl-radius);
	box-shadow: var(--cl-shadow);
}

.cl-pro-teaser__badge {
	display: inline-block;
	margin: 0 0 10px !important;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #92400e;
	background: #fef3c7;
	border-radius: 999px;
}

.cl-pro-teaser__title {
	margin: 0 0 6px !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	color: var(--cl-text) !important;
}

.cl-pro-teaser__accent {
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.cl-pro-teaser__subtitle {
	margin: 0 0 18px !important;
	font-size: 13px;
	color: var(--cl-text-muted);
	max-width: 560px;
}

.cl-pro-teaser__list {
	list-style: none;
	margin: 0 0 22px !important;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 10px 24px;
}

.cl-pro-teaser__list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: var(--cl-text);
	line-height: 1.5;
}

.cl-pro-teaser__list .dashicons-yes-alt {
	color: #16a34a;
	flex-shrink: 0;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.cl-pro-strip {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	margin-bottom: 20px;
	background: linear-gradient(135deg, var(--cl-pro-gold-light) 0%, #fff7ed 100%);
	border: 1px solid #fde68a;
	border-radius: var(--cl-radius-sm);
	font-size: 13px;
}

.cl-pro-strip__icon {
	color: #d97706;
	flex-shrink: 0;
}

.cl-pro-strip__text {
	color: var(--cl-text);
	flex-grow: 1;
}

.cl-pro-strip__link {
	flex-shrink: 0;
	font-weight: 700;
	color: #b45309;
	text-decoration: none;
	white-space: nowrap;
}

.cl-pro-strip__link:hover,
.cl-pro-strip__link:focus {
	text-decoration: underline;
}

.cl-pro-teaser__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.cl-pro-teaser__cta {
	font-weight: 700 !important;
}

/* =========================================================
	11. UPGRADE BANNER
	========================================================= */
.cl-upgrade-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding: 22px 26px;
	background: linear-gradient(135deg, var(--cl-pro-gold-light) 0%, #fff7ed 100%);
	border: 1px solid #fde68a;
	border-radius: var(--cl-radius);
	margin-bottom: 28px;
	box-shadow: var(--cl-shadow);
}

.cl-upgrade-banner__content {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.cl-upgrade-banner__icon {
	font-size: 32px;
	flex-shrink: 0;
	line-height: 1;
}

.cl-upgrade-banner__title {
	margin: 0 0 4px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	color: var(--cl-text) !important;
}

.cl-upgrade-banner__desc {
	margin: 0 !important;
	font-size: 13px;
	color: var(--cl-text-muted);
}

.cl-upgrade-banner__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* =========================================================
	12. BUTTONS
	========================================================= */
.cl-btn {
	font-family: var(--cl-font-family) !important;
	font-weight: 600 !important;
	border-radius: var(--cl-radius-sm) !important;
	cursor: pointer;
	transition:
		background var(--cl-transition),
		box-shadow var(--cl-transition),
		transform var(--cl-transition) !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
}

.cl-btn:active {
	transform: scale(0.97);
}

.cl-btn--primary {
	background: var(--cl-accent) !important;
	border-color: var(--cl-accent-dark) !important;
	color: #fff !important;
}

.cl-btn--primary:hover,
.cl-btn--primary:focus {
	background: var(--cl-accent-dark) !important;
	border-color: var(--cl-accent-dark) !important;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
	color: #fff !important;
}

.cl-btn--secondary {
	background: #fff !important;
	border: 1px solid var(--cl-border) !important;
	color: var(--cl-text) !important;
}

.cl-btn--secondary:hover,
.cl-btn--secondary:focus {
	border-color: var(--cl-accent) !important;
	color: var(--cl-accent) !important;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.cl-btn--secondary .dashicons {
	font-size: 16px !important;
	width: 16px;
	height: 16px;
}

.cl-btn--small {
	font-size: 12px !important;
	padding: 4px 12px !important;
	height: auto !important;
	line-height: 1.5 !important;
}

/* =========================================================
	13. LINKS
	========================================================= */
.cl-link {
	color: var(--cl-accent);
	font-weight: 500;
	text-decoration: none;
}

.cl-link:hover {
	color: var(--cl-accent-dark);
	text-decoration: underline;
}

/* =========================================================
	14. FORM FOOTER
	========================================================= */
.cl-form-footer {
	margin-top: 8px;
}

/* =========================================================
	15. TOAST NOTIFICATION
	========================================================= */
.cl-toast {
	position: fixed;
	bottom: 32px;
	right: 32px;
	background: var(--cl-text);
	color: #fff;
	padding: 12px 20px;
	border-radius: var(--cl-radius-sm);
	font-size: 13.5px;
	font-weight: 500;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	z-index: 9999;
	opacity: 0;
	transform: translateY(12px);
	transition:
		opacity 0.25s ease,
		transform 0.25s ease;
	pointer-events: none;
	max-width: 320px;
}

.cl-toast.cl-toast--visible {
	opacity: 1;
	transform: translateY(0);
}

.cl-toast.cl-toast--success {
	background: var(--cl-success);
}

.cl-toast.cl-toast--error {
	background: var(--cl-error);
}

/* =========================================================
	16. LOADING SPINNER (used inside buttons)
	========================================================= */
@keyframes cl-spin {
	to { transform: rotate(360deg); }
}

.cl-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: cl-spin 0.7s linear infinite;
	vertical-align: middle;
	margin-right: 6px;
}

/* =========================================================
	17. RESPONSIVE
	========================================================= */
@media (max-width: 720px) {
	.cl-cards {
		grid-template-columns: 1fr;
	}

	.cl-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.cl-upgrade-banner {
		flex-direction: column;
		align-items: flex-start;
	}

	.cl-toast {
		bottom: 16px;
		right: 16px;
		left: 16px;
		max-width: none;
	}
}

/* =========================================================
	18. TAB LAYOUT
	========================================================= */
.cl-tab-content {
	background: #fff;
	border: 1px solid #ccd0d4;
	padding: 20px 30px;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.cl-tab-pane {
	animation: cl-fade-in 0.3s ease;
}

@keyframes cl-fade-in {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
	19. ADMIN LAYOUT & SIDEBAR
	========================================================= */
.cl-admin-layout {
	display: flex;
	gap: 30px;
	align-items: flex-start;
	margin-top: 20px;
}

.cl-admin-sidebar {
	flex: 0 0 240px;
	background: #fff;
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius);
	padding: 12px 0;
	box-shadow: var(--cl-shadow);
	position: sticky;
	top: 40px;
}

.cl-sidebar-brand {
	padding: 4px 20px 14px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--cl-border);
	font-size: 13px;
	font-weight: 600;
	color: var(--cl-text-muted);
}

.cl-sidebar-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cl-sidebar-menu li {
	margin: 0;
}

.cl-nav-tab {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	color: var(--cl-text-muted);
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	transition: var(--cl-transition);
	border-left: 3px solid transparent;
}

.cl-nav-tab:hover, .cl-nav-tab:focus {
	color: var(--cl-text);
	background: var(--cl-surface-2);
	box-shadow: none;
	outline: none;
}

.cl-nav-tab.active {
	color: var(--cl-accent-dark);
	background: var(--cl-accent-light);
	border-left-color: var(--cl-accent);
}

.cl-nav-tab .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.cl-admin-main {
	flex: 1;
	min-width: 0; /* prevent flex overflow */
}

/* Override old tab content style */
.cl-tab-content {
	background: transparent;
	border: none;
	padding: 0;
	box-shadow: none;
}

/* =========================================================
	20. DASHBOARD WIDGETS
	========================================================= */
.cl-dashboard-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

.cl-widget {
	background: #fff;
	border: 1px solid var(--cl-border);
	border-radius: var(--cl-radius);
	padding: 24px;
	box-shadow: var(--cl-shadow);
}

.cl-widget__title {
	margin: 0 0 20px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: var(--cl-text);
	display: flex;
	align-items: center;
	gap: 8px;
}

.cl-widget__content {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Stats Widget */
.cl-stat-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: var(--cl-surface-2);
	border-radius: var(--cl-radius-sm);
	border: 1px solid var(--cl-border);
}

.cl-stat-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--cl-text-muted);
}

.cl-stat-value {
	font-size: 16px;
	font-weight: 700;
	color: var(--cl-text);
}

/* Speed Widget */
.cl-widget--speed .cl-widget__content {
	flex-direction: row;
	align-items: center;
	gap: 24px;
}

.cl-score-circle {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #10b981; /* green */
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
	flex-shrink: 0;
}

.cl-score-value {
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
}

.cl-score-label {
	font-size: 10px;
	font-weight: 500;
	opacity: 0.9;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-top: 2px;
}

.cl-speed-metrics {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 12px;
}

.cl-speed-metric {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cl-speed-metric .cl-label {
	font-size: 11px;
	color: var(--cl-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
}

.cl-speed-metric strong {
	font-size: 16px;
	color: var(--cl-text);
	font-weight: 600;
	line-height: 1;
}

/* Responsive */
@media (max-width: 782px) {
	.cl-admin-layout {
		flex-direction: column;
	}

	.cl-admin-sidebar {
		flex: none;
		width: 100%;
		position: static;
		padding: 8px;
	}

	.cl-sidebar-menu {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
	}

	.cl-nav-tab {
		border-left: none;
		padding: 10px 12px;
		border-radius: 4px;
	}

	.cl-nav-tab.active {
		border-left: none;
	}

	.cl-widget--speed .cl-widget__content {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.cl-score-circle {
		margin: 0 auto;
	}
}

/* =========================================================
	21. PRO ANALYSIS WIDGET
	========================================================= */
.cl-widget--analysis {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
}

.cl-pro-tips-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cl-pro-tip {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 16px;
	border-radius: var(--cl-radius-sm);
	background: var(--cl-surface);
	border-left: 4px solid transparent;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cl-pro-tip--error {
	border-left-color: var(--cl-error);
	color: #991b1b;
}

.cl-pro-tip--warning {
	border-left-color: #f59e0b;
	color: #b45309;
}

.cl-pro-tip--success {
	border-left-color: var(--cl-success);
	color: #166534;
}

.cl-pro-tip--info {
	border-left-color: var(--cl-accent);
	color: var(--cl-text-muted);
}

.cl-pro-tip-content strong {
	font-weight: 600;
}

.cl-flag-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.6;
	color: #b45309;
	background: #fef3c7;
	border-radius: 3px;
	white-space: nowrap;
}

.cl-widget--analysis-locked {
	background: #f1f5f9;
	border: 1px dashed #cbd5e1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	text-align: center;
}

.cl-locked-content {
	max-width: 400px;
}

.cl-locked-icon {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: #94a3b8;
	margin-bottom: 16px;
}

.cl-locked-title {
	margin: 0 0 8px !important;
	color: #475569 !important;
	font-size: 18px !important;
}

.cl-locked-desc {
	margin: 0;
	color: #64748b;
	font-size: 14px;
	line-height: 1.5;
}

/* =========================================================
	Pro Analysis Tips — Fix Button
	========================================================= */

.cl-pro-tip {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	margin-bottom: 10px;
	border-radius: 8px;
	background: var(--cl-bg);
	border-left: 3px solid transparent;
	position: relative;
}

.cl-pro-tip--error {
	border-left-color: #dc3545;
}

.cl-pro-tip--warning {
	border-left-color: #fd7e14;
}

.cl-pro-tip--info {
	border-left-color: #6c757d;
}

.cl-pro-tip--success {
	border-left-color: #28a745;
}

.cl-pro-tip-content {
	flex: 1;
	line-height: 1.5;
	font-size: 14px;
}

.cl-pro-tip__fix {
	flex-shrink: 0;
	align-self: center;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	color: #fff;
	background: var(--cl-accent);
	transition: background 0.2s;
	white-space: nowrap;
}

.cl-pro-tip__fix:hover {
	background: var(--cl-accent-dark);
}

.cl-pro-tip__fix:active {
	transform: scale(0.97);
}

.cl-pro-tip__fix .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.cl-pro-tip--success .cl-pro-tip__fix {
	display: none;
}

/* =========================================================
	20. FOOTER FIX (prevents overlap with Agency Pro theme)
	========================================================= */

/* Force footer below all content */
#wpbody-content {
	padding-bottom: 0 !important;
}

#wpfooter {
	position: relative !important;
	bottom: auto !important;
	clear: both !important;
	margin-top: 40px !important;
	padding-bottom: 20px !important;
}

#footer-left {
	float: left !important;
	clear: none !important;
	display: inline-block !important;
	width: auto !important;
	text-align: left !important;
}

#footer-upgrade {
	float: right !important;
	clear: none !important;
	display: inline-block !important;
	width: auto !important;
	text-align: right !important;
	margin-top: 0 !important;
}
