* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
a{text-decoration: none !important;}
body {
	font-family: Tahoma, sans-serif;
	background: #094368 url('/images/show.gif');
	background-size: cover;
	height: 100vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.header {
	background-color: rgba(44, 62, 80, 0.8);
	color: white;
	padding: 5px;
	text-align: center;
	font-size: 1.5em;
	font-weight: bold;
}
.main-container {
	display: flex;
	flex-direction: column;
	flex: 1;
	overflow: hidden;
	background-color: rgba(44, 62, 80, 0.0);
	gap: 10px;
	padding: 0 10px;
}

.now-group-container {
	flex: 1;
	min-height: 50%;  /* Tối thiểu 50% */
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.next-group-container {
	flex: 1;
	min-height: 30%;  /* Tối thiểu 30% */
	max-height: 50%;  /* Tối đa 50% */
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.group-section {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.group-title {
	background-color: green;
	color: white;
	padding: 5px;
	text-align: center;
	font-size: 1.6em;
	font-weight: bold;
	border-radius: 5px 5px 0 0;
	margin-bottom: 5px;
}
.group-title.next-group {
	background-color: red;
}
.floors-container {
	display: flex;
	flex: 1;
	gap: 10px;
	overflow: hidden;
}
.single-floor-container {
	flex: 1;
	display: flex;
	justify-content: center;
}
.floor-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-width: 0;
}
.floor-title {
	background-color: rgba(0,0,0,0.3);
	color: white;
	padding: 3px;
	text-align: center;
	font-size: 1.2em;
	margin-bottom: 5px;
	border-radius: 3px;
}
.floor-title.floor-A {
	background-color: rgba(30, 144, 255, 0.7);
}
.floor-title.floor-B {
	background-color: rgba(231, 76, 60, 0.7);
}
.floor-content {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 5px;
	scrollbar-width: thin;
	scrollbar-color: #1E90FF rgba(0,0,0,0.2);
	background-color: rgba(33, 21, 81, 0.2);
	border-radius: 5px;
}
.event-badge {
	display: inline-block;
	background-color: rgba(0, 255, 0, 0.5);
	color: white;
	padding: 1px 15px;
	border-radius: 20px;
	font-size: 1em;
	margin-right: 20px;
}
.event-card {
	background-color: rgba(33, 21, 81, 0.2);
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 3px;
	margin-bottom: 5px;
	position: relative;
}
.event-floor-A {
	font-weight: bold;
	background-color: #1E90FF;
	padding: 2px 8px;
	border-radius: 4px;
}
.event-floor-B {
	font-weight: bold;
	background-color: #e74c3c;
	padding: 2px 8px;
	border-radius: 4px;
}
.event-card.floor-A {
	border-left: 5px solid #1E90FF;
	border: 3px solid #1E90FF;
}
.event-card.floor-B {
	border-left: 5px solid #e74c3c;
	border: 3px solid #e74c3c;
}
.event-card.status-1 {
	background-color: rgba(91, 189, 43, 0.2);
}
.event-name {
	font-weight: bold;
	font-size: 1.2em;
	margin-bottom: 5px;
	color: #F9F400;
}
.event-round {
	font-style: italic;
	font-size: 1.2em;
	color: white;
	margin-bottom: 5px;
}
.referees-container, .wears-container {
	margin-top: 3px;
	padding-top: 3px;
	border-top: 1px dashed #ddd;
	display: flex;
	color: white;
	flex-wrap: wrap;
	gap: 5px;
}
.referee-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(60, 179, 113, 0.5);
	color: white;
	padding: 2px;
	border-radius: 50px;
	margin-right: 5px;
	font-size: 0.9em;
	width: 40px;
	height: 20px;
	text-align: center;
}
.referee-badge.checked-in {
	background-color: #27ae60;
	border: 2px solid #1e8449;
}
.wear-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(183, 179, 113, 0.5);
	color: WHITE;
	padding: 3px;
	border-radius: 50px;
	font-size: 1.5em;
	min-width: 65px;
	height: 40px;
	text-align: center;
	font-weight: bold;
	box-sizing: border-box;
	margin: 2px 0;
}
.wear-badge.checked-in {
	background-color: #00CC00;
	color: white;
	border: 2px solid #1e8449;
}
.wear-badge.left {
	background-color: #CC0000;
	color: white;
	border: 2px solid #c0392b;
}
.event-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 3px;
	align-items: center;
}
.event-code {
	font-weight: bold;
	font-size: 1.1em;
	color: #F9F400;
	display: flex;
	align-items: center;
	gap: 10px;
}
.referees-inline {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: 10px;
	cursor: pointer;
}
.referee-badge-small {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(183, 179, 113, 0.5);
	color: white;
	padding: 1px 3px;
	border-radius: 50px;
	font-size: 0.8em;
	width: 36px;
	height: 22px;
	text-align: center;
}
.referee-badge-small.checked-in {
	background-color: #27ae60;
	border: 1px solid #1e8449;
}
.heats-container {
	margin-top: 3px;
}
.heat-group {
	margin-bottom: 5px;
	background-color: rgba(0,0,0,0.2);
	padding: 3px 3px;
	border-radius: 5px;
}
.heat-group:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.wears-container {
	margin-top: 3px;
	padding-top: 3px;
	border-top: 1px dashed rgba(255,255,255,0.3);
	display: flex;
	color: white;
	flex-wrap: wrap;
	gap: 8px;
	row-gap: 3px;
	align-items: center;
	max-height: 150px;
	overflow-y: auto;
	scrollbar-width: thin;
	padding-right: 5px;
}
.heat-title {
	font-weight: bold;
	color: #F9F400;
	margin-bottom: 3px;
	font-size: 0.9em;
}
.heat-table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0;
	color: white;
	border: none;
}
.heat-table td {
	padding: 3px;
	vertical-align: middle;
	text-align: center;
	border: none;
}
.dance-row {
	border-top: 1px solid #4CAF50;
	border-bottom: 1px solid #4CAF50;
}
.heat-row {
	border-bottom: 1px dashed rgba(255,255,255,0.3);
}
.dance-name {
	width: 6%;
	align-items: center;
	justify-content: center;
	background-color: rgba(60, 179, 113, 0.5);
	color: WHITE;
	padding: 5px;
	border-radius: 20px;
	margin-right: 5px;
	font-size: 1.6em;
}
.heat-number {
	width: 6%;
	font-weight: bold;
}
.event-result {
	font-weight: bold;
	color: #F9F400;
	margin-top: 5px;
	padding: 5px;
	background-color: rgba(0,0,0,0.3);
	border-radius: 5px;
	text-align: center;
}

