.gtl-filter-widget {
	background: rgba(30, 30, 30, 0.95);
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
}

.gtl-filter-widget h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 18px;
	font-weight: bold;
	color: #ffffff;
}

.gtl-filter-section {
	margin-bottom: 20px;
}

.gtl-filter-section h4 {
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.gtl-filter-tags,
.gtl-filter-types {
	max-height: 180px;
	overflow-y: auto;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(20, 20, 20, 0.6);
	padding: 12px;
	border-radius: 6px;
}

.widget_gtl_filter_widget {
	margin: 20px 0px;
}

/* Custom scrollbar for filter sections */
.gtl-filter-tags::-webkit-scrollbar,
.gtl-filter-types::-webkit-scrollbar {
	width: 6px;
}

.gtl-filter-tags::-webkit-scrollbar-track,
.gtl-filter-types::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 3px;
}

.gtl-filter-tags::-webkit-scrollbar-thumb,
.gtl-filter-types::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
}

.gtl-filter-tags::-webkit-scrollbar-thumb:hover,
.gtl-filter-types::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.3);
}

.gtl-filter-checkbox {
	display: block;
	margin-bottom: 10px;
	color: #e0e0e0;
	font-size: 14px;
	cursor: pointer;
	transition: color 0.2s ease;
}

.gtl-filter-checkbox:hover {
	color: #ffffff;
}

.gtl-filter-checkbox input[type="checkbox"],
.gtl-filter-checkbox input[type="radio"] {
	margin-right: 10px;
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: #ff8c00;
}

/* Custom checkbox and radio styling */
.gtl-filter-checkbox input[type="checkbox"],
.gtl-filter-checkbox input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 3px;
	background: transparent;
	cursor: pointer;
	position: relative;
	top: 3px;
	transition: all 0.2s ease;
}

.gtl-filter-checkbox input[type="checkbox"]:checked,
.gtl-filter-checkbox input[type="radio"]:checked {
	background: #ff8c00;
	border-color: #ff8c00;
}

.gtl-filter-checkbox input[type="checkbox"]:checked::after,
.gtl-filter-checkbox input[type="radio"]:checked::after {
	content: '\2713';
	position: absolute;
	color: #000;
	font-size: 14px;
	font-weight: bold;
	top: -4px;
	left: 1px;
}

.gtl-filter-checkbox input[type="checkbox"]:checked::after,
.gtl-filter-checkbox input[type="radio"]:checked::after {
	border-color: rgba(255, 255, 255, 0.5);
}

.gtl-filter-search {
	width: 100%;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(20, 20, 20, 0.6);
	border-radius: 6px;
	font-size: 14px;
	color: #ffffff;
	transition: all 0.3s ease;
}

.gtl-filter-search:focus {
	outline: none;
	border-color: #ff8c00;
	background: rgba(20, 20, 20, 0.8);
	box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.2);
}

.gtl-filter-search::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.gtl-filter-buttons {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.gtl-filter-submit,
.gtl-filter-clear {
	flex: 1;
	padding: 12px 20px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
}

.gtl-filter-submit {
	background: #ff6900;
	color: #ffffff;
}

.gtl-filter-submit:hover {
	background: #f54a00;
}

.gtl-filter-clear {
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.gtl-filter-clear:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.3);
}

/* Loading state */
#gtl-servers-list.loading {
	opacity: 0.5;
	pointer-events: none;
	position: relative;
}

#gtl-servers-list.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	border: 4px solid rgba(255, 140, 0, 0.2);
	border-top-color: #ff8c00;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.gtl-filter-widget {
		padding: 15px;
	}
	
	.gtl-filter-buttons {
		flex-direction: column;
	}
	
	.gtl-filter-submit,
	.gtl-filter-clear {
		width: 100%;
	}
}