/**
 * My Statistics Block - Frontend Styles
 *
 * Uses CSS custom properties for theme integration.
 *
 * @since 3.1.0
 */

/* ===== CSS Custom Properties ===== */
.wp-block-virtual-conference-vcon-statistics {
	/* Colors - inherit from WordPress theme or use defaults */
	--vcon-stats-primary-color: var(--wp--preset--color--primary, #667eea);
	--vcon-stats-text-color: var(--wp--preset--color--contrast, #23282d);
	--vcon-stats-text-muted: var(--wp--preset--color--secondary, #646970);
	--vcon-stats-background: var(--wp--preset--color--base, #ffffff);
	--vcon-stats-border-color: var(--wp--preset--color--contrast, #e5e5e5);
	--vcon-stats-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	--vcon-stats-card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
	--vcon-stats-border-radius: 12px;

	/* Gradient colors for stat cards */
	--vcon-stats-balance-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	--vcon-stats-pending-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	--vcon-stats-completed-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	--vcon-stats-total-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* ===== Container ===== */
.wp-block-virtual-conference-vcon-statistics {
	max-width: 100%;
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

.wp-block-virtual-conference-vcon-statistics.vcon-my-statistics {
	max-width: var(--vcon--custom--card-max-width, 1200px);
	margin: 0 auto;
	padding: 20px;
	font-family: inherit;
	box-sizing: border-box;
	overflow: hidden;
}

.wp-block-virtual-conference-vcon-statistics * {
	box-sizing: border-box;
}

/* ===== Header ===== */
.wp-block-virtual-conference-vcon-statistics .vcon-stats-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid var(--vcon-stats-border-color);
	gap: 16px;
	flex-wrap: wrap;
	box-sizing: border-box;
	width: 100%;
}

.wp-block-virtual-conference-vcon-statistics .vcon-stats-title {
	margin: 0;
	font-size: 28px;
	font-weight: 600;
	color: var(--vcon-stats-text-color);
	display: flex;
	align-items: center;
	gap: 12px;
}

.wp-block-virtual-conference-vcon-statistics .vcon-stats-title .dashicons {
	width: 32px;
	height: 32px;
	font-size: 32px;
	color: var(--vcon-stats-primary-color);
}

.wp-block-virtual-conference-vcon-statistics .vcon-stats-period {
	background: var(--wp--preset--color--tertiary, #f7f7f7);
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	color: var(--vcon-stats-text-muted);
	font-weight: 500;
}

/* ===== Header Filter ===== */
.wp-block-virtual-conference-vcon-statistics .vcon-stats-header-filter {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	flex-shrink: 1;
	min-width: 0;
}

.wp-block-virtual-conference-vcon-statistics .vcon-period-select-header {
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 500;
	border: none;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s;
	min-width: 150px;
}

.wp-block-virtual-conference-vcon-statistics .vcon-period-select-header:hover {
	background: rgba(255, 255, 255, 0.3);
}

.wp-block-virtual-conference-vcon-statistics .vcon-period-select-header:focus {
	outline: none;
	background: rgba(255, 255, 255, 0.35);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.wp-block-virtual-conference-vcon-statistics .vcon-period-select-header option {
	color: #333;
	background: #fff;
}

.wp-block-virtual-conference-vcon-statistics .vcon-header-date-range {
	display: flex;
	align-items: center;
	gap: 8px;
	animation: fadeIn 0.2s ease;
	flex-shrink: 1;
	min-width: 0;
}

.wp-block-virtual-conference-vcon-statistics .vcon-date-input-header {
	padding: 8px 10px;
	font-size: 13px;
	border: none;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s;
	width: 130px;
	min-width: 110px;
	flex-shrink: 1;
}

.wp-block-virtual-conference-vcon-statistics .vcon-date-input-header:hover {
	background: rgba(255, 255, 255, 0.3);
}

.wp-block-virtual-conference-vcon-statistics .vcon-date-input-header:focus {
	outline: none;
	background: rgba(255, 255, 255, 0.35);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Fix for date picker icon color in some browsers */
.wp-block-virtual-conference-vcon-statistics .vcon-date-input-header::-webkit-calendar-picker-indicator {
	filter: invert(1);
	cursor: pointer;
}

.wp-block-virtual-conference-vcon-statistics .vcon-date-separator {
	color: rgba(255, 255, 255, 0.7);
	font-weight: 500;
}

.wp-block-virtual-conference-vcon-statistics .vcon-apply-filter-btn-header {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.wp-block-virtual-conference-vcon-statistics .vcon-apply-filter-btn-header:hover {
	background: rgba(255, 255, 255, 0.4);
	transform: scale(1.05);
}

.wp-block-virtual-conference-vcon-statistics .vcon-apply-filter-btn-header:active {
	transform: scale(0.95);
}

.wp-block-virtual-conference-vcon-statistics .vcon-apply-filter-btn-header .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
	color: #fff;
}

/* ===== Statistics Grid ===== */
.vcon-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 20px;
	margin-bottom: 40px;
	max-width: 100%;
}

/* ===== Stat Cards ===== */
.vcon-stat-card {
	background: var(--vcon-stats-background);
	border-radius: var(--vcon-stats-border-radius);
	padding: 24px;
	box-shadow: var(--vcon-stats-card-shadow);
	border: 1px solid var(--vcon-stats-border-color);
	display: flex;
	align-items: flex-start;
	gap: 16px;
	transition: transform 0.2s, box-shadow 0.2s;
}

.vcon-stat-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--vcon-stats-card-shadow-hover);
}

.vcon-stat-icon {
	width: 56px;
	height: 56px;
	border-radius: var(--vcon-stats-border-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.vcon-stat-icon .dashicons {
	width: 32px;
	height: 32px;
	font-size: 32px;
	color: #fff;
}

.vcon-stat-content {
	flex: 1;
	min-width: 0;
}

.vcon-stat-label {
	font-size: 13px;
	color: var(--vcon-stats-text-muted);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.vcon-stat-value {
	font-size: 32px;
	font-weight: 700;
	color: var(--vcon-stats-text-color);
	line-height: 1.2;
	margin-bottom: 4px;
}

.vcon-stat-meta {
	font-size: 13px;
	color: var(--vcon-stats-text-muted);
}

/* ===== Stat Card Variants ===== */
.vcon-stat-balance .vcon-stat-icon {
	background: var(--vcon-stats-balance-gradient);
}

.vcon-stat-pending .vcon-stat-icon {
	background: var(--vcon-stats-pending-gradient);
}

.vcon-stat-completed .vcon-stat-icon {
	background: var(--vcon-stats-completed-gradient);
}

.vcon-stat-total .vcon-stat-icon {
	background: var(--vcon-stats-total-gradient);
}

.vcon-stat-watch-time .vcon-stat-icon {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.vcon-stat-viewers .vcon-stat-icon {
	background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

/* ===== Recent Transactions ===== */
.vcon-recent-transactions {
	background: var(--vcon-stats-background);
	border-radius: var(--vcon-stats-border-radius);
	padding: 24px;
	box-shadow: var(--vcon-stats-card-shadow);
	border: 1px solid var(--vcon-stats-border-color);
	margin-bottom: 20px;
}

.vcon-section-title {
	margin: 0 0 20px 0;
	font-size: 20px;
	font-weight: 600;
	color: var(--vcon-stats-text-color);
	display: flex;
	align-items: center;
	gap: 10px;
}

.vcon-section-title .dashicons {
	width: 24px;
	height: 24px;
	font-size: 24px;
	color: var(--vcon-stats-primary-color);
}

/* ===== Transactions Table ===== */
.vcon-transactions-table-wrapper {
	overflow-x: auto;
	margin: 0;
	padding: 0;
	max-width: 100%;
}

.vcon-transactions-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.vcon-transactions-table thead {
	background: var(--wp--preset--color--tertiary, #f7f7f7);
	border-bottom: 2px solid var(--vcon-stats-border-color);
}

.vcon-transactions-table th {
	padding: 12px 16px;
	text-align: left;
	font-weight: 600;
	color: var(--vcon-stats-text-muted);
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.5px;
}

.vcon-transactions-table td {
	padding: 16px;
	border-bottom: 1px solid var(--vcon-stats-border-color);
	color: var(--vcon-stats-text-muted);
}

.vcon-transactions-table tbody tr:hover {
	background: var(--wp--preset--color--tertiary, #f9f9f9);
}

.vcon-transactions-table tbody tr:last-child td {
	border-bottom: none;
}

/* ===== Transaction Table Cells ===== */
.vcon-transaction-date {
	font-weight: 500;
	color: var(--vcon-stats-text-color);
}

.vcon-transaction-amount {
	font-weight: 600;
	font-family: 'Courier New', Courier, monospace;
	color: var(--vcon-stats-text-color);
}

/* ===== Badges ===== */
.vcon-type-badge,
.vcon-status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	white-space: nowrap;
}

/* Type Badges */
.vcon-type-credit,
.vcon-type-payment {
	background: #e5f2ff;
	color: #0073aa;
}

.vcon-type-payout {
	background: #fef7e6;
	color: #b87c00;
}

.vcon-type-subscription_payment {
	background: #f0ebff;
	color: #6b46c1;
}

.vcon-type-refund {
	background: #fee;
	color: #d63638;
}

/* Status Badges */
.vcon-status-completed {
	background: #e7f7ed;
	color: #00a32a;
}

.vcon-status-pending,
.vcon-status-pending_approval {
	background: #fef7e6;
	color: #b87c00;
}

.vcon-status-failed,
.vcon-status-cancelled {
	background: #fce8e9;
	color: #d63638;
}

.vcon-status-processing {
	background: #e5f2ff;
	color: #0073aa;
}

/* ===== No Data Message ===== */
.vcon-no-data {
	text-align: center;
	padding: 60px 20px;
	background: var(--wp--preset--color--tertiary, #f9f9f9);
	border-radius: var(--vcon-stats-border-radius);
	border: 2px dashed var(--vcon-stats-border-color);
}

.vcon-no-data .dashicons {
	width: 48px;
	height: 48px;
	font-size: 48px;
	color: var(--vcon-stats-border-color);
	margin-bottom: 16px;
}

.vcon-no-data p {
	margin: 0;
	font-size: 16px;
	color: var(--vcon-stats-text-muted);
}

/* ===== Login Notice ===== */
.vcon-statistics-notice {
	padding: 20px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 8px;
	color: #856404;
	text-align: center;
	font-size: 15px;
}

/* ===== Transaction Row Hover ===== */
.vcon-transaction-row {
	transition: background-color 0.2s;
}

.vcon-transaction-row:hover {
	background-color: #f0f6fc !important;
}

.vcon-transaction-row:active {
	background-color: #e5f2ff !important;
}

/* ===== Download Receipt Button ===== */
.vcon-transaction-actions {
	text-align: center;
}

.vcon-download-receipt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: var(--wp--preset--color--tertiary, #f0f0f1);
	border: 1px solid var(--vcon-stats-border-color);
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
}

.vcon-download-receipt-btn:hover {
	background: var(--vcon-stats-primary-color);
	border-color: var(--vcon-stats-primary-color);
	color: #fff;
}

.vcon-download-receipt-btn:hover .dashicons {
	color: #fff;
}

.vcon-download-receipt-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.vcon-download-receipt-btn .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	color: var(--vcon-stats-text-muted);
	transition: color 0.2s;
}

.vcon-download-receipt-btn .spinner {
	width: 18px;
	height: 18px;
	background-size: 18px 18px;
}

/* ===== Email Preview Modal ===== */
.vcon-email-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.vcon-email-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
}

.vcon-email-modal-content {
	position: relative;
	background: var(--vcon-stats-background);
	border-radius: var(--vcon-stats-border-radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	max-width: 700px;
	width: 100%;
	height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.vcon-email-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--vcon-stats-border-color);
	background: var(--wp--preset--color--tertiary, #f7f7f7);
}

.vcon-email-modal-subject {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--vcon-stats-text-color);
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 16px;
}

.vcon-email-modal-close {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	color: var(--vcon-stats-text-muted);
	transition: background 0.2s, color 0.2s;
	flex-shrink: 0;
}

.vcon-email-modal-close:hover {
	background: var(--vcon-stats-border-color);
	color: var(--vcon-stats-text-color);
}

.vcon-email-modal-close .dashicons {
	width: 24px;
	height: 24px;
	font-size: 24px;
}

.vcon-email-modal-body {
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 400px;
}

.vcon-email-modal-loading,
.vcon-email-modal-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
	gap: 12px;
	text-align: center;
	color: var(--vcon-stats-text-muted);
	font-size: 14px;
}

.vcon-email-modal-loading .spinner {
	float: none;
	margin: 0;
}

.vcon-email-modal-error {
	color: #d63638;
}

.vcon-email-modal-error .dashicons {
	width: 48px;
	height: 48px;
	font-size: 48px;
	color: #d63638;
}

.vcon-email-preview-frame {
	width: 100%;
	height: 100%;
	min-height: 400px;
	border: none;
	background: var(--vcon-stats-background);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
	.vcon-my-statistics {
		padding: 15px;
	}

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

	.vcon-stats-title {
		font-size: 24px;
	}

	.vcon-stats-title .dashicons {
		width: 28px;
		height: 28px;
		font-size: 28px;
	}

	/* Header filter responsive */
	.wp-block-virtual-conference-vcon-statistics .vcon-stats-header-filter {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
	}

	.wp-block-virtual-conference-vcon-statistics .vcon-period-select-header {
		width: 100%;
	}

	.wp-block-virtual-conference-vcon-statistics .vcon-header-date-range {
		width: 100%;
		flex-wrap: wrap;
	}

	.wp-block-virtual-conference-vcon-statistics .vcon-date-input-header {
		flex: 1;
		min-width: 100px;
	}

	.wp-block-virtual-conference-vcon-statistics .vcon-date-separator {
		display: none;
	}

	.vcon-stats-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.vcon-stat-value {
		font-size: 28px;
	}

	.vcon-recent-transactions {
		padding: 16px;
	}

	.vcon-transactions-table-wrapper {
		margin: 0;
		padding: 0;
	}

	.vcon-transactions-table {
		font-size: 13px;
	}

	.vcon-transactions-table th,
	.vcon-transactions-table td {
		padding: 10px 8px;
	}

	.vcon-email-modal {
		padding: 10px;
	}

	.vcon-email-modal-content {
		max-height: 95vh;
		border-radius: 8px;
	}

	.vcon-email-modal-header {
		padding: 12px 16px;
	}

	.vcon-email-modal-subject {
		font-size: 14px;
	}

	.vcon-email-modal-body {
		min-height: 300px;
	}

	.vcon-email-preview-frame {
		min-height: 300px;
	}
}

/* Stack table on very small screens */
@media (max-width: 600px) {
	.vcon-transactions-table thead {
		display: none;
	}

	.vcon-transactions-table,
	.vcon-transactions-table tbody,
	.vcon-transactions-table tr,
	.vcon-transactions-table td {
		display: block;
		width: 100%;
	}

	.vcon-transactions-table tr {
		margin-bottom: 16px;
		padding: 16px;
		background: var(--wp--preset--color--tertiary, #f9f9f9);
		border-radius: 8px;
		border: 1px solid var(--vcon-stats-border-color);
	}

	.vcon-transactions-table td {
		padding: 8px 0;
		border-bottom: none;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.vcon-transactions-table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--vcon-stats-text-muted);
		text-transform: uppercase;
		font-size: 11px;
		letter-spacing: 0.5px;
	}
}

/* ===== Frontend Date Filter ===== */
.wp-block-virtual-conference-vcon-statistics .vcon-stats-filter {
	background: var(--vcon-stats-background, #fff);
	border: 1px solid var(--vcon-stats-border-color);
	border-radius: var(--vcon-stats-border-radius, 12px);
	padding: 16px 20px;
	margin-bottom: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wp-block-virtual-conference-vcon-statistics .vcon-stats-filter-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.wp-block-virtual-conference-vcon-statistics .vcon-filter-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	color: var(--vcon-stats-text-color);
	font-size: 14px;
	white-space: nowrap;
}

.wp-block-virtual-conference-vcon-statistics .vcon-filter-label .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	color: var(--vcon-stats-primary-color);
}

.wp-block-virtual-conference-vcon-statistics .vcon-period-select {
	flex: 1;
	max-width: 250px;
	padding: 10px 14px;
	font-size: 14px;
	border: 1px solid var(--vcon-stats-border-color);
	border-radius: 8px;
	background: var(--vcon-stats-background, #fff);
	color: var(--vcon-stats-text-color);
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.wp-block-virtual-conference-vcon-statistics .vcon-period-select:hover {
	border-color: var(--vcon-stats-primary-color);
}

.wp-block-virtual-conference-vcon-statistics .vcon-period-select:focus {
	outline: none;
	border-color: var(--vcon-stats-primary-color);
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.wp-block-virtual-conference-vcon-statistics .vcon-stats-filter-custom {
	animation: fadeIn 0.2s ease;
}

.wp-block-virtual-conference-vcon-statistics .vcon-date-range {
	display: flex;
	align-items: flex-end;
	gap: 16px;
	flex-wrap: wrap;
}

.wp-block-virtual-conference-vcon-statistics .vcon-date-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wp-block-virtual-conference-vcon-statistics .vcon-date-field label {
	font-size: 13px;
	font-weight: 500;
	color: var(--vcon-stats-text-muted);
}

.wp-block-virtual-conference-vcon-statistics .vcon-date-input {
	padding: 10px 14px;
	font-size: 14px;
	border: 1px solid var(--vcon-stats-border-color);
	border-radius: 8px;
	background: var(--vcon-stats-background, #fff);
	color: var(--vcon-stats-text-color);
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.wp-block-virtual-conference-vcon-statistics .vcon-date-input:hover {
	border-color: var(--vcon-stats-primary-color);
}

.wp-block-virtual-conference-vcon-statistics .vcon-date-input:focus {
	outline: none;
	border-color: var(--vcon-stats-primary-color);
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.wp-block-virtual-conference-vcon-statistics .vcon-apply-filter-btn {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	background: linear-gradient(135deg, var(--vcon-stats-primary-color) 0%, #764ba2 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	white-space: nowrap;
}

.wp-block-virtual-conference-vcon-statistics .vcon-apply-filter-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.wp-block-virtual-conference-vcon-statistics .vcon-apply-filter-btn:active {
	transform: translateY(0);
}

/* Loading state for stats grid */
.wp-block-virtual-conference-vcon-statistics .vcon-stats-grid.vcon-loading {
	opacity: 0.6;
	pointer-events: none;
	position: relative;
}

.wp-block-virtual-conference-vcon-statistics .vcon-stats-grid.vcon-loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 32px;
	height: 32px;
	margin: -16px 0 0 -16px;
	border: 3px solid var(--vcon-stats-border-color);
	border-top-color: var(--vcon-stats-primary-color);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Filter responsive */
@media (max-width: 600px) {
	.wp-block-virtual-conference-vcon-statistics .vcon-stats-filter-row {
		flex-direction: column;
		align-items: stretch;
	}

	.wp-block-virtual-conference-vcon-statistics .vcon-period-select {
		max-width: none;
	}

	.wp-block-virtual-conference-vcon-statistics .vcon-date-range {
		flex-direction: column;
	}

	.wp-block-virtual-conference-vcon-statistics .vcon-date-field {
		width: 100%;
	}

	.wp-block-virtual-conference-vcon-statistics .vcon-date-input {
		width: 100%;
	}

	.wp-block-virtual-conference-vcon-statistics .vcon-apply-filter-btn {
		width: 100%;
	}
}

/* ===== Print Styles ===== */
@media print {
	.vcon-stat-card {
		break-inside: avoid;
	}

	.vcon-transactions-table {
		font-size: 11px;
	}

	.vcon-stat-card:hover {
		transform: none;
		box-shadow: var(--vcon-stats-card-shadow);
	}
}