.wear-cell {
	width: 50px; /* Cố định chiều rộng cho số áo */
	padding: 2px 3px;
	vertical-align: top;
}

.info-cell {
	width: auto; /* Chiếm hết không gian còn lại */
	padding: 2px 3px;
	vertical-align: top;
}

.athlete-info-container {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
}

.athlete-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.athlete-item {
	display: flex;
	align-items: center;
	padding: 10px;
	background-color: rgba(30, 144, 255, 0.1);
	border-radius: 5px;
	border-left: 3px solid #F9F400;
}
.athlete-number {
	font-weight: bold;
	width: 60px;
	text-align: center;
	font-size: 1.2em;
}
.athlete-male {
	font-weight: bold;
}
.athlete-female {
	font-weight: bold;
}

.athlete-names {
	text-align: left;
	flex-grow: 1;
	font-size: 1.2em;
	padding-right: 10px;
	display: inline-block;
	vertical-align: top;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-bottom: 2px;
}

.athlete-separator {
	margin: 0 5px;
	color: #ccc;
}

.athlete-club {
	text-align: right;
	white-space: nowrap;
	font-size: 1em;
	margin-left: 10px;
	align-self: flex-end;
	color: #ddd;
	max-width: 100%;
	margin-top: auto; /* Đẩy xuống dưới cùng */
	overflow: hidden;
	text-overflow: ellipsis;
}
/* Responsive khi nội dung quá dài */
@media (max-width: 768px) {
	.athlete-info-wrapper {
		flex-direction: column;
	}
	
	.athlete-names,
	.athlete-club {
		white-space: normal;
		text-overflow: clip;
	}
	
	.athlete-club {
		text-align: left;
		margin-top: 2px;
	}
}

