html, body, #cesiumContainer {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-family: "Poppins", sans-serif;
}

#header {
	position: absolute;
	top: 10px;
	left: 10px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 15px 20px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
	z-index: 1000;
	min-width: 250px;
}

#header h1 {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.5px;
	line-height: 1.2;
}

#header .subtitle {
	margin: 2px 0 0 0;
	font-size: 14px;
	opacity: 0.9;
	font-weight: 300;
	line-height: 1.2;
}

/* Control toggle button */
.control-toggle {
	position: absolute;
	top: 95px;
	left: 270px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	width: 40px;
	height: 40px;
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.2);
	z-index: 1001;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	user-select: none;
}

.control-toggle:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.toggle-icon {
	font-size: 18px;
	font-weight: bold;
	transition: transform 0.3s ease;
}

.control-toggle.active .toggle-icon {
	transform: rotate(90deg);
}

#controls {
	position: absolute;
	top: 95px;
	left: 10px;
	background-color: white;
	padding: 15px 20px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.15);
	max-height: calc(100vh - 110px);
	overflow-y: auto;
	min-width: 250px;
	font-size: 1.05rem;
	line-height: 1.4;
	transition: all 0.3s ease;
	transform-origin: top left;
	transform: translateX(0);
	opacity: 1;
	pointer-events: auto;
}

#controls.collapsed {
	transform: translateX(-100%);
	opacity: 0;
	pointer-events: none;
}

/* Desktop: keep controls always visible, hide toggle */
@media (min-width: 769px) {
	.control-toggle {
		display: none !important;
	}

	#controls {
		transform: translateX(0) !important;
		opacity: 1 !important;
		pointer-events: auto !important;
	}

	#controls.collapsed {
		transform: translateX(0) !important;
		opacity: 1 !important;
		pointer-events: auto !important;
	}
}

/* Tablet and mobile adjustments */
@media (max-width: 768px) {
	#header {
		top: 5px;
		left: 5px;
		right: 5px;
		min-width: auto;
		padding: 10px 15px;
	}

	#header h1 {
		font-size: 20px;
	}

	#header .subtitle {
		font-size: 12px;
	}

	.control-toggle {
		display: flex; /* Show toggle button on mobile/tablet */
		top: 70px;
		left: 5px;
		width: 35px;
		height: 35px;
	}

	.toggle-icon {
		font-size: 16px;
	}

	#controls {
		top: 70px;
		left: 5px;
		right: 5px;
		min-width: auto;
		max-width: calc(100vw - 10px);
		max-height: calc(100vh - 80px);
		padding: 10px 15px;
		font-size: 1rem;
	}

	.control-section strong {
		font-size: 1rem;
	}

	.intensity-buttons button {
		padding: 6px 10px;
		font-size: 11px;
	}
}

/* Extra small screens */
@media (max-width: 480px) {
	#header h1 {
		font-size: 18px;
	}

	#header .subtitle {
		font-size: 11px;
	}

	.control-toggle {
		top: 60px;
	}

	#controls {
		top: 60px;
		max-height: calc(100vh - 70px);
	}
}

.control-section {
	margin-bottom: 15px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eee;
}

.control-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.control-section strong {
	font-weight: 600;
	color: #333;
	font-size: 1.1rem;
	display: block;
	margin-bottom: 4px;
	line-height: 1.1;
}

.control-section label {
	display: block;
	margin: 8px 0 4px 0;
	font-weight: 400;
	color: #555;
	cursor: pointer;
	line-height: 1.1;
}

.control-section input[type="checkbox"],
.control-section input[type="radio"] {
	margin-right: 8px;
}

.control-section input[type="range"] {
	width: 100%;
	margin: 8px 0;
}

.intensity-buttons {
	margin-top: 8px;
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.intensity-buttons button {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 4px 8px;
	margin: 2px;
	border-radius: 4px;
	font-size: 10px;
	font-family: "Poppins", sans-serif;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	flex: 1;
	min-width: 45px;
	line-height: 1;
}

.intensity-buttons button:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.range-label {
	font-size: 11px;
	color: #666;
	text-align: center;
	margin-top: 4px;
	line-height: 1;
}

/* Hide Cesium's timeline and animation controls */
.cesium-timeline-main,
.cesium-animation-widget {
	display: none !important;
}

/* Adjust the scene to fill the space where timeline was */
.cesium-viewer-bottom {
	display: none !important;
}