/* Enclosure Search CSS */

#enclosure-search-container {
	font-family: Arial, sans-serif;
	font-size: 14px;
	max-width: 100%;
	margin: 20px 0;
}

.search-header {
	text-align: center;
	margin-bottom: 20px;
}

.search-header h2 {
	background: linear-gradient(180deg, #fff, #ddd 40%, #ccc);
	padding: 15px;
	border: 1px solid #333;
	box-shadow: 8px 8px 5px #444;
	border-radius: 5px;
	color: #333;
	font-size: 1.5em;
}

.search-filters {
	margin-bottom: 30px;
	background: #f9f9f9;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.filter-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #333;
	background: white;
	font-size: 12px;
}

.filter-table th {
	background-color: lightskyblue;
	padding: 8px;
	border: 1px solid #333;
	text-align: center;
	font-weight: bold;
	position: sticky;
	top: 0;
}

.filter-table td {
	padding: 8px;
	border: 1px solid #333;
	text-align: center;
	vertical-align: top;
}

.filter-table select {
	width: 100%;
	min-width: 120px;
	padding: 5px;
	font-size: 12px;
	border: 1px solid #ccc;
	border-radius: 3px;
}

.filter-table input[type="range"] {
	width: 80%;
	margin-bottom: 5px;
}

.filter-table span {
	display: block;
	font-weight: bold;
	color: #333;
	margin-top: 5px;
}

.search-buttons {
	text-align: center;
	margin-top: 20px;
}

#search-btn, #reset-btn {
	background-color: #0274be;
	color: white;
	border: none;
	padding: 12px 20px;
	font-size: 16px;
	cursor: pointer;
	border-radius: 5px;
	margin: 0 10px;
	transition: background-color 0.3s;
}

#search-btn:hover, #reset-btn:hover {
	background-color: #025a9c;
}

#reset-btn {
	background-color: #666;
}

#reset-btn:hover {
	background-color: #555;
}

#loading {
	text-align: center;
	font-size: 16px;
	color: #666;
	padding: 20px;
}

.results-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #333;
	margin-top: 20px;
	font-size: 12px;
	background: white;
}

.results-table th {
	background-color: lightskyblue;
	padding: 8px;
	border: 1px solid #333;
	text-align: center;
	font-weight: bold;
	position: sticky;
	top: 0;
	cursor: pointer;
	user-select: none;
}

.results-table th:hover {
	background-color: #00cccc;
	color: #fff;
}

.results-table th.sort-asc:after {
	content: ' ▲';
	font-size: 10px;
}

.results-table th.sort-desc:after {
	content: ' ▼';
	font-size: 10px;
}

.results-table td {
	padding: 6px;
	border: 1px solid #333;
	text-align: left;
	vertical-align: top;
	word-wrap: break-word;
	max-width: 200px;
}

.results-table tbody tr:nth-child(even) {
	background-color: #f0f8ff;
}

.results-table tbody tr:hover {
	background-color: #e6f3ff !important;
}

.results-table td:hover {
	background-color: yellow !important;
	font-weight: bold;
}

/* Responsive design */
@media screen and (max-width: 768px) {
	.filter-table {
		font-size: 10px;
	}
	
	.filter-table th,
	.filter-table td {
		padding: 4px;
	}
	
	.results-table {
		font-size: 10px;
	}
	
	.results-table th,
	.results-table td {
		padding: 4px;
		max-width: 100px;
	}
	
	#search-btn, #reset-btn {
		padding: 8px 15px;
		font-size: 14px;
	}
}

@media screen and (max-width: 480px) {
	.filter-table,
	.results-table {
		font-size: 9px;
	}
	
	.filter-table select {
		min-width: 80px;
		font-size: 10px;
	}
	
	.results-table td {
		max-width: 60px;
	}
}

/* Print styles */
@media print {
	.search-filters,
	.search-buttons,
	#loading {
		display: none !important;
	}
	
	.results-table {
		font-size: 10px;
	}
	
	.results-table th,
	.results-table td {
		padding: 3px;
		border: 1px solid #000;
	}
	
	.results-table tbody tr:nth-child(even) {
		background-color: #f5f5f5;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}

/* Error and empty state styles */
.error-message {
	color: #d32f2f;
	background-color: #ffebee;
	padding: 10px;
	border: 1px solid #d32f2f;
	border-radius: 5px;
	margin: 10px 0;
}

.empty-state {
	text-align: center;
	color: #666;
	font-style: italic;
	padding: 40px;
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 5px;
}

/* Loading animation */
#loading:after {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #0274be;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-left: 10px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}