/* Tự động xuống dòng khi nội dung quá dài */
.athlete-info-wrapper.auto-wrap .athlete-names,
.athlete-info-wrapper.auto-wrap .athlete-club {
	white-space: normal;
	text-overflow: clip;
}

.athlete-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 3px;
	color: white;
	border: none;
}
.athlete-table tr {
	margin-bottom: 3px;
	display: block;
	padding: 1px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.athlete-table td {
	padding: 3px;
	vertical-align: middle;
	border: none;
}
.athlete-table .wear-cell {
	width: 8%;
	text-align: center;
	font-weight: bold;
	font-size: 1.2em;
	background-color: rgba(0, 0, 0, 0);
	border-radius: 5px;
}
.athlete-table .info-cell {
	padding-left: 5px;
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 5px;
}
.athlete-table tr:hover td {
	background-color: rgba(255, 255, 255, 0.05);
	transition: background-color 0.3s ease;
}
.athlete-table .wear-badge {
	display: inline-block;
	min-width: 75px;
	height: 40px;
	align-items: center;
	justify-content: center;
	background-color: rgba(183, 179, 113, 0.5);
	color: white;
	border-radius: 20px;
	font-weight: bold;
	text-align: center;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	cursor: pointer;
}
.athlete-table .wear-badge.checked-in {
	background-color: #00CC00;
}
.athlete-table .wear-badge.left {
	background-color: #CC0000;
}
.event-name-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 3px;
}
/* Modal styles */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.8);
}
.modal-content {
	background-color: #094368;
	margin: 5% auto;
	padding: 20px;
	border: 1px solid #1E90FF;
	border-radius: 10px;
	width: 80%;
	max-width: 600px;
	color: white;
	box-shadow: 0 0 20px rgba(30, 144, 255, 0.5);
}
.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}
.close:hover {
	color: white;
}
.modal-title {
	font-size: 1.5em;
	margin-bottom: 20px;
	color: #F9F400;
	text-align: center;
	border-bottom: 1px solid #1E90FF;
	padding-bottom: 10px;
}
.referee-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.referee-item {
	display: flex;
	align-items: center;
	padding: 10px;
	background-color: rgba(30, 144, 255, 0.1);
	border-radius: 5px;
	border-left: 3px solid #1E90FF;
}
.referee-symbol {
	font-weight: bold;
	width: 40px;
	text-align: center;
	font-size: 1.2em;
}
.referee-info {
	flex: 1;
}
.referee-name {
	font-weight: bold;
	margin-bottom: 3px;
}
.referee-code {
	font-size: 0.8em;
	color: #ddd;
}
.referee-status {
	width: 100px;
	text-align: center;
	font-weight: bold;
}
.status-checked-in {
	color: #27ae60;
}
.status-not-checked {
	color: #e74c3c;
}


/* Thiết kế thanh cuộn tùy chỉnh */
.floor-content::-webkit-scrollbar {
	width: 6px;
}
.floor-content::-webkit-scrollbar-thumb {
	background-color: #1E90FF;
	border-radius: 3px;
}
.floor-content::-webkit-scrollbar-track {
	background: rgba(0,0,0,0.1);
}
.floor-content {
	scroll-behavior: smooth;
}
/* Tùy chỉnh thanh cuộn */
.floor-content::-webkit-scrollbar {
	width: 8px;
}
.floor-content::-webkit-scrollbar-track {
	background: rgba(0,0,0,0.1);
	border-radius: 4px;
}
.floor-content::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,0.3);
	border-radius: 4px;
}
.floor-content::-webkit-scrollbar-thumb:hover {
	background: rgba(255,255,255,0.5);
}
.empty-message {
	text-align: center;
	padding: 20px;
	color: #666;
	background-color: rgba(0,0,0,0.1);
	border-radius: 5px;
	margin: 10px;
}