/* Fight Simulator - Public Styles */

/* Federation Selector Dropdown */
.fs-federation-selector {
	margin-bottom: 20px;
	padding: 15px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.fs-federation-selector label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #3c434a;
}

.fs-federation-dropdown {
	position: relative;
	display: inline-block;
	min-width: 250px;
}

.fs-federation-dropdown-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 10px 15px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: border-color 0.2s ease;
}

.fs-federation-dropdown-toggle:hover {
	border-color: #0073aa;
}

.fs-federation-dropdown-toggle:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 1px #0073aa;
}

.fs-selected-text {
	flex: 1;
	text-align: left;
	font-weight: 500;
}

.fs-dropdown-arrow {
	margin-left: 10px;
	font-size: 10px;
	transition: transform 0.2s ease;
}

.fs-federation-dropdown.open .fs-dropdown-arrow {
	transform: rotate(180deg);
}

.fs-federation-dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	max-height: 300px;
	overflow-y: auto;
	z-index: 1000;
}

.fs-federation-dropdown.open .fs-federation-dropdown-menu {
	display: block;
}

.fs-federation-option {
	display: flex;
	align-items: center;
	padding: 10px 15px;
	cursor: pointer;
	transition: background-color 0.2s ease;
	margin: 0;
	font-weight: normal;
}

.fs-federation-option:hover {
	background-color: #f0f0f1;
}

.fs-federation-option input[type="checkbox"] {
	margin: 0 10px 0 0;
	cursor: pointer;
}

.fs-federation-option span {
	flex: 1;
	color: #3c434a;
}

/* Deselect All Button */
.fs-deselect-all {
	padding: 8px 15px;
	border-bottom: 1px solid #dcdcde;
	background-color: #f9f9f9;
}

.fs-deselect-all-btn {
	width: 100%;
	padding: 8px 12px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	transition: background-color 0.2s ease;
}

.fs-deselect-all-btn:hover {
	background: #005a87;
}

.fs-deselect-all-btn:active {
	transform: translateY(1px);
}

/* Fight Form Styles */
.fight-simulator-form {
	max-width: 600px;
	margin: 20px 0;
	padding: 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.fight-simulator-form h3 {
	margin-top: 0;
}

.fight-simulator-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

.fight-simulator-form select,
.fight-simulator-form input[type="submit"] {
	width: 100%;
	padding: 10px;
	margin-bottom: 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
}

.fight-simulator-form input[type="submit"] {
	background: #0073aa;
	color: #fff;
	border: none;
	cursor: pointer;
	font-weight: 600;
}

.fight-simulator-form input[type="submit"]:hover {
	background: #005a87;
}

.fs-probability-preview {
	padding: 15px;
	background: #f0f0f1;
	border-radius: 4px;
	margin-bottom: 15px;
}

.fs-probability-preview h4 {
	margin: 0 0 10px;
	font-size: 14px;
}

.fs-probability-bar {
	display: flex;
	height: 30px;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 10px;
}

.fs-probability-initiator,
.fs-probability-opponent {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 600;
}

.fs-probability-initiator {
	background: #0073aa;
}

.fs-probability-opponent {
	background: #d63638;
}

.fs-outcome-message {
	padding: 15px;
	margin: 15px 0;
	border-radius: 4px;
}

.fs-outcome-message.success {
	background: #d5e8d4;
	border: 1px solid #82c341;
	color: #2e5c1a;
}

.fs-outcome-message.error {
	background: #f8d7da;
	border: 1px solid #d63638;
	color: #721c24;
}

/* Rankings Table */

.fight-simulator-rankings {
	margin: 20px 0;
}

.fs-rankings-toggle {
	margin-bottom: 20px;
	text-align: center;
}

.fs-rankings-toggle button {
	padding: 10px 20px;
	margin: 0 5px;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	font-weight: 600;
	border-radius: 4px;
}

.fs-rankings-toggle button.active {
	background: #0073aa;
	color: #fff;
	border-color: #0073aa;
}

.fs-rankings-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fs-rankings-table th,
.fs-rankings-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #f0f0f1;
}

.fs-rankings-table th {
	background: #f6f7f7;
	font-weight: 600;
	border-bottom: 2px solid #ddd;
}

.fs-rankings-table th.sortable {
	cursor: pointer;
	user-select: none;
	position: relative;
	padding-right: 25px;
}

.fs-rankings-table th.sortable:hover {
	background: #e8e8e8;
}

.fs-rankings-table th.sortable .sort-icon {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.3;
}

.fs-rankings-table th.sortable .sort-icon:before {
	content: '↕';
	font-size: 14px;
}

.fs-rankings-table th.sortable.sort-asc .sort-icon:before {
	content: '↑';
	opacity: 1;
}

.fs-rankings-table th.sortable.sort-desc .sort-icon:before {
	content: '↓';
	opacity: 1;
}

.fs-rankings-table tr:hover {
	background: #f9f9f9;
}

.fs-rankings-table tr.current-wrestler {
	background: #fffbcc;
}

