/* Dashboard Page Styles - Extracted from inline */
/* CSS Variables for Dashboard */
:root {
	--wapi-primary: #FF0046;
	--wapi-primary-dark: #E6003F;
	--wapi-secondary: #FFB800;
	--wapi-gradient: linear-gradient(135deg, #FF0046 0%, #FF7823 50%, #FFB800 100%);
	--wapi-gradient-hover: linear-gradient(135deg, #E6003F 0%, #FF0046 50%, #E6A600 100%);
	--wapi-gradient-subtle: linear-gradient(135deg, rgba(255, 0, 70, 0.1) 0%, rgba(255, 184, 0, 0.1) 100%);
}

/* Dashboard Premium Enhancements */
.wapi-hero-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.wapi-hero-stat {
	position: relative;
	background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
	border-radius: 20px;
	padding: 1.75rem;
	border: 1px solid rgba(255, 0, 70, 0.1);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
	overflow: hidden;
	transition: all 0.3s ease;
}

.wapi-hero-stat:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(255, 0, 70, 0.12);
}

.wapi-hero-stat::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--wapi-gradient);
	border-radius: 20px 20px 0 0;
}

.wapi-hero-stat--success::before { background: linear-gradient(90deg, #59D636, #6DE64D); }
.wapi-hero-stat--warning::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.wapi-hero-stat--error::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.wapi-hero-stat--info::before { background: linear-gradient(90deg, #0060C6, #1A7AD9); }

.wapi-hero-stat-icon {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wapi-gradient);
	color: #fff;
	font-size: 28px;
	margin-bottom: 1rem;
	box-shadow: 0 8px 24px rgba(255, 0, 70, 0.3);
}

.wapi-hero-stat-icon .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	line-height: 1;
}

.wapi-hero-stat-icon .dashicons:before {
	color: #fff;
}

.wapi-hero-stat-value {
	font-size: 2rem;
	font-weight: 800;
	color: #252525;
	line-height: 1.1;
	margin-bottom: 0.25rem;
}

.wapi-hero-stat-label {
	font-size: 0.875rem;
	color: #64748b;
	font-weight: 500;
}

.wapi-hero-stat-sublabel {
	font-size: 0.75rem;
	color: #94a3b8;
	font-weight: 400;
	margin-bottom: 0.25rem;
	max-width: 180px;
	line-height: 1.3;
}

.wapi-hero-stat-trend {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.25rem 0.5rem;
	border-radius: 999px;
}

.wapi-hero-stat-trend--up {
	background: rgba(16, 185, 129, 0.1);
	color: #59D636;
}

.wapi-hero-stat-trend--down {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
}

/* Usage Chart */
.wapi-chart-container {
	padding: 1.5rem;
}

.wapi-chart {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	height: 140px;
	gap: 0.75rem;
	padding: 1rem 0;
}

.wapi-chart-bar-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	height: 100%;
}

.wapi-chart-bar {
	width: 100%;
	max-width: 48px;
	min-height: 8px;
	background: linear-gradient(135deg, #FF0046 0%, #FF7823 50%, #FFB800 100%) !important;
	border-radius: 8px 8px 4px 4px;
	transition: all 0.3s ease;
	position: relative;
	cursor: pointer;
}

.wapi-chart-bar--active {
	background: var(--wapi-gradient);
	box-shadow: 0 2px 8px rgba(255, 0, 70, 0.3);
}

.wapi-chart-bar--empty {
	background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%) !important;
	opacity: 0.6;
}

.wapi-chart-bar:hover {
	transform: scaleY(1.05);
	box-shadow: 0 4px 16px rgba(255, 0, 70, 0.4);
}

.wapi-chart-bar--empty:hover {
	box-shadow: 0 4px 16px rgba(100, 116, 139, 0.3);
}

.wapi-chart-bar-tooltip {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: #252525;
	color: #fff;
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease;
	margin-bottom: 8px;
	z-index: 10;
}

.wapi-chart-bar-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #252525;
}

.wapi-chart-bar:hover .wapi-chart-bar-tooltip {
	opacity: 1;
	visibility: visible;
}

.wapi-chart-label {
	font-size: 0.75rem;
	color: #94a3b8;
	font-weight: 500;
	text-transform: uppercase;
}

