body {
    display: flex;
	color: #f8f9fa;
    min-height: 100vh;
    flex-direction: column;
	background-color: #1a1a1a;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html { margin: 0;  padding: 0; }

.main-content { flex: 1; margin-top: 90px; margin-bottom: 20px;	}

.criteria-row {
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 15px;
	background: #1f2335;
	transition: all 0.3s ease;
	border-left: 5px solid #6c757d;
}

.status-open { border-left-color: #28a745; }
.status-locked { border-left-color: #dc3545; }

.criteria-card { background: #242424; transition: all 0.2s ease; border-left: 5px solid #ffc107; }
.criteria-card:hover { background: #2b2b2b; }

.score-display {
	color: #ffc107;
	min-width: 70px;
	font-size: 1.5rem;
	font-weight: bold;
	text-align: right;
}

.slider-custom {
	height: 10px;
	outline: none;
	border-radius: 5px;
	background: #404040;
}

.contestant-badge {
	color: #1a1a1a;
	font-size: 3rem;
	font-weight: 900;
	padding: 10px 25px;
	background: #ffc107;
	border-radius: 12px;
	display: inline-block;
}

.dashboard-header {
	border-bottom: 3px solid #ffc107;
	background: linear-gradient(135deg, #1f2335, #161925);
}

.rank-badge {
	width: 35px;
	height: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-weight: bold;
	font-size: 1.1rem;
}
.rank-1 { background-color: #c7ab0d !important; color: #000; box-shadow: 0 0 10px rgba(255,215,0,0.5); }
.rank-2 { background-color: #0bb497 !important; color: #000; }
.rank-3 { background-color: #7141a2 !important; color: #000; }
.rank-4 { background-color: #3165b8 !important; color: #000; }
.rank-5 { background-color: #b10e5a !important; color: #fff; }
.rank-other { background-color: #3a3f58; color: #fff; }
.rank-badge { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: bold; font-size: 1.1rem; }

.live-indicator {width: 10px; height: 10px; background-color: #28a745; border-radius: 50%;	display: inline-block;	animation: blink 1.5s infinite;}

@keyframes blink { 0% { opacity: 0.2; } 50% { opacity: 1; } 100% { opacity: 0.2; } }

.card-custom { background: #1e1e1e; border: 1px solid #333; border-radius: 12px; }
.candidate-row { background: #252525; border-radius: 8px; margin-bottom: 12px; padding: 15px; }
.score-display { font-size: 1.5rem; font-weight: bold; color: #ffc107; min-width: 60px; text-align: right; }
.num-badge { background: #ffc107; color: #000; font-weight: bold; padding: 5px 12px; border-radius: 6px; }
.locked-overlay { opacity: 0.6; pointer-events: none; }

.login-card {
	background: #161925;
	border: 1px solid #2d334d;
	border-radius: 16px;
	width: 100%;
	max-width: 420px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.login-header {
	border-bottom: 2px solid #ffc107;
	text-align: center;
	padding-bottom: 15px;
}
.form-control-custom {
	background-color: #1f2335 !important;
	border: 1px solid #3b4261 !important;
	color: #fff !important;
}
.form-control-custom:focus {
	border-color: #ffc107 !important;
	box-shadow: 0 0 8px rgba(255, 193, 7, 0.3) !important;
}

.analytics-card { background: #1f2833; border: 1px solid #45f3ff33; border-radius: 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); padding: 25px; height: 100%; }
.pulse-live { width: 12px; height: 12px; background-color: #00ffcc; border-radius: 50%; display: inline-block; animation: pulse-glow 1.8s infinite; }
@keyframes pulse-glow {
	0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.7); }
	70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 204, 0); }
	100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 204, 0); }
}

/* Premium Podium Winner Card Styles */
.winner-podium-card {
	border-radius: 14px;
	padding: 18px;
	text-align: center;
	box-shadow: 0 8px 16px rgba(0,0,0,0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.1);
}
.winner-podium-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}

.title-banner { font-size: 0.85rem; font-weight: 800; text-uppercase: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; opacity: 0.9; }
.cand-num { font-size: 1.8rem; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.cand-name { font-size: 1.1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.cand-score { font-size: 0.9rem; font-weight: bold; opacity: 0.85; }
.floating-icon { position: absolute; right: -10px; bottom: -10px; font-size: 4.5rem; opacity: 0.12; transform: rotate(-15deg); }

.footer {
  background: #121212 !important;
  color: var(--text-muted) !important;
  padding: 15px 0px 15px 0px !important;
  border-top: 1px solid var(--border-glass);
}

.table-custom { background-color: #1a1d2e; color: #fff; border-radius: 8px; overflow: hidden; }
.table-custom th { background-color: #24293e; color: #ffc107; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.table-custom td { vertical-align: middle; border-color: #2d334d; }
tr:hover { background:#bbb;color: #121212; }

/* 🔥 CSS PRINT MEDIA QUERIES FOR SEPARATED PRINT DOM MANAGEMENT */
.print-only-header, .signature-section { display: none !important; }
@media print {
	body {background-color: #ffffff !important; color: #000000 !important; font-size: 11px; }
	nav, .navbar, .dashboard-header, button, .btn, .live-indicator, .no-print, .nav-tabs { display: none !important; }
	.table-responsive{border-radius:10px !important;border:1px solid #000 !important}
	.tab-content > .tab-pane { display: none !important; opacity: 0 !important; }	
	.tab-content > .tab-pane.active { display: block !important; opacity: 1 !important; } 
	.container-fluid, .card { background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; }
	.table-custom { background-color: #ffffff !important; color: #000000 !important; border: 1px solid #000 !important; width: 100% !important; }
	.table-custom th { background-color: #f2f2f2 !important; color: #000000 !important; border: 1px solid #000 !important; }
	.table-custom td { border: 1px solid #000 !important; color: #000000 !important; }
	.text-white { color: #000000 !important; }
	.text-warning { color: #000000 !important; font-weight: bold; }
	.badge { border: 1px solid #000; color: #000 !important; background: transparent !important; }
	.rank-badge { border: 1px solid #000 !important; background: transparent !important; color: #000 !important; box-shadow: none !important; }
	
	.print-only-header, .signature-section { display: block !important; }
	
	.print-header-layout {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		width: 100% !important;
		margin-bottom: 25px !important;
		border-bottom: 3px double #000 !important;
		padding-bottom: 15px !important;
	}
	.print-logo-slot {
		width: 90px !important;
		height: 90px !important;
		border: 2px dashed #bbb;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		font-size: 10px !important;
		color: #777 !important;
		text-align: center !important;
		font-weight: bold !important;
		border-radius: 50% !important;
	}
	.print-logo-slot img {
		width: 100% !important;
		height: 100% !important;
		object-fit: contain !important;
	}
	.print-title-text { text-align: center !important; flex-grow: 1 !important; }
	.sig-container { display: block !important; width: 100% !important; margin-top: 30px; }
	.sig-row { display: flex !important; flex-wrap: wrap !important; justify-content: flex-start !important; text-align: center !important; }
	.sig-box { width: 33.33% !important; box-sizing: border-box !important; padding: 15px; margin-bottom: 20px; display: inline-block !important; vertical-align: top; page-break-inside: avoid; }
	.sig-line { border-top: 1px solid #000 !important; width: 85% !important; margin: 45px auto 8px auto !important; }
	.footer{display:none}
}