.fs-wrestler-name {
	display: flex;
	align-items: center;
}

.fs-wrestler-info {
	display: flex;
	align-items: center;
}

.fs-wrestler-picture {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin-right: 10px;
	object-fit: cover;
}

.fs-rank {
	font-weight: 600;
	color: #2271b1;
}

.fs-points {
	font-weight: 600;
}

/* Responsive */

@media (max-width: 768px) {
	.fs-rankings-table {
		font-size: 14px;
	}
	
	.fs-rankings-table th,
	.fs-rankings-table td {
		padding: 8px 10px;
	}
	
	.fs-wrestler-picture {
		width: 30px;
		height: 30px;
	}
}

@media (max-width: 480px) {
	.fs-rankings-table thead {
		display: none;
	}
	
	.fs-rankings-table tr {
		display: block;
		margin-bottom: 15px;
		border: 1px solid #ddd;
		border-radius: 4px;
	}
	
	.fs-rankings-table td {
		display: flex;
		justify-content: space-between;
		padding: 10px;
		border: none;
	}
	
	.fs-rankings-table td:before {
		content: attr(data-label);
		font-weight: 600;
		margin-right: 10px;
	}
}

/* Match Results Table */

.fight-simulator-results {
	margin: 20px 0;
}

.fs-results-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fs-results-table th,
.fs-results-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #f0f0f1;
}

.fs-results-table th {
	background: #f6f7f7;
	font-weight: 600;
	border-bottom: 2px solid #ddd;
}

.fs-results-table th.sortable {
	cursor: pointer;
	user-select: none;
	position: relative;
	padding-right: 25px;
}

.fs-results-table th.sortable:hover {
	background: #e8e8e8;
}

.fs-results-table th.sortable .sort-icon {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.3;
}

.fs-results-table th.sortable .sort-icon:before {
	content: '↕';
	font-size: 14px;
}

.fs-results-table th.sortable.sort-asc .sort-icon:before {
	content: '↑';
	opacity: 1;
}

.fs-results-table th.sortable.sort-desc .sort-icon:before {
	content: '↓';
	opacity: 1;
}

.fs-results-table tr:hover {
	background: #f9f9f9;
}

.fs-results-table .fs-winner a,
.fs-results-table .fs-loser a {
	color: #2271b1;
	text-decoration: none;
}

.fs-results-table .fs-winner a:hover,
.fs-results-table .fs-loser a:hover {
	text-decoration: underline;
}

.fs-injury {
	text-align: center;
}

.fs-injury-icon {
	color: #ffeb3b;
	font-size: 20px;
	vertical-align: middle;
	background-color: #000000;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.fs-points {
	font-weight: 600;
	color: #2271b1;
}

/* Results Pagination */

.fs-results-pagination {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin-top: 20px;
	padding: 15px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.fs-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #3c434a;
	font-weight: 600;
}

.fs-loading .spinner {
	float: none;
	margin: 0;
}

.fs-pagination-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	width: 100%;
}

.fs-pagination-prev,
.fs-pagination-next {
	padding: 8px 16px;
	background: #0073aa;
	color: #fff;
	text-decoration: none;
	border: none;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.fs-pagination-prev:hover:not(:disabled),
.fs-pagination-next:hover:not(:disabled) {
	background: #005a87;
}

.fs-pagination-prev:disabled,
.fs-pagination-next:disabled {
	background: #ddd;
	color: #a0a5aa;
	cursor: not-allowed;
}

.fs-pagination-info {
	font-weight: 600;
	color: #3c434a;
}

.fs-pagination-goto {
	display: flex;
	align-items: center;
	gap: 8px;
}

.fs-pagination-goto label {
	font-weight: 600;
	color: #3c434a;
	font-size: 14px;
}

.fs-page-input {
	width: 60px;
	padding: 6px 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	text-align: center;
}

.fs-goto-button {
	padding: 6px 12px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.2s ease;
}

.fs-goto-button:hover:not(:disabled) {
	background: #005a87;
}

.fs-goto-button:disabled {
	background: #ddd;
	color: #a0a5aa;
	cursor: not-allowed;
}
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
}

.fs-goto-button:hover {
	background: #005a87;
}

/* Responsive for Results Table */

@media (max-width: 768px) {
	.fs-results-table {
		font-size: 14px;
	}
	
	.fs-results-table th,
	.fs-results-table td {
		padding: 8px 10px;
	}
	
	.fs-injury-icon {
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	.fs-results-table thead {
		display: none;
	}
	
	.fs-results-table tr {
		display: block;
		margin-bottom: 15px;
		border: 1px solid #ddd;
		border-radius: 4px;
	}
	
	.fs-results-table td {
		display: flex;
		justify-content: space-between;
		padding: 10px;
		border: none;
	}
	
	.fs-results-table td:before {
		content: attr(data-label);
		font-weight: 600;
		margin-right: 10px;
	}
	
	.fs-results-pagination {
		flex-direction: column;
		gap: 10px;
	}
}