.wapi-chart-label--today {
	color: var(--wapi-primary);
	font-weight: 700;
}

/* Streak Calendar */
.wapi-streak-calendar {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	padding: 1rem;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border-radius: 12px;
}

.wapi-streak-day {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 600;
	transition: all 0.2s ease;
	cursor: default;
}

.wapi-streak-day--active {
	background: var(--wapi-gradient);
	color: #fff;
	box-shadow: 0 4px 12px rgba(255, 0, 70, 0.3);
}

.wapi-streak-day--inactive {
	background: rgba(148, 163, 184, 0.2);
	color: #94a3b8;
}

.wapi-streak-day--today {
	border: 2px solid var(--wapi-primary);
}

.wapi-streak-fire {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
	font-weight: 700;
	color: #92400e;
	font-size: 1.125rem;
}

.wapi-streak-fire-icon {
	font-size: 1.5rem;
}

/* Badges Grid */
.wapi-badges-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 1rem;
}

.wapi-badge-card {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 1.25rem;
	text-align: center;
	border: 1px solid rgba(0, 0, 0, 0.06);
	transition: all 0.3s ease;
}

.wapi-badge-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.wapi-badge-card--locked {
	opacity: 0.5;
	filter: grayscale(1);
}

.wapi-badge-card--locked:hover {
	filter: grayscale(0.5);
	opacity: 0.7;
}

.wapi-badge-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 0.75rem;
	font-size: 24px;
}

.wapi-badge-icon .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #fff;
	line-height: 1;
}

.wapi-badge-icon .dashicons:before {
	color: #fff;
	font-size: 24px;
	line-height: 24px;
}

.wapi-badge-name {
	font-size: 0.8125rem;
	font-weight: 700;
	color: #252525;
	margin-bottom: 0.25rem;
}

.wapi-badge-locked-icon {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	font-size: 14px;
	color: #94a3b8;
}

/* Welcome Banner */
.wapi-welcome-banner {
	position: relative;
	background: var(--wapi-gradient);
	border-radius: 24px;
	padding: 2.5rem;
	color: #fff;
	margin-bottom: 2rem;
	overflow: hidden;
}

.wapi-welcome-banner::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 400px;
	height: 400px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
}

.wapi-welcome-banner::after {
	content: '';
	position: absolute;
	bottom: -30%;
	left: 20%;
	width: 200px;
	height: 200px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 50%;
}

.wapi-welcome-content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.wapi-welcome-text h2 {
	font-size: 1.75rem;
	font-weight: 800;
	margin: 0 0 0.5rem;
}

.wapi-welcome-text p {
	font-size: 1rem;
	opacity: 0.9;
	margin: 0;
}

.wapi-welcome-actions {
	display: flex;
	gap: 1rem;
}

.wapi-welcome-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.875rem 1.5rem;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	transition: all 0.2s ease;
}

.wapi-welcome-btn--primary {
	background: #fff;
	color: var(--wapi-primary);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.wapi-welcome-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	color: var(--wapi-primary-dark);
}

.wapi-welcome-btn--secondary {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	backdrop-filter: blur(4px);
}

.wapi-welcome-btn--secondary:hover {
	background: rgba(255, 255, 255, 0.3);
	color: #fff;
}

/* Progress Ring */
.wapi-progress-ring {
	position: relative;
	width: 120px;
	height: 120px;
}

.wapi-progress-ring svg {
	transform: rotate(-90deg);
}

.wapi-progress-ring-bg {
	fill: none;
	stroke: #e2e8f0;
	stroke-width: 8;
}

.wapi-progress-ring-fill {
	fill: none;
	stroke: url(#wapi-gradient);
	stroke-width: 8;
	stroke-linecap: round;
	transition: stroke-dashoffset 0.5s ease;
}

.wapi-progress-ring-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
}

.wapi-progress-ring-value {
	font-size: 1.5rem;
	font-weight: 800;
	color: #252525;
	display: block;
}

.wapi-progress-ring-label {
	font-size: 0.75rem;
	color: #64748b;
}

/* Dark mode support for progress ring */
.wapi-admin.wapi-dark-mode .wapi-progress-ring-value,
.wapi-dark-mode .wapi-progress-ring-value {
	color: #f1f5f9;
}

