* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.container {
	background: white;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.3);
	max-width: 700px;
	width: 100%;
	padding: 40px;
}

h1 {
	color: #2d3748;
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 8px;
	text-align: center;
}

.container h1 {
	color: #2d3748;
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 8px;
	text-align: center;
}

.subtitle {
	color: #718096;
	text-align: center;
	margin-bottom: 32px;
	font-size: 14px;
}

.form-group {
	margin-bottom: 24px;
}

label {
	display: block;
	color: #2d3748;
	font-weight: 600;
	margin-bottom: 8px;
	font-size: 14px;
}

input[type="text"],
input[type="date"],
input[type="file"],
select {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
	outline: none;
	border-color: #667eea;
}

.file-input-wrapper {
	position: relative;
	overflow: hidden;
	display: inline-block;
	width: 100%;
}

.file-input-wrapper input[type=file] {
	position: absolute;
	left: -9999px;
}

.file-input-label {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: #f7fafc;
	border: 2px dashed #cbd5e0;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
}

.file-input-label:hover {
	background: #edf2f7;
	border-color: #667eea;
}

.file-input-label.has-file {
	background: #ebf8ff;
	border-color: #4299e1;
}

.file-input-label.drag-over {
	background: #e6fffa;
	border-color: #38b2ac;
	transform: scale(1.02);
}

.file-icon {
	width: 24px;
	height: 24px;
	margin-right: 8px;
	color: #667eea;
}

.slider-container {
	width: 100%;
}

input[type="range"] {
	width: 100%;
	height: 6px;
	border-radius: 3px;
	background: #e2e8f0;
	outline: none;
	-webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #667eea;
	cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #667eea;
	cursor: pointer;
	border: none;
}

.slider-value {
	float: right;
	color: #667eea;
	font-weight: 700;
}

.format-buttons {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 8px;
}

.format-btn {
	padding: 12px 16px;
	border: 2px solid #e2e8f0;
	background: white;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 14px;
	font-weight: 600;
	color: #4a5568;
}

.format-btn:hover {
	border-color: #cbd5e0;
	background: #f7fafc;
}

.format-btn.active {
	border-color: #667eea;
	background: #ebf8ff;
	color: #667eea;
}

.submit-btn {
	width: 100%;
	padding: 16px;
	background: #667eea !important; /* Fallback solid color */
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	background-color: #667eea !important;
	background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	color: #ffffff !important; /* Force white text */
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	line-height: 1.5;
}

.submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
	transform: translateY(0);
}

.submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.error {
	background: #fed7d7;
	color: #c53030;
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
}

.date-panel {
	background: #f7fafc;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 8px;
}

.date-field {
	display: flex;
	flex-direction: column;
}

.date-label {
	font-size: 12px;
	font-weight: 600;
	color: #4a5568;
	margin-bottom: 6px;
}

.date-field input[type="date"] {
	padding: 10px 12px;
	border: 2px solid #cbd5e0;
	border-radius: 6px;
	font-size: 14px;
}

.date-field input[type="date"]:focus {
	border-color: #667eea;
	outline: none;
}

.date-hint-inside {
	grid-column: 1 / -1;
	color: #718096;
	font-size: 11px;
	text-align: center;
	margin-top: 4px;
}

.subtitle-small {
	font-size: 12px;
	color: #a0aec0;
}

.file-list {
	margin-top: 8px;
	display: none;
}

.date-hint {
	color: #718096;
	font-size: 12px;
	display: block;
	margin-top: 8px;
}

.nav-link {
	text-align: center;
	margin-top: 12px;
}

.nav-link a {
	color: #667eea;
	text-decoration: none;
	font-size: 14px;
}

.footer {
	text-align: center;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
	color: #718096;
	font-size: 12px;
}

/* Content pages */
.content-page {
	line-height: 1.6;
}

.content-page .intro {
	font-style: italic;
	color: #4a5568;
	margin-bottom: 24px;
}

.content-page h2 {
	color: #2d3748;
	margin-top: 32px;
	margin-bottom: 16px;
	font-size: 24px;
	font-weight: 600;
}

.content-page p {
	margin-bottom: 16px;
	color: #4a5568;
}

.content-page ul {
	margin-bottom: 16px;
	padding-left: 24px;
}

.content-page li {
	margin-bottom: 8px;
	color: #4a5568;
}

.content-page a {
	color: #667eea;
	text-decoration: none;
}

.content-page a:hover {
	text-decoration: underline;
}

/* Getting Started page specific styles */
.content-page .workflow {
	text-align: center;
	font-size: 18px;
	padding: 20px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-radius: 8px;
	margin: 24px 0;
	line-height: 1.8;
}

.content-page .workflow strong {
	font-weight: 700;
}

.content-page .workflow-steps {
	background: #f7fafc;
	border-left: 4px solid #667eea;
	padding: 20px 20px 20px 40px;
	margin: 24px 0;
	border-radius: 4px;
}

.content-page .workflow-steps li {
	margin-bottom: 12px;
}

