/* CompTally Frontend Styles */

:root {
	--jhq-primary: #059669;
	--jhq-primary-dark: #047857;
	--jhq-secondary: #64748b;
	--jhq-success: #10b981;
	--jhq-warning: #f59e0b;
	--jhq-danger: #ef4444;
	--jhq-bg: #f8fafc;
	--jhq-card-bg: #ffffff;
	--jhq-text: #1e293b;
	--jhq-text-light: #64748b;
	--jhq-border: #e2e8f0;
	--jhq-radius: 12px;
}

/* Results page tabs */
.comp-tally-competition-results .imara-tabs { display:flex; gap:0; margin-bottom:24px; border-bottom:2px solid #e2e8f0; }
.comp-tally-competition-results .imara-tab { padding:10px 24px; background:none; border:none; font-size:0.95rem; font-weight:600; color:#94a3b8; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all 0.15s; }
.comp-tally-competition-results .imara-tab:hover { color:#059669; }
.comp-tally-competition-results .imara-tab.active { color:#059669; border-bottom-color:#059669; }
.comp-tally-competition-results .imara-tab-content { display:none; }
.comp-tally-competition-results .imara-tab-content.active { display:block; }
.comp-tally-competition-results .imara-vote-table { width:100%; border-collapse:collapse; background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,0.06); }
.comp-tally-competition-results .imara-vote-table th { background:#f1f5f9; padding:12px 16px; text-align:left; font-size:0.85rem; font-weight:600; color:#475569; }
.comp-tally-competition-results .imara-vote-table td { padding:12px 16px; border-top:1px solid #f1f5f9; font-size:0.9rem; }
.comp-tally-competition-results .imara-vote-total { margin-top:12px; font-size:0.85rem; color:#64748b; text-align:center; }
.comp-tally-competition-results .imara-vote-bar { height:8px; background:#e2e8f0; border-radius:4px; overflow:hidden; }
.comp-tally-competition-results .imara-vote-bar-fill { height:100%; background:#059669; border-radius:4px; transition:width 0.5s; }

/* Announcement/Winners header */
.comp-tally-competition-announcement .imara-announce-header,
.comp-tally-competition-winners .imara-winners-header { margin-bottom:32px; padding-bottom:16px; border-bottom:1px solid #e2e8f0; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.comp-tally-competition-announcement .imara-announce-header h1,
.comp-tally-competition-winners .imara-winners-header h1 { margin:0; font-size:1.5rem; color:#1e293b; }
.comp-tally-competition-announcement .imara-announce-header a,
.comp-tally-competition-winners .imara-winners-header a { color:#059669; text-decoration:none; font-size:0.875rem; }
.comp-tally-competition-announcement .imara-announce-header a:hover,
.comp-tally-competition-winners .imara-winners-header a:hover { text-decoration:underline; }

/* Questions page */
.comp-tally-competition-questions { max-width:800px; margin:0 auto; }
.comp-tally-competition-questions .section-title { font-size:1.25rem; font-weight:700; color:#0f172a; margin:0 0 16px; }

/* Timer fullscreen */
body.comp-tally-timer-fullscreen {
	margin: 0;
	background: #0f172a;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
body.comp-tally-timer-fullscreen .jhq-timer-display {
	transform: scale(1.5);
	margin: 40px;
}
body.comp-tally-timer-fullscreen .jhq-timer-controls {
	max-width: 500px;
}

/* Login Page */
.jhq-login-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.jhq-login-card {
	background: var(--jhq-card-bg);
	border-radius: var(--jhq-radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	padding: 48px 40px;
	width: 100%;
	max-width: 420px;
	animation: jhq-fadeIn 0.3s ease;
}

.jhq-login-header {
	text-align: center;
	margin-bottom: 32px;
}

.jhq-login-header h1 {
	font-size: 32px;
	font-weight: 800;
	background: linear-gradient(135deg, #059669, #047857);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 4px;
}

.jhq-login-header p {
	color: var(--jhq-text-light);
	font-size: 15px;
}

.jhq-login-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.jhq-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.jhq-field label {
	font-size: 14px;
	font-weight: 600;
	color: var(--jhq-text);
}

.jhq-field input[type="text"],
.jhq-field input[type="email"],
.jhq-field input[type="password"],
.jhq-field input[type="number"] {
	padding: 12px 16px;
	border: 2px solid var(--jhq-border);
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.2s;
	outline: none;
	background: var(--jhq-bg);
}

.jhq-field input:focus {
	border-color: var(--jhq-primary);
	background: white;
}

.jhq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	gap: 8px;
}

.jhq-btn-primary {
	background: var(--jhq-primary);
	color: white;
}

.jhq-btn-primary:hover {
	background: var(--jhq-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.jhq-btn-secondary {
	background: var(--jhq-secondary);
	color: white;
}

.jhq-btn-secondary:hover {
	background: #475569;
}

.jhq-btn-outline {
	background: transparent;
	border: 2px solid var(--jhq-border);
	color: var(--jhq-text);
}

.jhq-btn-outline:hover {
	border-color: var(--jhq-primary);
	color: var(--jhq-primary);
}

.jhq-btn-block {
	width: 100%;
}

.jhq-btn-danger {
	background: var(--jhq-danger);
	color: white;
}

.jhq-btn-sm {
	padding: 8px 16px;
	font-size: 13px;
}

/* Alerts */
.jhq-alert {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

.jhq-alert-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: var(--jhq-danger);
}

.jhq-alert-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #16a34a;
}

/* Dashboard */
.jhq-dashboard {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
}

.jhq-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32px;
	flex-wrap: wrap;
	gap: 16px;
}

.jhq-dashboard-header h1 {
	font-size: 28px;
	font-weight: 800;
}

.jhq-judge-info {
	display: flex;
	align-items: center;
	gap: 16px;
}

.jhq-judge-info span {
	color: var(--jhq-text-light);
}

/* Competition Selector */
.jhq-comp-selector {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	background: white;
	border-radius: var(--jhq-radius);
	margin-bottom: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.jhq-comp-selector label {
	font-weight: 600;
	font-size: 14px;
	color: var(--jhq-text-light);
	white-space: nowrap;
}
.jhq-comp-selector select {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid var(--jhq-border);
	border-radius: 8px;
	font-size: 14px;
	background: var(--jhq-bg);
	color: var(--jhq-text);
	cursor: pointer;
	outline: none;
	max-width: 360px;
}
.jhq-comp-selector select:focus {
	border-color: var(--jhq-primary);
	box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Tabs */
.jhq-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 24px;
	background: white;
	border-radius: var(--jhq-radius);
	padding: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.jhq-tab {
	flex: 1;
	padding: 12px 24px;
	border: none;
	background: transparent;
	color: var(--jhq-text-light);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.2s;
}

.jhq-tab.active {
	background: var(--jhq-primary);
	color: white;
}

.jhq-tab:hover:not(.active) {
	background: var(--jhq-bg);
}

.jhq-tab-content {
	display: none;
}

.jhq-tab-content.active {
	display: block;
	animation: jhq-fadeIn 0.3s ease;
}

/* Category Section */
.jhq-category {
	margin-bottom: 32px;
}

.jhq-category h2 {
	font-size: 20px;
	font-weight: 700;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--jhq-border);
	margin-bottom: 16px;
	color: var(--jhq-primary);
}

/* Team Card */
.jhq-team-card {
	background: white;
	border-radius: var(--jhq-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	padding: 24px;
	margin-bottom: 16px;
	transition: all 0.2s;
	border: 1px solid var(--jhq-border);
}

.jhq-team-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.jhq-team-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

.jhq-team-order {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--jhq-primary);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	flex-shrink: 0;
}

.jhq-team-logo {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--jhq-bg);
}

.jhq-team-info {
	flex: 1;
	min-width: 0;
}

.jhq-team-school {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--jhq-primary);
	margin-bottom: 2px;
}

.jhq-team-info h3 {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 4px;
}

.jhq-team-info p {
	color: var(--jhq-text-light);
	font-size: 14px;
	line-height: 1.5;
}

/* Criteria Groups */
.jhq-criteria-group {
	margin-bottom: 16px;
}

.jhq-criteria-group:last-child {
	margin-bottom: 0;
}

.jhq-criteria-group-header {
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px dashed var(--jhq-border);
}

.jhq-criteria-group-header h4 {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--jhq-primary);
}

.jhq-criteria-group-notes {
	font-style: italic;
	color: #64748b;
	font-size: 0.85em;
	margin: 4px 0 0;
}

.jhq-team-comment {
	width: 100%;
	margin-top: 8px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	padding: 6px 8px;
	font-size: 0.85em;
	font-family: inherit;
	resize: vertical;
	box-sizing: border-box;
}

.ms-comment {
	font-size: 0.85em;
	color: #475569;
	font-style: italic;
	padding: 4px 0 4px 16px;
}

.jhq-criterion-header {
	margin-bottom: 6px;
	padding: 4px 0;
}

.jhq-criterion-header strong {
	font-size: 14px;
	color: var(--jhq-text);
}

.jhq-criterion-description {
	font-size: 0.82em;
	color: #94a3b8;
	font-style: italic;
	margin: 2px 0 4px;
	line-height: 1.3;
	text-align: left;
}

.jhq-cs-row {
	margin: 2px 0;
	line-height: 1.4;
}

.jhq-cs-comment {
	display: block;
	font-size: 0.85em;
	color: #475569;
	font-style: italic;
	padding-left: 8px;
}

.jhq-criteria-group-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--jhq-primary);
	margin-top: 4px;
	margin-bottom: 2px;
}

/* Scores */
.jhq-scores {
	display: grid;
	gap: 12px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--jhq-border);
}

.jhq-score-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.jhq-score-label-wrap {
	flex: 1;
	min-width: 0;
}

.jhq-score-row label {
	font-size: 14px;
	font-weight: 500;
	color: var(--jhq-text);
}

.jhq-score-row input[type="number"] {
	width: 80px;
	padding: 8px 12px;
	border: 2px solid var(--jhq-border);
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	outline: none;
	transition: border-color 0.2s;
}

.jhq-score-row input[type="number"]:focus {
	border-color: var(--jhq-primary);
}

.jhq-score-row input[type="number"]::-webkit-inner-spin-button,
.jhq-score-row input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.jhq-score-row input[type="number"] {
	-moz-appearance: textfield;
}

.jhq-total-score {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	margin-top: 12px;
	border-top: 2px solid var(--jhq-primary);
	font-weight: 700;
	font-size: 16px;
}

.jhq-total-score span:last-child {
	color: var(--jhq-primary);
	font-size: 20px;
}

.jhq-team-actions {
	margin-top: 16px;
	display: flex;
	justify-content: flex-end;
}

/* Modal */
.jhq-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.jhq-modal.active {
	display: flex !important;
}

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

.jhq-modal-content {
	position: relative;
	background: white;
	border-radius: var(--jhq-radius);
	padding: 32px;
	max-width: 480px;
	width: 100%;
	margin: 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	animation: jhq-fadeIn 0.2s ease;
}

.jhq-modal-content h2 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 8px;
}

.jhq-modal-content p {
	color: var(--jhq-text-light);
	margin-bottom: 20px;
}

.jhq-modal-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

#jhq-modal-score-summary {
	background: var(--jhq-bg);
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 20px;
}

#jhq-modal-score-summary .ms-row {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	font-size: 14px;
}

#jhq-modal-score-summary .ms-row.ms-total {
	font-weight: 700;
	border-top: 1px solid var(--jhq-border);
	padding-top: 8px;
	margin-top: 8px;
}

/* History / Juryd team card */
.jhq-judged-card {
	background: white;
	border-radius: var(--jhq-radius);
	padding: 20px;
	margin-bottom: 12px;
	border: 1px solid var(--jhq-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.jhq-judged-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.jhq-judged-info h4 {
	font-size: 16px;
	font-weight: 600;
}

.jhq-judged-info .jhq-criteria-breakdown {
	font-size: 13px;
	color: var(--jhq-text-light);
	margin-top: 4px;
}

.jhq-judged-total {
	font-size: 24px;
	font-weight: 800;
	color: var(--jhq-success);
}

/* Results Page */
.jhq-results {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
}

.jhq-results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32px;
}

.jhq-results-header h1 {
	font-size: 32px;
	font-weight: 800;
}

.jhq-results-category {
	margin-bottom: 48px;
}

.jhq-results-category h2 {
	font-size: 24px;
	font-weight: 700;
	color: var(--jhq-primary);
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--jhq-border);
}

.jhq-chart-wrapper {
	background: white;
	border-radius: var(--jhq-radius);
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	border: 1px solid var(--jhq-border);
	margin-bottom: 24px;
}

.jhq-podium {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 32px;
	padding: 24px;
}

.jhq-podium-item {
	text-align: center;
	padding: 20px;
	border-radius: var(--jhq-radius);
	min-width: 160px;
}

.jhq-podium-item.jhq-gold {
	order: 2;
	background: linear-gradient(135deg, #fbbf24, #f59e0b);
	color: white;
	transform: scale(1.1);
	box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.jhq-podium-item.jhq-silver {
	order: 1;
	background: linear-gradient(135deg, #e2e8f0, #94a3b8);
	color: white;
}

.jhq-podium-item.jhq-bronze {
	order: 3;
	background: linear-gradient(135deg, #fed7aa, #d97706);
	color: white;
}

.jhq-podium-rank {
	font-size: 36px;
	font-weight: 800;
	margin-bottom: 4px;
}

.jhq-podium-name {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 4px;
}

.jhq-podium-score {
	font-size: 20px;
	font-weight: 700;
}

/* Notification */
.jhq-notification {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(-80px);
	background: var(--jhq-primary);
	color: white;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
	z-index: 10000;
	transition: transform 0.3s ease;
	pointer-events: none;
}

.jhq-notification.jhq-notification-show {
	transform: translateX(-50%) translateY(0);
}

/* Loading */
.jhq-loading {
	text-align: center;
	padding: 48px;
	color: var(--jhq-text-light);
	font-size: 16px;
}

.jhq-loading::after {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-left: 8px;
	border: 2px solid var(--jhq-border);
	border-top-color: var(--jhq-primary);
	border-radius: 50%;
	animation: jhq-spin 0.6s linear infinite;
	vertical-align: middle;
}

/* Error */
.jhq-error {
	text-align: center;
	padding: 48px;
	color: var(--jhq-danger);
	font-size: 16px;
}

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

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

/* Responsive */
@media (max-width: 768px) {
	.jhq-dashboard-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.jhq-team-header {
		flex-wrap: wrap;
	}

	.jhq-team-logo {
		width: 40px;
		height: 40px;
	}

	.jhq-score-row {
		flex-wrap: wrap;
	}

	.jhq-score-row input[type="number"] {
		width: 70px;
	}

	.jhq-podium {
		flex-direction: column;
		align-items: center;
	}

	.jhq-podium-item.jhq-gold {
		transform: none;
	}

	.jhq-judged-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.jhq-login-card {
		padding: 32px 24px;
	}
}

/* Hall of Fame */
.jhq-hall-of-fame {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
}

.jhq-hof-header {
	text-align: center;
	margin-bottom: 40px;
}

.jhq-hof-header h1 {
	font-size: 36px;
	font-weight: 800;
	background: linear-gradient(135deg, #f59e0b, #d97706);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 8px;
}

.jhq-hof-subtitle {
	color: var(--jhq-text-light);
	font-size: 16px;
}

.jhq-hof-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 32px;
	padding: 16px;
	background: white;
	border-radius: var(--jhq-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	border: 1px solid var(--jhq-border);
}

.jhq-hof-controls label {
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
}

.jhq-hof-controls select {
	padding: 8px 12px;
	border: 2px solid var(--jhq-border);
	border-radius: 8px;
	font-size: 14px;
	flex: 1;
	outline: none;
	background: white;
}

.jhq-hof-controls select:focus {
	border-color: var(--jhq-primary);
}

.jhq-hof-competition {
	margin-bottom: 48px;
}

.jhq-hof-competition h2 {
	font-size: 28px;
	font-weight: 700;
	color: var(--jhq-primary);
	padding-bottom: 12px;
	border-bottom: 3px solid var(--jhq-primary);
	margin-bottom: 24px;
}

.jhq-hof-team {
	background: white;
	border-radius: var(--jhq-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	border: 1px solid var(--jhq-border);
	padding: 24px;
	margin-bottom: 20px;
}

.jhq-hof-team-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--jhq-border);
}

.jhq-hof-team-logo {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	object-fit: cover;
	flex-shrink: 0;
}

.jhq-hof-team-info h3 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 4px;
}

.jhq-hof-organisation {
	color: var(--jhq-text-light);
	font-size: 14px;
}

.jhq-hof-members {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.jhq-hof-member {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: var(--jhq-bg);
	border-radius: 8px;
	transition: box-shadow 0.2s;
}

.jhq-hof-member:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.jhq-hof-member-photo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.jhq-hof-member-placeholder {
	background: linear-gradient(
		135deg,
		var(--jhq-primary),
		var(--jhq-primary-dark)
	);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
}

.jhq-hof-member-info h4 {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 2px;
}

.jhq-hof-member-role {
	font-size: 12px;
	color: var(--jhq-text-light);
}

.jhq-hof-empty {
	text-align: center;
	padding: 64px 24px;
	color: var(--jhq-text-light);
	font-size: 16px;
}

/* Judge Progress */
.jhq-progress {
	max-width: 900px;
	margin: 0 auto;
	padding: 24px;
}

.jhq-progress-header {
	text-align: center;
	margin-bottom: 40px;
}

.jhq-progress-header h1 {
	font-size: 32px;
	font-weight: 800;
	margin-bottom: 4px;
}

.jhq-progress-subtitle {
	color: var(--jhq-text-light);
	font-size: 15px;
	margin-bottom: 24px;
}

.jhq-progress-summary {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	background: var(--jhq-card-bg);
	border: 1px solid var(--jhq-border);
	border-radius: 12px;
	padding: 16px 28px;
}

.jhq-progress-count {
	font-size: 36px;
	font-weight: 800;
	color: var(--jhq-primary);
	line-height: 1;
}

.jhq-progress-label {
	font-size: 14px;
	color: var(--jhq-text-light);
}

.jhq-progress-teams {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.jhq-progress-team {
	background: var(--jhq-card-bg);
	border: 1px solid var(--jhq-border);
	border-radius: var(--jhq-radius);
	padding: 20px 24px;
	transition: box-shadow 0.2s;
}

.jhq-progress-team:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.jhq-progress-team-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
}

.jhq-progress-team-order {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--jhq-primary);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	flex-shrink: 0;
}

.jhq-progress-team-logo {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--jhq-bg);
}

.jhq-progress-team-logo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
	color: var(--jhq-text-light);
}

.jhq-progress-team-info {
	flex: 1;
	min-width: 0;
}

.jhq-progress-team-info h3 {
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 2px;
}

.jhq-progress-organisation {
	font-size: 13px;
	color: var(--jhq-text-light);
}

.jhq-progress-team-status {
	display: flex;
	align-items: baseline;
	gap: 2px;
	flex-shrink: 0;
}

.jhq-progress-number {
	font-size: 24px;
	font-weight: 800;
	color: var(--jhq-primary);
	line-height: 1;
}

.jhq-progress-of {
	font-size: 14px;
	color: var(--jhq-text-light);
}

.jhq-progress-bar-track {
	height: 8px;
	background: var(--jhq-bg);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 16px;
}

.jhq-progress-bar-fill {
	height: 100%;
	border-radius: 4px;
	transition: width 0.5s ease;
	min-width: 0;
}

.jhq-bar-empty {
	background: var(--jhq-border);
}

.jhq-bar-partial {
	background: var(--jhq-primary);
}

.jhq-bar-complete {
	background: var(--jhq-success);
}

.jhq-progress-members {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.jhq-progress-member {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: var(--jhq-bg);
	border-radius: 8px;
	font-size: 13px;
}

.jhq-progress-member-photo {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.jhq-progress-member-placeholder {
	background: var(--jhq-primary);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
}

.jhq-progress-member-name {
	font-weight: 600;
	color: var(--jhq-text);
}

.jhq-progress-member-role {
	color: var(--jhq-text-light);
	font-size: 12px;
}

.jhq-progress-empty {
	text-align: center;
	padding: 64px 24px;
	color: var(--jhq-text-light);
	font-size: 16px;
}

@media (max-width: 480px) {
	.jhq-tabs {
		flex-direction: column;
	}

	.jhq-modal-content {
		padding: 24px;
		margin: 16px;
	}

	.jhq-hof-members {
		grid-template-columns: 1fr;
	}

	.jhq-hof-controls {
		flex-direction: column;
		align-items: stretch;
	}
}

/* Block Wrapper (applies block supports and custom CSS properties) */
.jhq-block-wrapper {
	--jhq-accent: #059669;
	--jhq-bar-color: #059669;
	--jhq-card-bg: #ffffff;
}

/* Plugin Page Wrapper (replaces theme Tailwind classes) */
.jhq-page-content {
	min-height: 100vh;
	background: var(--jhq-bg);
}

.jhq-page-main {
	max-width: 1280px;
	margin: 0 auto;
	padding: 32px 24px;
}

/* Site Header (theme-agnostic — rendered by plugin templates) */
.jhq-site-header {
	background: white;
	border-bottom: 1px solid #e2e8f0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.jhq-site-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.jhq-site-logo {
	font-size: 22px;
	font-weight: 800;
	background: linear-gradient(135deg, #059669, #047857);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-decoration: none;
}

.jhq-site-logo:hover {
	opacity: 0.9;
}

.jhq-header-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.jhq-header-welcome {
	font-size: 14px;
	color: #64748b;
}

.jhq-header-logout {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s;
}

.jhq-header-logout:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
}

/* Hide site header on login page */
.jhq-login-page .jhq-site-header {
	display: none;
}

/* Focus styles */
input:focus-visible,
button:focus-visible {
	outline: 2px solid #059669;
	outline-offset: 2px;
}

/* Login footer links */
.jhq-login-footer {
	text-align: center;
	margin-top: 1.5rem;
	font-size: 0.875rem;
	color: var(--jhq-text-light);
}
.jhq-login-footer a {
	color: var(--jhq-primary);
	text-decoration: none;
	font-weight: 600;
}
.jhq-login-footer a:hover {
	color: var(--jhq-primary-dark);
	text-decoration: underline;
}
.jhq-login-sep {
	margin: 0 0.5rem;
	color: var(--jhq-border);
}

/* Auth alert messages */
.jhq-alert {
	padding: 0.85rem 1rem;
	border-radius: 8px;
	margin-bottom: 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
}
.jhq-alert-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}
.jhq-alert-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}
.jhq-alert a {
	font-weight: 700;
}
.jhq-alert-success a {
	color: #047857;
}
.jhq-alert-error a {
	color: #b91c1c;
}

/* Voting */
.jhq-voting {
	max-width: 800px;
	margin: 0 auto;
	padding: 24px;
}
.jhq-voting-header {
	margin-bottom: 24px;
}
.jhq-voting-header h1 {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--jhq-primary);
	margin: 0 0 4px;
}
.jhq-voting-subtitle {
	color: var(--jhq-text-light);
	font-size: 0.9rem;
	margin: 0;
}
.jhq-voting-login-prompt {
	text-align: center;
	padding: 48px 24px;
	background: var(--jhq-card-bg);
	border-radius: var(--jhq-radius);
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.jhq-voting-login-prompt p {
	margin-bottom: 20px;
	color: var(--jhq-text-light);
}
.jhq-voting-closed {
	text-align: center;
	padding: 48px 24px;
	background: var(--jhq-card-bg);
	border-radius: var(--jhq-radius);
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	color: var(--jhq-text-light);
}
.jhq-voting-teams {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.jhq-voting-team {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	background: var(--jhq-card-bg);
	border-radius: var(--jhq-radius);
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	border: 2px solid transparent;
	transition: border-color 0.2s;
}
.jhq-voting-team:hover {
	border-color: var(--jhq-border);
}
.jhq-voting-team-info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}
.jhq-voting-team-logo {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
}
.jhq-voting-team-name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--jhq-text);
	margin: 0;
}
.jhq-voting-team-desc {
	font-size: 0.85rem;
	color: var(--jhq-text-light);
	margin: 2px 0 0;
}
.jhq-vote-btn {
	padding: 8px 24px;
	border: 2px solid var(--jhq-primary);
	background: var(--jhq-card-bg);
	color: var(--jhq-primary);
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s;
	flex-shrink: 0;
}
.jhq-vote-btn:hover {
	background: var(--jhq-primary);
	color: #fff;
}
.jhq-vote-btn.jhq-voted {
	background: var(--jhq-primary);
	color: #fff;
	border-color: var(--jhq-primary);
	cursor: default;
}
.jhq-vote-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.jhq-voting-message {
	margin-top: 16px;
}
.jhq-voting-results {
	margin-top: 30px;
}
.jhq-voting-results h2 {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--jhq-text);
	margin: 0 0 12px;
}
.jhq-vote-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--jhq-card-bg);
	border-radius: var(--jhq-radius);
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.jhq-vote-table th {
	background: #f1f5f9;
	padding: 12px 16px;
	text-align: left;
	font-size: 0.85rem;
	font-weight: 600;
	color: #475569;
}
.jhq-vote-table td {
	padding: 12px 16px;
	border-top: 1px solid #f1f5f9;
	font-size: 0.9rem;
}
.jhq-vote-total {
	margin-top: 12px;
	font-size: 0.85rem;
	color: var(--jhq-text-light);
	text-align: center;
}
.jhq-vote-tally {
	font-size: 0.85rem;
	color: var(--jhq-text-light);
}

.jhq-judge-comments {
	max-width: 800px;
	margin: 0 auto;
}
.jhq-judge-comments-filters {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
	padding: 16px;
	background: #f8fafc;
	border-radius: var(--jhq-radius);
	border: 1px solid #e2e8f0;
}
.jhq-judge-comments-filters label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #475569;
}
.jhq-judge-comments-filters select {
	padding: 8px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 0.9rem;
	min-width: 200px;
	background: #fff;
}
.jhq-judge-comments-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.jhq-judge-comment-item {
	padding: 16px;
	background: var(--jhq-card-bg);
	border-radius: var(--jhq-radius);
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	border: 1px solid #e2e8f0;
}
.jhq-judge-comment-meta {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 8px;
	font-size: 0.85rem;
}
.jhq-judge-comment-team {
	font-weight: 700;
	color: var(--jhq-primary);
}
.jhq-judge-comment-author {
	color: #64748b;
}
.jhq-judge-comment-text {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #334155;
}

.jhq-results-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	border: 1px solid var(--jhq-border);
	margin-bottom: 24px;
}
.jhq-results-table th {
	background: var(--jhq-primary, #059669);
	color: white;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 12px 16px;
	text-align: left;
}
.jhq-results-table th:first-child { width: 48px; text-align: center; }
.jhq-results-table th:nth-child(3) { text-align: right; }
.jhq-results-table th:nth-child(4) { text-align: center; }
.jhq-results-table td {
	padding: 10px 16px;
	font-size: 14px;
	border-bottom: 1px solid var(--jhq-border, #e2e8f0);
}
.jhq-results-table tr:last-child td { border-bottom: none; }
.jhq-table-rank { text-align: center; font-weight: 700; color: #64748b; }
.jhq-table-name { font-weight: 500; color: #1e293b; }
.jhq-table-school { font-size: 12px; color: #94a3b8; font-weight: 400; }
.jhq-table-score { text-align: right; font-weight: 700; color: var(--jhq-primary, #059669); }
.jhq-table-judges { text-align: center; font-size: 13px; color: var(--jhq-text-light, #64748b); white-space: nowrap; }
.jhq-table-top-1 td { background: rgba(251, 191, 36, 0.08); }
.jhq-table-top-2 td { background: rgba(148, 163, 184, 0.08); }
.jhq-table-top-3 td { background: rgba(217, 119, 6, 0.08); }
.jhq-table-top-1 .jhq-table-score { color: #f59e0b; }
.jhq-table-top-2 .jhq-table-score { color: #64748b; }
.jhq-table-top-3 .jhq-table-score { color: #d97706; }

/* Leaders */
.jhq-leaders-wrap { margin: 16px 0; }
.jhq-leaders-filter { margin-bottom: 16px; }
.jhq-leaders-filter select {
	padding: 8px 12px;
	border: 1px solid var(--jhq-border, #e2e8f0);
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
}
.jhq-leaders-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.jhq-leader-card {
	background: var(--jhq-card-bg, #fff);
	border: 1px solid var(--jhq-border, #e2e8f0);
	border-radius: var(--jhq-radius, 12px);
	padding: 20px;
	text-align: center;
	transition: box-shadow 0.2s;
}
.jhq-leader-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.jhq-leader-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--jhq-primary, #059669);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 700;
	margin: 0 auto 12px;
}
.jhq-leader-name { font-size: 16px; font-weight: 600; color: var(--jhq-text, #1e293b); margin: 0 0 4px; }
.jhq-leader-title { display: block; font-size: 13px; color: var(--jhq-primary, #059669); font-weight: 500; margin-bottom: 4px; }
.jhq-leader-org { display: block; font-size: 12px; color: var(--jhq-text-light, #64748b); }
.jhq-leader-team { display: block; font-size: 12px; color: var(--jhq-text-light, #64748b); font-style: italic; margin-top: 2px; }
.jhq-leaders-empty { text-align: center; color: var(--jhq-text-light, #64748b); padding: 24px; }

/* Timer */
.jhq-timer-wrap {
	max-width: 560px;
	margin: 24px auto;
	background: transparent;
}
.jhq-timer-display {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	border-radius: 20px;
	padding: 40px 32px 32px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
	margin-bottom: 20px;
	position: relative;
	overflow: hidden;
}
.jhq-timer-display::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.jhq-timer-time {
	font-size: 96px;
	font-weight: 300;
	font-variant-numeric: tabular-nums;
	color: #f1f5f9;
	line-height: 1;
	margin-bottom: 12px;
	letter-spacing: 4px;
	transition: color 0.3s;
	font-family: 'SF Mono', 'SFMono-Regular', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
	text-shadow: 0 0 40px rgba(5, 150, 105, 0.15);
}
.jhq-timer-time.jhq-timer-warning {
	color: #fbbf24;
	text-shadow: 0 0 40px rgba(251, 191, 36, 0.25);
}
.jhq-timer-time.jhq-timer-critical {
	color: #ef4444;
	text-shadow: 0 0 60px rgba(239, 68, 68, 0.35);
	animation: jhq-timer-pulse 0.8s ease-in-out infinite;
}
@keyframes jhq-timer-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}
.jhq-timer-team {
	font-size: 18px;
	font-weight: 500;
	color: #94a3b8;
	margin-bottom: 2px;
	letter-spacing: 0.3px;
}
.jhq-timer-team:empty { display: none; }
.jhq-timer-status {
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 2px;
}
.jhq-timer-controls {
	background: var(--jhq-card-bg, #fff);
	border: 1px solid var(--jhq-border, #e2e8f0);
	border-radius: 16px;
	padding: 24px;
}
.jhq-timer-controls-row {
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 12px;
}
.jhq-timer-controls-row:last-child { margin-bottom: 0; }
.jhq-timer-controls-row label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--jhq-text, #1e293b);
}
.jhq-timer-controls-row select,
.jhq-timer-controls-row input[type="number"] {
	padding: 8px 12px;
	border: 1px solid var(--jhq-border, #e2e8f0);
	border-radius: 10px;
	font-size: 14px;
	background: #fff;
	color: var(--jhq-text, #1e293b);
	transition: border-color 0.15s;
}
.jhq-timer-controls-row select:focus,
.jhq-timer-controls-row input[type="number"]:focus {
	border-color: var(--jhq-primary, #059669);
	outline: none;
	box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}
.jhq-timer-btn {
	padding: 10px 22px;
	border-radius: 10px;
	border: none;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s;
	letter-spacing: 0.3px;
}
.jhq-timer-btn:hover { transform: translateY(-1px); }
.jhq-timer-btn:active { transform: translateY(0); }
.jhq-timer-btn-start { background: #059669; color: #fff; }
.jhq-timer-btn-start:hover { background: #047857; box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3); }
.jhq-timer-btn-pause { background: #f59e0b; color: #fff; }
.jhq-timer-btn-pause:hover { background: #d97706; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
.jhq-timer-btn-resume { background: #059669; color: #fff; }
.jhq-timer-btn-resume:hover { background: #047857; box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3); }
.jhq-timer-btn-reset { background: #64748b; color: #fff; }
.jhq-timer-btn-reset:hover { background: #475569; box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3); }
.jhq-timer-btn-add { background: #3b82f6; color: #fff; }
.jhq-timer-btn-add:hover { background: #2563eb; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

/* Intelligent Navigation */
.comp-tally-nav {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	position: relative;
	margin-bottom: 20px;
}
.comp-tally-nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
}
.comp-tally-nav-item {
	margin: 0;
	flex: 0 1 auto;
}
.comp-tally-nav-item a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 500;
	color: #475569;
	text-decoration: none;
	transition: all 0.15s ease;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
}
.comp-tally-nav-item a:hover {
	color: var(--jhq-primary, #059669);
	background: #f1f5f9;
}
.comp-tally-nav-item.active a {
	color: var(--jhq-primary, #059669);
	border-bottom-color: var(--jhq-primary, #059669);
	background: #f0fdf4;
}
.comp-tally-nav-icon {
	font-size: 16px;
	width: 16px;
	height: 16px;
}
.comp-tally-nav-toggle {
	display: none;
	background: none;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 14px;
	cursor: pointer;
	width: 100%;
	text-align: left;
}
.comp-tally-nav-hamburger,
.comp-tally-nav-hamburger::before,
.comp-tally-nav-hamburger::after {
	display: block;
	width: 20px;
	height: 2px;
	background: #475569;
	border-radius: 2px;
	transition: all 0.2s;
}
.comp-tally-nav-hamburger {
	position: relative;
}
.comp-tally-nav-hamburger::before,
.comp-tally-nav-hamburger::after {
	content: '';
	position: absolute;
	left: 0;
}
.comp-tally-nav-hamburger::before { top: -6px; }
.comp-tally-nav-hamburger::after { top: 6px; }
.comp-tally-nav-toggle[aria-expanded="true"] .comp-tally-nav-hamburger {
	background: transparent;
}
.comp-tally-nav-toggle[aria-expanded="true"] .comp-tally-nav-hamburger::before {
	top: 0;
	transform: rotate(45deg);
}
.comp-tally-nav-toggle[aria-expanded="true"] .comp-tally-nav-hamburger::after {
	top: 0;
	transform: rotate(-45deg);
}
.comp-tally-nav-vertical .comp-tally-nav-list {
	flex-direction: column;
	border-radius: 10px;
}
.comp-tally-nav-vertical .comp-tally-nav-item a {
	border-bottom: none;
	border-left: 3px solid transparent;
}
.comp-tally-nav-vertical .comp-tally-nav-item.active a {
	border-left-color: var(--jhq-primary, #059669);
	border-bottom: none;
}
@media (max-width: 768px) {
	.comp-tally-nav-toggle {
		display: block;
	}
	.comp-tally-nav-list {
		display: none;
		flex-direction: column;
		border-top: none;
		border-radius: 0 0 10px 10px;
	}
	.comp-tally-nav-toggle[aria-expanded="true"] + .comp-tally-nav-list {
		display: flex;
	}
	.comp-tally-nav-item a {
		border-bottom: none;
		border-left: 3px solid transparent;
	}
	.comp-tally-nav-item.active a {
		border-left-color: var(--jhq-primary, #059669);
		border-bottom: none;
	}
}

/* Analytics Styles */
.comp-tally-frontend-analytics {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
}

.comp-tally-frontend-analytics h1 {
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 8px;
}

.comp-tally-frontend-analytics .comp-tally-subtitle {
	color: #64748b;
	font-size: 14px;
	margin-bottom: 24px;
}

.analytics-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 16px;
}

.analytics-card h2 {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 16px;
	color: #0f172a;
}

.analytics-stat {
	text-align: center;
	padding: 16px;
	background: #f8fafc;
	border-radius: 8px;
}

.analytics-stat-value {
	font-size: 24px;
	font-weight: 700;
	color: #059669;
}

.analytics-stat-label {
	font-size: 12px;
	color: #64748b;
	margin-top: 4px;
}

.analytics-progress-bar {
	height: 8px;
	background: #e2e8f0;
	border-radius: 4px;
	overflow: hidden;
	margin-top: 8px;
}

.analytics-progress-fill {
	height: 100%;
	background: #059669;
	border-radius: 4px;
	transition: width 0.3s ease;
}

.comp-tally-loading {
	text-align: center;
	padding: 40px;
	color: #64748b;
	font-size: 14px;
}