.wapi-admin.wapi-dark-mode .wapi-progress-ring-label,
.wapi-dark-mode .wapi-progress-ring-label {
	color: #94a3b8;
}

/* Quick Actions Premium */
.wapi-quick-actions-premium {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.wapi-quick-action-premium {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 1.5rem;
	background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
	border: 1px solid rgba(0, 0, 0, 0.04);
	border-radius: 16px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.wapi-quick-action-premium:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(255, 0, 70, 0.15);
	border-color: rgba(255, 0, 70, 0.2);
}

.wapi-quick-action-premium:hover .wapi-quick-action-icon {
	transform: scale(1.1);
}

.wapi-quick-action-icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wapi-gradient);
	color: #fff;
	transition: transform 0.3s ease;
	box-shadow: 0 4px 12px rgba(255, 0, 70, 0.25);
}

.wapi-quick-action-icon .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	line-height: 1;
}

.wapi-quick-action-icon .dashicons:before {
	color: #fff;
	font-size: 24px;
	line-height: 24px;
}

.wapi-quick-action-text {
	text-align: center;
}

.wapi-quick-action-title {
	font-weight: 700;
	color: #252525;
	font-size: 0.9375rem;
}

.wapi-quick-action-desc {
	font-size: 0.75rem;
	color: #64748b;
	margin-top: 0.25rem;
}

/* Squirrels Community Banner */
.wapi-squirrels-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	background: linear-gradient(135deg, rgba(255, 0, 70, 0.08) 0%, rgba(255, 184, 0, 0.08) 100%);
	border: 1px solid rgba(255, 0, 70, 0.2);
	border-radius: 12px;
	padding: 0.875rem 1.5rem;
	margin-bottom: 1.5rem;
}

.wapi-squirrels-icon {
	font-size: 1.5rem;
}

.wapi-squirrels-text {
	font-size: 0.9375rem;
	color: #64748b;
}

.wapi-squirrels-text strong {
	color: #FF0046;
	font-size: 1.125rem;
}

/* Lifetime Stats Bar */
.wapi-lifetime-stats {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3rem;
	background: linear-gradient(135deg, #252525 0%, #1C1C1C 100%);
	border-radius: 16px;
	padding: 1.25rem 2rem;
	margin-bottom: 2rem;
}

.wapi-lifetime-stat {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.wapi-lifetime-stat-icon {
	font-size: 1.75rem;
}

.wapi-lifetime-stat-content {
	display: flex;
	flex-direction: column;
}

.wapi-lifetime-stat-value {
	font-size: 1.5rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
}

.wapi-lifetime-stat-label {
	font-size: 0.75rem;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1200px) {
	.wapi-hero-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.wapi-lifetime-stats {
		gap: 2rem;
	}
}

@media (max-width: 768px) {
	.wapi-hero-stats {
		grid-template-columns: 1fr;
	}

	.wapi-welcome-content {
		flex-direction: column;
		text-align: center;
	}

	.wapi-welcome-actions {
		flex-direction: column;
	}

	.wapi-quick-actions-premium {
		grid-template-columns: repeat(2, 1fr);
	}

	.wapi-squirrels-banner {
		flex-direction: column;
		text-align: center;
	}

	.wapi-lifetime-stats {
		flex-direction: column;
		gap: 1.5rem;
		padding: 1.5rem;
	}

	.wapi-lifetime-stat {
		width: 100%;
		justify-content: center;
	}
}

/* Usage Prediction */
.wapi-prediction {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-radius: 12px;
	border: 1px solid;
}

.wapi-prediction--success {
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(52, 211, 153, 0.08) 100%);
	border-color: rgba(16, 185, 129, 0.2);
}

.wapi-prediction--warning {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.08) 100%);
	border-color: rgba(245, 158, 11, 0.2);
}

.wapi-prediction--info {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(96, 165, 250, 0.08) 100%);
	border-color: rgba(59, 130, 246, 0.2);
}

.wapi-prediction-icon {
	font-size: 1.25rem;
	line-height: 1;
	flex-shrink: 0;
}

