.fair-rsvp-stats-page {
	max-width: 1400px;
	margin: 20px;
}

.fair-rsvp-stats-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px;
	gap: 16px;
}

/* Overview Stats Grid */
.stats-overview {
	padding: 8px 0;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

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

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

.stat-card.highlight-green {
	border-color: #4caf50;
	background: #f1f8f4;
}

.stat-card.highlight-blue {
	border-color: #2196f3;
	background: #f1f6fb;
}

.stat-number {
	font-size: 32px;
	font-weight: 700;
	color: #1d2327;
	line-height: 1.2;
}

.stat-label {
	font-size: 13px;
	color: #646970;
	margin-top: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Tables */
.fair-rsvp-stats-table,
.events-table,
.users-stats-table,
.invitations-table,
.leaderboard {
	overflow-x: auto;
}

.fair-rsvp-stats-table table,
.events-table table,
.users-stats-table table,
.invitations-table table,
.leaderboard table {
	width: 100%;
	border-collapse: collapse;
}

.fair-rsvp-stats-table th,
.events-table th,
.users-stats-table th,
.invitations-table th,
.leaderboard th {
	text-align: left;
	padding: 12px 8px;
	font-weight: 600;
	background-color: #f6f7f7;
	border-bottom: 2px solid #dcdcde;
}

.fair-rsvp-stats-table td,
.events-table td,
.users-stats-table td,
.invitations-table td,
.leaderboard td {
	padding: 12px 8px;
	border-bottom: 1px solid #f0f0f1;
}

/* Stats Numbers in Tables */
.stats-number {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 4px;
	font-weight: 600;
	text-align: center;
	min-width: 40px;
	background: #f0f0f1;
}

.stats-number.stats-accepted,
.stats-number.stats-yes {
	background-color: #d5f5e3;
	color: #1d8348;
}

.stats-number.stats-attended {
	background-color: #d6eaf8;
	color: #1f618d;
}

.stats-number.stats-pending {
	background-color: #fff4e6;
	color: #d68910;
}

.stats-number.stats-expired {
	background-color: #f9e4e4;
	color: #a93226;
}

/* Status Badges */
.status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.status-badge.status-yes {
	background-color: #d5f5e3;
	color: #1d8348;
}

.status-badge.status-maybe {
	background-color: #fef5e7;
	color: #d68910;
}

.status-badge.status-no {
	background-color: #fadbd8;
	color: #a93226;
}

.status-badge.status-pending {
	background-color: #e8f4f8;
	color: #1f618d;
}

.status-badge.status-expired {
	background-color: #f5f5f5;
	color: #646970;
}

.status-badge.status-attended {
	background-color: #d6eaf8;
	color: #1f618d;
}

.status-badge.status-na {
	background-color: #f0f0f1;
	color: #646970;
}

/* Invite Type Badges */
.invite-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	background-color: #e8def8;
	color: #7b2cbf;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.direct-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	background-color: #e3f2fd;
	color: #1976d2;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Tabs */
.stats-tabs .components-tab-panel__tabs {
	border-bottom: 1px solid #dcdcde;
	margin-bottom: 24px;
}

.stats-tabs .components-tab-panel__tabs-item {
	font-weight: 500;
	padding: 12px 20px;
	border-bottom: 2px solid transparent;
	transition: all 0.2s;
}

.stats-tabs .components-tab-panel__tabs-item.is-active {
	border-bottom-color: #2271b1;
	color: #2271b1;
}

/* Leaderboard */
.leaderboard h3 {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
}

.leaderboard table th:first-child {
	width: 40px;
	text-align: center;
}

.leaderboard table td:first-child {
	text-align: center;
	font-weight: 700;
	color: #2271b1;
}

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

	.stat-number {
		font-size: 24px;
	}

	.stat-label {
		font-size: 11px;
	}

	.fair-rsvp-stats-table table,
	.events-table table,
	.users-stats-table table,
	.invitations-table table {
		font-size: 13px;
	}

	.fair-rsvp-stats-table th,
	.fair-rsvp-stats-table td,
	.events-table th,
	.events-table td,
	.users-stats-table th,
	.users-stats-table td,
	.invitations-table th,
	.invitations-table td {
		padding: 8px 4px;
	}

	.leaderboard .components-h-stack {
		flex-direction: column;
	}
}

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