/**
 * MagicGEO Admin Styles
 *
 * @package MagicGEO
 */

.magicgeo-wrap {
	max-width: 1200px;
}

.magicgeo-wrap h1 {
	margin-bottom: 20px;
	color: #1d2327;
}

/* Stats Cards */
.magicgeo-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.stat-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	transition: box-shadow 0.2s ease;
}

.stat-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
	font-size: 36px;
	margin: 0 0 5px;
	color: #2271b1;
}

.stat-card p {
	margin: 0;
	color: #646970;
	font-size: 14px;
}

/* Products Table */
.magicgeo-products {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	padding: 20px;
}

.magicgeo-products h2 {
	margin-top: 0;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
}

/* GEO Score Badge */
.geo-score {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 13px;
}

.geo-score.good {
	background: #d1fae5;
	color: #065f46;
}

.geo-score.medium {
	background: #fef3c7;
	color: #92400e;
}

.geo-score.low {
	background: #fee2e2;
	color: #991b1b;
}

/* Status Badge */
.status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
}

.status-badge.optimized {
	background: #d1fae5;
	color: #065f46;
}

.status-badge.needs_work {
	background: #fef3c7;
	color: #92400e;
}

.status-badge.critical {
	background: #fee2e2;
	color: #991b1b;
}

.status-badge.pending {
	background: #e5e7eb;
	color: #374151;
}

/* Buttons */
.magicgeo-optimize-btn,
.magicgeo-analyze-btn {
	margin-right: 5px;
}

.magicgeo-optimize-btn {
	background: #2271b1 !important;
	border-color: #2271b1 !important;
	color: #fff !important;
}

.magicgeo-optimize-btn:hover {
	background: #135e96 !important;
	border-color: #135e96 !important;
}

.magicgeo-optimize-btn.loading,
.magicgeo-analyze-btn.loading {
	opacity: 0.7;
	cursor: wait;
}

/* Settings Page */
.connection-active {
	color: #065f46;
	display: flex;
	align-items: center;
	gap: 8px;
}

.connection-active .dashicons {
	color: #10b981;
}

.connection-inactive {
	color: #92400e;
	display: flex;
	align-items: center;
	gap: 8px;
}

.connection-inactive .dashicons {
	color: #f59e0b;
}

/* Responsive */
@media screen and (max-width: 782px) {
	.magicgeo-stats {
		grid-template-columns: 1fr;
	}

	.stat-card h3 {
		font-size: 28px;
	}
}