.wapi-prediction-content {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.wapi-prediction-text {
	font-size: 0.875rem;
	font-weight: 500;
	color: #3A3A3A;
	line-height: 1.4;
}

.wapi-prediction-cta {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wapi-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.wapi-prediction-cta:hover {
	color: var(--wapi-primary-dark);
	text-decoration: underline;
}

/* Dark mode for prediction */
.wapi-admin.wapi-dark-mode .wapi-prediction-text,
.wapi-dark-mode .wapi-prediction-text {
	color: #e2e8f0;
}

/* Live status checking animation */
.wapi-status-checking {
	position: relative;
}

.wapi-status-checking::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	animation: wapi-status-shimmer 1s infinite;
	border-radius: 20px;
	pointer-events: none;
}

@keyframes wapi-status-shimmer {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

.wapi-hero-stat-icon .dashicons {
	transition: transform 0.3s ease;
}

.wapi-status-checking .wapi-hero-stat-icon .dashicons {
	animation: wapi-pulse 1s infinite;
}

/* Checking status - spinning icon */
.wapi-hero-stat[data-status="checking"] .wapi-hero-stat-icon .dashicons-update {
	animation: wapi-spin 1.5s linear infinite;
}

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

@keyframes wapi-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

/* Dark mode for sublabel */
.wapi-admin.wapi-dark-mode .wapi-hero-stat-sublabel,
.wapi-dark-mode .wapi-hero-stat-sublabel {
	color: #64748b;
}

/* Modal Styles */
.wapi-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.wapi-modal-overlay.wapi-modal--visible {
	opacity: 1;
	visibility: visible;
}

.wapi-modal {
	background: #fff;
	border-radius: 24px;
	width: 90%;
	max-width: 520px;
	max-height: 85vh;
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	transform: scale(0.9) translateY(20px);
	transition: transform 0.3s ease;
}

.wapi-modal-overlay.wapi-modal--visible .wapi-modal {
	transform: scale(1) translateY(0);
}

.wapi-modal-header {
	position: relative;
	background: var(--wapi-gradient);
	padding: 2rem 2rem 1.5rem;
	text-align: center;
	color: #fff;
}

.wapi-modal-header-icon {
	width: 56px;
	height: 56px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
}

.wapi-modal-header-icon .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: #fff;
}

.wapi-modal-title {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0 0 0.5rem;
	color: #fff;
}

.wapi-modal-version {
	display: inline-block;
	background: rgba(255, 255, 255, 0.2);
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
}

.wapi-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.wapi-modal-close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.wapi-modal-close .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #fff;
}

.wapi-modal-body {
	padding: 1.5rem 2rem;
	max-height: 300px;
	overflow-y: auto;
}

.wapi-changelog-items {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.wapi-changelog-item {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.wapi-changelog-item-icon {
	width: 40px;
	height: 40px;
	background: var(--wapi-gradient-subtle, linear-gradient(135deg, rgba(255, 0, 70, 0.1) 0%, rgba(255, 184, 0, 0.1) 100%));
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.wapi-changelog-item-icon .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: var(--wapi-primary, #FF0046);
}

.wapi-changelog-item-content {
	flex: 1;
}

.wapi-changelog-item-title {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #252525;
	margin: 0 0 0.25rem;
}

.wapi-changelog-item-desc {
	font-size: 0.8125rem;
	color: #64748b;
	margin: 0;
	line-height: 1.5;
}

.wapi-modal-footer {
	padding: 1.5rem 2rem;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	display: flex;
	gap: 1rem;
	justify-content: flex-end;
}

/* Dark mode for modal */
.wapi-admin.wapi-dark-mode .wapi-modal,
.wapi-dark-mode .wapi-modal {
	background: #252525;
}

.wapi-admin.wapi-dark-mode .wapi-changelog-item-title,
.wapi-dark-mode .wapi-changelog-item-title {
	color: #f1f5f9;
}

.wapi-admin.wapi-dark-mode .wapi-changelog-item-desc,
.wapi-dark-mode .wapi-changelog-item-desc {
	color: #94a3b8;
}

.wapi-admin.wapi-dark-mode .wapi-modal-footer,
.wapi-dark-mode .wapi-modal-footer {
	background: #1C1C1C;
	border-color: #3A3A3A;
}

