* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
}

.app {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.card {
	background: white;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	min-width: 400px;
	max-width: 1200px;
	width: 100%;
}

.card-header {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	color: white;
	padding: 10px 30px;
	text-align: center;
}

.card-header h1 {
	font-size: 28px;
	font-weight: 700;
	/* margin-bottom: 8px; */
}

.card-header p {
	opacity: 0.9;
	font-size: 16px;
}

.card-body {
	padding: 20px 40px 40px 40px;
}

.form-group {
	margin-bottom: 24px;
}

.form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #374151;
}

.form-input {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 16px;
	transition: all 0.3s ease;
}

.form-input:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-select {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 16px;
	background: white;
	transition: all 0.3s ease;
}

.form-select:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
	text-align: center;
}

.btn-primary {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	color: white;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
	background: #f3f4f6;
	color: #374151;
}

.btn-secondary:hover {
	background: #e5e7eb;
}

.btn-danger {
	background: #dc2626;
	color: white;
}

.btn-danger:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
}

.alert {
	padding: 16px;
	border-radius: 8px;
	margin-bottom: 24px;
	font-weight: 500;
}

.alert-error {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
}

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

.loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #ffffff;
	border-radius: 50%;
	border-top-color: transparent;
	animation: spin 1s ease-in-out infinite;
	margin-right: 8px;
}

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

.dashboard {
	max-width: none;
	height: 100%;
	overflow: auto !important;
}

.dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	/* margin-bottom: 30px; */
}

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

.nav-tabs {
	display: flex;
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 30px;
}

.nav-tab {
	padding: 12px 24px;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: 500;
	color: #6b7280;
	border-bottom: 2px solid transparent;
	transition: color 0.3s ease, border-bottom-color 0.5s ease;
}

.nav-tab.active {
	color: #4f46e5;
	border-bottom-color: #4f46e5;
	font-weight: 600;
}

.nav-tab:hover {
	color: #4f46e5;
}

.form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	/* margin-bottom: 24px; */
}

.table-container {
	overflow-x: auto;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Make only bet history tables scrollable vertically */
.bet-history-table-container {
	/* max-height: 400px; */
	overflow-y: auto;
	overflow-x: auto;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bet-history-table-container .v-data-table-footer,
.bet-history-table-container th {
	background: #f9fafb !important;
}

/* Make only bet history tables scrollable vertically */
.miss-match-players-table-container {
	/* max-height: 400px; */
	overflow-y: auto;
	overflow-x: auto;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.miss-match-players-table-container .v-data-table-footer,
.miss-match-players-table-container th {
	background: #f9fafb !important;
}

.table {
	width: 100%;
	border-collapse: collapse;
	background: white;
}

.table th {
	background: #f9fafb;
	padding: 16px;
	text-align: left;
	font-weight: 600;
	color: #374151;
	border-bottom: 1px solid #e5e7eb;
}

.table td {
	padding: 16px;
	border-bottom: 1px solid #e5e7eb;
	color: #6b7280;
}

.table tbody tr:hover {
	background: #f9fafb;
}

.badge {
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.badge-success {
	background: #dcfce7;
	color: #16a34a;
}

.badge-warning {
	background: #fef3c7;
	color: #d97706;
}

.badge-error {
	background: #fef2f2;
	color: #dc2626;
}

.metrics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.metric-card {
	background: #f8fafc;
	padding: 20px;
	border-radius: 12px;
	border-bottom: 4px solid #4f46e5;
}

.metric-title {
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 8px;
}

.metric-value {
	font-size: 24px;
	font-weight: 700;
	color: #1f2937;
}

.progress-bar {
	width: 100%;
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	margin-top: 12px;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
	transition: width 0.3s ease;
}

@media (max-width: 768px) {
	.card-body {
		padding: 20px;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.dashboard-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}

.ellipsis-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pointer {
	cursor: pointer;
}

th {
	color: #374151 !important;
	font-weight: bold !important;
}

.infinite-progress-bar {
	height: 4px;
	background-color: rgba(5, 114, 206, 0.2);
	width: 100%;
	overflow: hidden;
}

.infinite-progress-fill {
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
	animation: indeterminateAnimation 1s infinite linear;
	transform-origin: 0% 50%;
}

@keyframes indeterminateAnimation {
	0% {
		transform: translateX(0) scaleX(0);
	}

	40% {
		transform: translateX(0) scaleX(0.4);
	}

	100% {
		transform: translateX(100%) scaleX(0.5);
	}
}

.metrics-grid.metrics-small {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.75rem;
	margin: 1rem 0;
}

.metrics-grid.metrics-small .metric-card {
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 0.75rem;
	text-align: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.metrics-grid.metrics-small .metric-title {
	font-size: 0.8rem;
	font-weight: 500;
	color: #666;
	margin-bottom: 0.25rem;
}

.metrics-grid.metrics-small .metric-value {
	font-size: 1rem;
	font-weight: 600;
	color: #222;
}


/* Tooltip styles */
.tooltip {
	position: relative;
	display: inline-block;
	cursor: help;
}

.tooltip-text {
	visibility: hidden;
	opacity: 0;
	width: max-content;
	max-width: 220px;
	background-color: #333;
	color: #fff;
	text-align: left;
	border-radius: 6px;
	padding: 6px 8px;
	position: absolute;
	z-index: 1;
	bottom: 125%;
	/* show above title */
	left: 50%;
	transform: translateX(-50%);
	transition: opacity 0.2s;
	font-size: 0.75rem;
	line-height: 1.2;
	white-space: normal;
}

.tooltip-text::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 5px;
	border-style: solid;
	border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
	visibility: visible;
	opacity: 1;
}