/*         .container {
max-width: 1400px;
margin: 0 auto;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
padding: 20px;
} */


.controls {
	display: flex;
	gap: 5px 15px;
	margin-bottom: 15px;
	flex-wrap: wrap;
	flex-shrink: 0;
	position: sticky;
    top: 100px;
	z-index: 100;
	background: #fff;
	box-shadow: 0 -14px 0 #fff;
}

@media (850px < width <= 1179px) {
	.controls {
		top: 165px;
	}
}

.search-box {
	flex: 1;
	min-width: 250px;
}

.search-box input {
	width: 100%;
	padding: 12px 20px !important;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: 
		box-shadow 0.3s ease,
		background 0.3s ease,
		transform 0.3s ease;
}
.search-box input::placeholder {
	color: #252525;
}

.search-box input:focus {
	outline: none;
	background: #e6e6e6;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	transform: translateY(-2px);
}
.search-box input:focus::placeholder {
	color: initial;
}

.view-toggle {
	display: flex;
	gap: 10px;
}

.view-toggle button {
	padding: 12px 24px;
	border: none;
	border-radius: 4px;
	background: white;
	cursor: pointer;
  font-family: "Figtree", sans-serif;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: 
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.view-toggle button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.view-toggle button.active {
	background: #0776D3;
	color: white;
}

.table-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

/* Table View */
#gridView {
	overflow: auto;
	flex: 1;
	background: white;
	border-radius: 4px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
/* 	overflow: auto;
	max-height: 800px; */
}

.champions-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	table-layout: fixed
}

.container.champion-container:has(#cardViewBtn.active) #GridViewHeader {
    display: none;
}

.champions-table--sticky {
	width: 100%;
}

.champions-table th {
	background: #063861;
	color: white;
  font-family: "Figtree", sans-serif;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 9px 15px;
	text-align: left;
	border-right: 1px solid rgba(255,255,255,0.1);
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.champions-table th:last-child {
	border-right: none;
}

.champions-table .club-label:where(th,td) {
	width: 20%;
	min-width: 200px;
}

.champions-table tbody tr {
	border-bottom: 1px solid #e0e0e0;
	transition: background 0.3s ease;
	cursor: pointer;
}

.champions-table tbody tr:hover {
	background: #f5f7fa;
}

.champions-table tbody tr.hidden {
	display: none;
}

.champions-table td {
	padding: 14px 15px;
	border-right: 1px solid #f0f0f0;
	vertical-align: middle;
   color: #222222;
}

.champions-table td:first-child {
	font-family: "Figtree", sans-serif;
  font-weight: 700;
	color: #222222;
}

.champions-table td:last-child {
	border-right: none;
}

/* Round top-left and top-right corners of the header row */
.champions-table thead tr:first-child th:first-child {
  border-top-left-radius: 4px;
}

.champions-table thead tr:first-child th:last-child {
  border-top-right-radius: 4px;
}

/* Make sure the table wrapper respects the radius */
#gridView {
  border-radius: 4px;
  overflow: hidden;
}


/* bottom-left corner: the CLUB cell (rowspan in the first header row) */
.champions-table thead tr:first-child th:first-child {
  border-bottom-left-radius: 4px;
}

/* bottom-right corner: the last cell in the second header row */
.champions-table thead tr:last-child th:last-child {
  border-bottom-right-radius: 4px;
}

/* keep the wrapper clipping clean */
#gridView {
  border-radius: 4px;
  overflow: hidden;
}






/* Card View for Mobile */
.card-view {
	display: none;
	flex-direction: column;
	gap: 20px;
	padding: 20px 0;
	flex: 1;
}

.card-view.active {
	display: flex;
}

.card {
	background: white;
	border-radius: 4px;
	padding: 20px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transition: 
		box-shadow 0.3s ease,
		transform 0.3s ease;
}

@media screen and (min-width: 1024px) {
	.card-view {
		flex-flow: row wrap;
	}
	.card {
		flex: 1 250px;
	}
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.card.hidden {
	display: none;
}

.card-title {
	font-family: "Figtree", sans-serif;
  font-size: 18px;
	font-weight: 800;
	color: #2c3e50;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 3px solid #0776D3;
}

.card-item {
	display: flex;
	margin-bottom: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}

.card-item:last-child {
	border-bottom: none;
}

.card-label {
	font-family: "Figtree", sans-serif;
  font-weight: 700;
	color: #7f8c8d;
	font-size: 12px;
	text-transform: uppercase;
	width: 140px;
	flex-shrink: 0;
}

.card-value {
	color: #2c3e50;
	font-family: "Figtree", sans-serif;
  font-size: 14px;
}

.empty-state {
	text-align: center;
	padding: 60px 20px;
	color: #7f8c8d;
	font-family: "Figtree", sans-serif;
  font-size: 18px;
}

/* Scrollbar styling */
#gridView::-webkit-scrollbar,
.card-view::-webkit-scrollbar {
	width: 8px;
}

#gridView::-webkit-scrollbar-track,
.card-view::-webkit-scrollbar-track {
	background: #f1f1f1;
}

#gridView::-webkit-scrollbar-thumb,
.card-view::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

#gridView::-webkit-scrollbar-thumb:hover,
.card-view::-webkit-scrollbar-thumb:hover {
	background: #555;
}

@media screen and (max-width: 1024px) {
	.champions-table {
		font-size: 12px;
	}

	.champions-table th,
	.champions-table td {
		padding: 12px 10px;
	}

	.champions-table th.club-label {
		min-width: 150px;
	}
}

@media screen and (max-width: 768px) {
	h1 {
		font-family: "Figtree", sans-serif;
    font-size: 24px;
		margin-bottom: 20px;
	}

	.container {
		padding: 15px;
	}

	.controls {
		margin-bottom: 5px;
	}

	.champions-table--sticky {
		display: none;
	}
	
	.view-toggle {
		display: none;
	}

	#gridView {
		display: none !important;
	}

	.card-view {
		display: flex !important;
		gap: 12px;
		padding: 15px;
	}

	.card {
		padding: 15px;
		border-radius: 4px;
	}

	.card-title {
		font-family: "Figtree", sans-serif;
    font-size: 16px;
		margin-bottom: 12px;
		padding-bottom: 8px;
	}

	.card-item {
		margin-bottom: 6px;
		padding: 6px 0;
	}

	.card-label {
		font-family: "Figtree", sans-serif;
    font-size: 11px;
		width: 110px;
	}

	.card-value {
		font-family: "Figtree", sans-serif;
    font-size: 13px;
	}

	.search-box {
		min-width: 100%;
	}

	.search-box input {
		padding: 10px 16px;
		font-family: "Figtree", sans-serif;
    font-size: 13px;
	}
}

.lds-ring,
.lds-ring div {
	box-sizing: border-box;
	margin: auto;
}
.lds-ring {
	display: inline-block;
	position: relative;
	width: 80px;
	height: 80px;
}
.lds-ring div {
	box-sizing: border-box;
	display: block;
	position: absolute;
	width: 64px;
	height: 64px;
	margin: 8px;
	border: 8px solid currentColor;
	border-radius: 50%;
	animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
	border-color: currentColor transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
	animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
	animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
	animation-delay: -0.15s;
}
@keyframes lds-ring {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

   
}