/* ── Bolji Kviz — Frontend Styles ───────────────────────────────────────── */

/* Page wrapper */
.uk-section.bkviz-page {
	min-height: 60vh;
	background: transparent linear-gradient(180deg, #551FE6 0%, #E8160B 100%) 0% 0% no-repeat padding-box !important;
	padding-top: 130px;
}

/* Card */
.bkviz-card {
	max-width: 1220px;
	margin: 0 auto;
	border-radius: 12px;
    padding-left: 375px;
}

/* Required field marker */
.bkviz-required {
	color: #e53935;
}

/* ── Open-start / register ──────────────────────────────────────────────── */
.bkviz-open-start-form,
.bkviz-register-form {
	max-width: 480px;
	margin: 0 auto;
}

/* ── Progress bar ───────────────────────────────────────────────────────── */
.bkviz-progress-wrap {
	max-width: 640px;
	margin: 0 auto 8px;
	height: 6px;
	background: #e8e8e8;
	border-radius: 3px;
	overflow: hidden;
}

.bkviz-progress-bar {
	height: 100%;
	background: #1976d2;
	transition: width 0.3s ease;
	width: 0;
}

.bkviz-progress-label {
	max-width: 640px;
	margin: 0 auto 16px;
	font-size: 0.85rem;
	color: #777;
	text-align: right;
}

/* ── Timer ──────────────────────────────────────────────────────────────── */
.bkviz-timer-wrap {
	position: relative;
	width: 72px;
	height: 72px;
	margin: 0 auto 24px;
}

.bkviz-timer-svg {
	width: 72px;
	height: 72px;
	transform: rotate( -90deg );
}

.bkviz-timer-track {
	fill: none;
	stroke: #e8e8e8;
	stroke-width: 5;
}

.bkviz-timer-ring {
	fill: none;
	stroke: #1976d2;
	stroke-width: 5;
	stroke-linecap: round;
	transition: stroke-dashoffset 0.1s linear;
}

.bkviz-timer-ring.bkviz-timer--warning {
	stroke: #e53935;
}

.bkviz-timer-label {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate( -50%, -50% );
	font-size: 1.1rem;
	font-weight: 700;
	color: #1976d2;
	line-height: 1;
}

.bkviz-timer-label.bkviz-timer--warning {
	color: #e53935;
}

/* ── Question text ──────────────────────────────────────────────────────── */
.bkviz-question-text {
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	margin-bottom: 24px;
	min-height: 3em;
}

/* ── Options ────────────────────────────────────────────────────────────── */
.bkviz-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bkviz-option {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 20px;
	background: #fff;
	border: 2px solid #ddd;
	border-radius: 8px;
	font-size: 1rem;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.bkviz-option:hover:not( :disabled ) {
	border-color: #1976d2;
	background: #e3f2fd;
}

.bkviz-option:active:not( :disabled ) {
	background: #bbdefb;
}

.bkviz-pos-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: #1976d2;
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
	border-radius: 50%;
	flex-shrink: 0;
}

.bkviz-option.bkviz-disabled {
	opacity: 0.6;
	cursor: default;
}

.bkviz-option.bkviz-correct {
	border-color: #2e7d32;
	background: #e8f5e9;
}

.bkviz-option.bkviz-correct .bkviz-pos-label {
	background: #2e7d32;
}

.bkviz-option.bkviz-wrong {
	border-color: #c62828;
	background: #ffebee;
}

/* ── Card enter animation ───────────────────────────────────────────────── */
@keyframes bkviz-slide-in {
	from { opacity: 0; transform: translateY( 16px ); }
	to   { opacity: 1; transform: translateY( 0 ); }
}

.bkviz-enter {
	animation: bkviz-slide-in 0.3s ease both;
}

/* ── Score display ──────────────────────────────────────────────────────── */
.bkviz-score-display {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 24px 0 8px;
}

.bkviz-score-value {
	font-size: 3.5rem;
	font-weight: 900;
	color: #1976d2;
	line-height: 1;
}

.bkviz-score-label {
	font-size: 1rem;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* ── Big icon ───────────────────────────────────────────────────────────── */
.bkviz-icon-big {
	color: #1976d2;
}

/* ── Scoreboard table ───────────────────────────────────────────────────── */
.bkviz-scoreboard-table {
	max-width: 800px;
	margin: 24px auto 0;
}

.bkviz-rank-first td {
	font-weight: 700;
	background: #fff8e1;
}

/* ── Admin: badge ───────────────────────────────────────────────────────── */
.bkviz-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 0.8rem;
	font-weight: 600;
}

.bkviz-badge--active {
	background: #e8f5e9;
	color: #2e7d32;
}

.bkviz-badge--inactive {
	background: #ffebee;
	color: #c62828;
}

/* ── Admin: copy button ─────────────────────────────────────────────────── */
.bkviz-url {
	font-size: 0.78rem;
	word-break: break-all;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media ( max-width: 640px ) {
	.bkviz-question-text {
		font-size: 1rem;
	}
	.bkviz-option {
		padding: 12px 14px;
		font-size: 0.9rem;
	}
	.bkviz-card {
		display: block !important;
	}
	.bkviz-card .bkviz-card-image {
		position: unset !important;
		transform: inherit !important;
		display: none !important;
	}
}
@media ( min-width: 639px ) {
}