/* Global Styles */
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.container {
	background: url('moon.jpg') center / cover fixed;
	background-color: #000;
	min-height: 100vh;
}

/* Header and Navigation */
header {
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
}

.header-row {
	display: flex;
	align-items: center;
	padding: 16px 40px;
	color: white;
}

.header-title {
	font-size: 24px;
	font-weight: 500;
	letter-spacing: 0.5px;
	margin: 0;
}

.spacer {
	flex: 1;
}

.nav {
	display: flex;
	align-items: center;
}

.nav-link {
	font-size: 14px;
	font-weight: 500;
	padding: 8px 16px;
	transition: all 0.3s ease;
	color: white !important;
	text-decoration: none;
	border-radius: 4px;
	margin: 0 4px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.nav-link:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.nav-link.current {
	opacity: 0.5;
	pointer-events: none;
	cursor: default;
	background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
main {
	padding-top: 80px;
}

.page-content {
	padding: 24px;
	max-width: 1200px;
	margin: 0 auto;
}

/* Card Styles */
.card {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	background: rgba(0, 0, 0, 0.6);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-content {
	padding: 24px;
}

/* Index Page - Map and Form Styles */
.card-media {
	background-color: #2c2c2c;
}

#mapholder {
	height: 375px;
	width: 100%;
	background: #e0e0e0;
}

.card-actions {
	padding: 16px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section {
	margin-bottom: 24px;
}

.form-section h3 {
	margin: 0 0 8px 0;
	color: white;
	font-size: 18px;
	font-weight: 500;
}

.form-instructions {
	margin: 0 0 16px 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 14px;
	font-style: italic;
}

.input-group {
	margin-bottom: 16px;
}

.input-label {
	display: block;
	margin-bottom: 6px;
	color: white;
	font-size: 14px;
	font-weight: 500;
}

.input-row {
	display: flex;
	gap: 16px;
	margin-bottom: 8px;
}

.input-row > div {
	flex: 1;
}

input[type="number"] {
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 4px;
	padding: 10px 12px;
	color: white;
	font-size: 16px;
	width: 100%;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.3);
}

input[type="number"]:focus {
	outline: none;
	border-color: #2196F3;
	box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

input[readonly] {
	border: none;
	background: transparent;
	padding: 0;
}

.results-section {
	background: rgba(255, 255, 255, 0.05);
	padding: 20px;
	border-radius: 8px;
	margin: 24px 0;
	border: 2px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.results-section h3 {
	margin: 0 0 16px 0;
	color: white;
	font-size: 18px;
	font-weight: 500;
}

.result-item {
	background: rgba(0, 0, 0, 0.4);
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 16px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-item:last-child {
	margin-bottom: 0;
}

.result-label {
	font-weight: 500;
	color: white;
	font-size: 16px;
	white-space: nowrap;
}

.result-value {
	font-size: 18px;
	color: white;
	font-weight: 500;
}

#errormessage {
	color: #ff6b6b;
	font-size: 14px;
	min-height: 20px;
	margin-top: 12px;
}

.btn {
	background: #2196F3;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.btn:hover {
	background: #1976D2;
}

.btn:active {
	background: #0D47A1;
}

/* About Page - Light card style */
.about-page .card {
	background: white;
	border: none;
}

.about-page .card-content {
	line-height: 1.6;
}

.about-page .card-content p {
	margin: 0 0 16px 0;
	color: #333;
	font-size: 16px;
}

.about-page .card-content p:last-child {
	margin-bottom: 0;
}

.about-page .card-content a {
	color: #1976d2;
	text-decoration: none;
	transition: color 0.3s ease;
}

.about-page .card-content a:hover {
	color: #0d47a1;
	text-decoration: underline;
}

/* Calendar Page - Table styles */
.calendar-page .card {
	max-width: 800px;
	background: white;
	border: none;
	padding: 24px;
}

table {
	width: 100%;
	border: none;
}

table thead {
	background-color: #f5f5f5;
}

table th {
	color: #333;
	font-weight: 600;
	padding: 12px 16px;
	text-align: left;
}

.mdl-data-table td {
	color: #555;
	padding: 12px 16px;
	border-top: 1px solid #e0e0e0;
}

table tbody tr:hover {
	background-color: #f9f9f9;
}

table tfoot th {
	background-color: #e8e8e8;
	text-align: center;
	padding: 16px;
	font-weight: 500;
	color: #666;
	font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
	.page-content {
		padding: 12px;
	}

	.header-row {
		padding: 16px 20px;
	}

	.calendar-page .card {
		padding: 12px;
	}

	table th,
	table td {
		padding: 8px;
		font-size: 12px;
	}
}

@media (max-width: 600px) {
	.card-content {
		padding: 16px;
	}

	.input-row {
		flex-direction: column;
		gap: 0;
	}

	#mapholder {
		height: 312px;
	}
}