.content-page .note {
	background: #fff9e6;
	border-left: 4px solid #f59e0b;
	padding: 16px;
	margin: 16px 0;
	font-family: 'Courier New', monospace;
	font-size: 14px;
	border-radius: 4px;
}

.content-page .note-small {
	font-size: 13px;
	color: #718096;
	font-style: italic;
	margin-top: -8px;
	margin-bottom: 24px;
}

.content-page code {
	background: #f7fafc;
	padding: 2px 6px;
	border-radius: 3px;
	font-family: 'Courier New', monospace;
	font-size: 13px;
	color: #e53e3e;
}

.content-page h3 {
	color: #4a5568;
	font-size: 18px;
	font-weight: 600;
	margin-top: 24px;
	margin-bottom: 12px;
}

.content-page ol {
	margin-bottom: 16px;
	padding-left: 24px;
	counter-reset: item;
	list-style: decimal;
}

.content-page ol li {
	margin-bottom: 8px;
}

.content-page ol li ul {
	margin-top: 8px;
	margin-left: 16px;
	list-style-type: disc;
}

/* BirdNET-Runner page specific styles */
.content-page .examples {
	background: #f7fafc;
	padding: 12px 20px;
	border-radius: 4px;
	margin: 16px 0;
	list-style: none;
}

.content-page .examples li {
	font-family: 'Courier New', monospace;
	font-size: 14px;
	margin-bottom: 4px;
}

.content-page .workflow-list {
	counter-reset: workflow;
}

.content-page .workflow-list li {
	margin-bottom: 12px;
}

.content-page .prompt {
	background: #2d3748;
	color: #a0aec0;
	font-family: 'Courier New', monospace;
	padding: 12px 16px;
	border-radius: 4px;
	margin: 16px 0;
	font-size: 14px;
}

.content-page .filepath {
	display: block;
	background: #f7fafc;
	padding: 8px 12px;
	margin: 8px 0;
	border-left: 3px solid #667eea;
	border-radius: 3px;
}

.content-page .code-block {
	background: #2d3748;
	color: #68d391;
	font-family: 'Courier New', monospace;
	padding: 16px;
	border-radius: 4px;
	margin: 16px 0;
	font-size: 13px;
	line-height: 1.6;
	overflow-x: auto;
}

.content-page kbd {
	background: #4a5568;
	color: white;
	padding: 3px 8px;
	border-radius: 3px;
	font-family: 'Courier New', monospace;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid #2d3748;
	box-shadow: 0 2px 0 #2d3748;
	display: inline-block;
}

.content-page .tips {
	background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
	border-left: 4px solid #3b82f6;
	padding: 16px 20px;
	border-radius: 4px;
	margin: 16px 0;
}

.content-page .tips li {
	margin-bottom: 8px;
}

.content-page .version-note {
	font-size: 13px;
	color: #718096;
	font-style: italic;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #e2e8f0;
}

/* Download table */
.download-table {
	width: 100%;
	margin: 24px 0;
	border-collapse: collapse;
	table-layout: fixed;
}

.download-table th,
.download-table td {
	padding: 12px 24px;
	text-align: left;
	border-bottom: 1px solid #e2e8f0;
}

.download-table th:first-child,
.download-table td:first-child {
	width: 35%;
}

.download-table th {
	background-color: #f7fafc;
	color: #2d3748;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.download-table tbody tr:hover {
	background-color: #f7fafc;
}

.download-table td {
	color: #4a5568;
}

.download-table a {
	color: #667eea;
	text-decoration: none;
	font-weight: 500;
}

.download-table a:hover {
	text-decoration: underline;
}

/* Header navigation responsive behavior */
#menuBtn,
#menuBtnLoggedOut {
	display: block;
}

@media (min-width: 768px) {
	#menuBtn,
	#menuBtnLoggedOut {
		display: none;
	}
}

#desktopNav,
#desktopNavLoggedOut {
	display: none;
}

@media (min-width: 768px) {
	#desktopNav,
	#desktopNavLoggedOut {
		display: flex;
	}
}

/* Fixed navbar spacer */
body {
	padding-top: 90px !important;
}

/* Admin page heading override */
.admin-page h1 {
	font-size: 36px !important;
	font-weight: 700 !important;
}

/* Accessible status messages (aria-live regions) */
.status-message {
	padding: 12px 16px;
	border-radius: 8px;
	margin-top: 12px;
	font-size: 14px;
	font-weight: 500;
}
.status-info {
	background: #ebf8ff;
	color: #2b6cb0;
	border: 1px solid #bee3f8;
}
.status-error {
	background: #fed7d7;
	color: #c53030;
	border: 1px solid #feb2b2;
}

/* News panel */
.news-panel {
	background: #fffbeb;
	border: 1px solid #fcd34d;
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 24px;
}

.news-panel-content {
	color: #92400e;
	font-size: 0.95rem;
	line-height: 1.6;
}

.news-panel-content p { margin: 0 0 8px; }
.news-panel-content p:last-child { margin-bottom: 0; }
.news-panel-content a { color: #b45309; }
.news-panel-content ul { margin: 0 0 8px 1.4rem; padding: 0; }
.news-panel-content li { margin: 0 0 4px; }
