body {
	background-color: #0f141d;
	color: #e2e8f0;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 20px;
}

h1 { margin-bottom: 5px; font-weight: 400; letter-spacing: 1px; text-align: center; }

.dashboard {
	display: flex;
	gap: 20px;
	max-width: 1000px;
	width: 100%;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.panel {
	background: #1e293b;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
	flex: 1;
	min-width: 300px;
}

.controls {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

label { font-size: 0.9rem; color: #94a3b8; font-weight: 600; }
input[type="datetime-local"] {
	background: #0f141d;
	border: 1px solid #475569;
	color: white;
	padding: 10px;
	border-radius: 4px;
	outline: none;
	font-size: 1rem;
}

.btn {
	background: #3b82f6; /* Green by default now for Active state */
	color: white;
	border: none;
	padding: 10px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
}
.btn:hover { opacity: 0.9; }

.calendar-card {
	background: #0f141d;
	border-left: 4px solid #10b981;
	padding: 15px;
	border-radius: 4px;
	margin-top: 15px;
}
.calendar-card h3 { margin: 0 0 5px 0; color: #10b981; font-size: 1.1rem;}
.calendar-date-display { font-size: 1.4rem; font-weight: bold; font-family: monospace; }

#alert-box {
	height: 24px;
	color: #f59e0b;
	font-weight: bold;
	margin-bottom: 10px;
	text-align: center;
}

/* The Flat Earth Dome Container */
.map-container {
	position: relative;
	width: 450px;
	height: 450px;
	border-radius: 50%;
	border: 5px solid #334155;
	background: radial-gradient(circle, #1e3a8a 0%, #020617 70%);
	overflow: hidden;
	box-shadow: 0 10px 25px -5px rgba(0,0,0,0.7);
}

.fe-map {
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	opacity: 0.4;
	background-image: url('earth.webp');
	background-position: center;
	background-size: cover;
	z-index: 1;
}

/* CSS Shadow/Daylight Overlay Layer */
.shadow-overlay {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	pointer-events: none;
	z-index: 3; 
	mix-blend-mode: multiply; 
}

.ice-wall {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 12px solid #e2e8f0;
	box-sizing: border-box;
	opacity: 0.15;
	pointer-events: none;
	z-index: 4;
}

.north-pole {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 6px;
	height: 6px;
	background: white;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	z-index: 4;
}

.celestial {
	position: absolute;
	top: 50%;
	left: 50%;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: all 0.1s linear;
}

#sun {
	width: 22px;
	height: 22px;
	background: #f59e0b;
	box-shadow: 0 0 20px #f59e0b, 0 0 40px #f59e0b;
	z-index: 10;
}

#moon {
	width: 18px;
	height: 18px;
	background: #cbd5e1;
	box-shadow: 0 0 15px #94a3b8;
	z-index: 9;
}

/* Footer Styling */
.eden-footer {
	width: 100%;
	max-width: 1000px;
	color: #94a3b8;
	padding: 20px 0;
	border-top: 1px solid #1e293b;
	font-size: 0.9rem;
	margin-top: auto;
	position: fixed;
	bottom: 0;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 20px;
	flex-wrap: wrap;
	gap: 15px;
}

.info-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.info-trigger {
	color: #3b82f6;
	font-weight: bold;
	font-family: monospace;
}

.info-text {
	color: #cbd5e1;
}

.info-wrapper .tooltip-box {
	visibility: hidden;
	width: 340px;
	background-color: #1e293b;
	color: #e2e8f0;
	text-align: left;
	border-radius: 6px;
	padding: 15px;
	position: absolute;
	z-index: 100;
	bottom: 130%; 
	left: 0;
	opacity: 0;
	transition: opacity 0.3s, visibility 0.3s;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
	border: 1px solid #334155;
	font-size: 0.85rem;
	line-height: 1.5;
}

.info-wrapper .tooltip-box p {
	margin: 0 0 10px 0;
}

.info-wrapper .tooltip-box p:last-child {
	margin-bottom: 0;
}

.info-wrapper .tooltip-box::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 20px;
	border-width: 6px;
	border-style: solid;
	border-color: #1e293b transparent transparent transparent;
}

.info-wrapper:hover .tooltip-box {
	visibility: visible;
	opacity: 1;
}

.info-wrapper:hover .info-text {
	color: #3b82f6;
}

.copyright a {
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.2s;
}

.copyright a:hover {
	color: #10b981;
}

@media (max-width: 600px) {
	.footer-content { flex-direction: column; text-align: center; }
	.info-wrapper .tooltip-box { left: 50%; transform: translateX(-50%); bottom: 150%; }
	.info-wrapper .tooltip-box::after { left: 50%; transform: translateX(-50%); }
}