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

:root {
	--primary-color: #328fa8;
	--hover-color: #3aabc9;
	--background-color: #f8f9fa;
	--text-color: #343a40;
	--font-family: arial, sans-serif;
	--header-height: 60px;
	--border-color: #dee2e6;
}

body {
	font-family: var(--font-family);
	background-color: var(--background-color);
	color: var(--text-color);
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
}

.container {
	background: white;
	border: 2px solid var(--border-color);
	border-radius: 8px;
	box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
	padding: 40px;
	max-width: 900px;
	width: 100%;
}

h1 {
	color: var(--primary-color);
	margin-bottom: 10px;
	font-size: 1.8rem;
}

.subtitle {
	color: var(--text-color);
	margin-bottom: 30px;
	opacity: 0.8;
}

.upload-area {
	border: 2px dashed var(--border-color);
	border-radius: 8px;
	padding: 40px;
	text-align: center;
	transition: all 0.3s ease;
	cursor: pointer;
	margin-bottom: 30px;
	background: white;
}

.upload-area:hover {
	border-color: var(--primary-color);
	background: rgb(50 143 168 / 5%);
}

.upload-area.dragover {
	border-color: var(--primary-color);
	background: rgb(50 143 168 / 10%);
}

.upload-icon {
	font-size: 48px;
	color: var(--primary-color);
	margin-bottom: 10px;
}

input[type="file"] {
	display: none;
}

.btn {
	background-color: var(--primary-color);
	color: white;
	border: none;
	padding: 10px 24px;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	transition:
		background-color 0.3s,
		transform 0.2s;
	margin: 5px;
	display: inline-block;
}

.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.btn:hover:not(:disabled) {
	background-color: var(--hover-color);
	transform: translateY(-1px);
}

.btn-secondary {
	background-color: #6c757d;
}

.btn-secondary:hover:not(:disabled) {
	background-color: #5a6268;
}

.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
	margin: 30px 0;
}

.stat-card {
	background: #f8f9fa;
	border: 1px solid var(--border-color);
	padding: 20px;
	border-radius: 8px;
	text-align: center;
}

.stat-value {
	font-size: 2em;
	font-weight: bold;
	color: var(--primary-color);
}

.stat-label {
	color: var(--text-color);
	margin-top: 5px;
	opacity: 0.8;
}

.alert {
	padding: 15px;
	border-radius: 8px;
	margin: 15px 0;
	border: 1px solid;
}

.alert-error {
	background: #fee;
	color: #c00;
	border-color: #fcc;
}

.alert-success {
	background: #efe;
	color: #060;
	border-color: #cec;
}

.alert-info {
	background: rgb(50 143 168 / 10%);
	color: var(--primary-color);
	border-color: var(--primary-color);
}

.loading {
	display: none;
	text-align: center;
	padding: 20px;
}

.loading.active {
	display: block;
}

.spinner {
	border: 4px solid var(--border-color);
	border-top: 4px solid var(--primary-color);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 15px;
}

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

	100% {
		transform: rotate(360deg);
	}
}

.results {
	display: none;
}

.results.active {
	display: block;
}

.export-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 20px;
	align-items: flex-start;
}

.venue-preview {
	max-height: 400px;
	overflow-y: auto;
	background: #f8f9fa;
	border: 1px solid var(--border-color);
	padding: 15px;
	border-radius: 8px;
	margin-top: 20px;
}

.venue-item {
	padding: 10px;
	border-bottom: 1px solid var(--border-color);
}

.venue-item:last-child {
	border-bottom: none;
}

.venue-name {
	font-weight: bold;
	color: var(--text-color);
}

.venue-details {
	color: var(--text-color);
	opacity: 0.8;
	font-size: 0.9em;
	margin-top: 5px;
}

.badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.85em;
	font-weight: bold;
	margin-left: 10px;
}

.badge-primary {
	background: rgb(50 143 168 / 10%);
	color: var(--primary-color);
}

.badge-success {
	background: #e8f5e9;
	color: #388e3c;
}

.badge-warning {
	background: #fff3e0;
	color: #f57c00;
}

#pyscript-loading-message {
	text-align: center;
	padding: 20px;
	color: var(--primary-color);
}

.hidden {
	display: none;
}

.github-link {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background-color: var(--primary-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
	transition:
		background-color 0.3s,
		transform 0.2s;
	text-decoration: none;
}

.github-link:hover {
	background-color: var(--hover-color);
	transform: scale(1.1);
}

.github-link svg {
	width: 24px;
	height: 24px;
	fill: white;
}

#processing-options {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	margin-bottom: 20px;
}

#processing-options h3 {
	margin-bottom: 15px;
	color: #333;
}

.options-grid {
	display: grid;
	gap: 10px;
}

.checkbox-label {
	display: flex;
	align-items: center;
	cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
	margin-right: 10px;
}

.upload-area .file-size-note {
	margin-top: 10px;
	color: #999;
}

.results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.results-header h2 {
	margin: 0;
}

#split-buttons {
	display: contents;
	width: 100%;
}

.section-heading {
	margin-top: 30px;
}
