* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: linear-gradient(135deg, #4d1118 0%, #7a1f2c 55%, #2f1f22 100%);
	min-height: 100vh;
	padding: 20px;
	color: #333;
}

img,
svg,
canvas,
video {
	max-width: 100%;
}

button,
input,
select,
textarea {
	font: inherit;
}

.top-nav {
	display: flex;
	gap: 12px;
	padding: 18px 32px;
	background: #261a1c;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	scrollbar-width: thin;
}

.top-nav a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-weight: 500;
	padding: 10px 18px;
	border-radius: 10px;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.top-nav a:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.top-nav a.active {
	background: linear-gradient(135deg, #8b1e2d 0%, #b23a48 100%);
	color: #fff;
	box-shadow: 0 8px 22px rgba(139, 30, 45, 0.35);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.header {
	background: linear-gradient(135deg, #2b1a1d 0%, #4b2a2f 100%);
	color: white;
	padding: 32px 40px;
}

.header h1 {
	font-size: 2.4rem;
	font-weight: 700;
	margin: 0 0 12px;
}

.header p {
	font-size: 1.05rem;
	opacity: 0.9;
	font-weight: 300;
	max-width: 760px;
}

.content {
	background: #f8fafc;
	padding: 40px;
}

.panel,
.result-section {
	background: white;
	border-radius: 16px;
	box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
	border: 1px solid rgba(148, 163, 184, 0.2);
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-control {
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	font-size: 16px;
	background: white;
}

.form-control:focus {
	outline: none;
	border-color: #8b1e2d;
	box-shadow: 0 0 0 3px rgba(139, 30, 45, 0.1);
}

.btn {
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
}

.table-display-area {
	width: 100%;
	position: relative;
	background: white;
	border-radius: 12px;
	overflow: auto;
}

.empty-state {
	text-align: center;
	color: #6b7280;
}

.form-control,
.btn,
.tab,
.map-view-button,
.action-card button,
.btn-copy {
	min-height: 44px;
}

.table-display-area,
.layout-area,
.layout-area-wrapper {
	-webkit-overflow-scrolling: touch;
}

.table-display-area table {
	min-width: max-content;
}

.btn-copy {
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
