:root {
	font-family:
		Inter,
		ui-sans-serif,
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
	color: #e8edf7;
	background: #0b1120;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 28px 16px 56px;
	background:
		radial-gradient(circle at top right, #172554 0, transparent 38%),
		#0b1120;
	min-height: 100vh;
}

.container {
	max-width: 1000px;
	margin: auto;
}

h1 {
	margin: 0 0 10px;
	font-size: clamp(2rem, 5vw, 3.5rem);
	letter-spacing: -0.04em;
}

.subtitle {
	color: #aab7cf;
	margin-top: 0;
	font-size: 1.1rem;
	line-height: 1.6;
}

.home {
	max-width: 900px;
	padding-top: 8vh;
}
.hero,
.page-heading {
	margin-bottom: 36px;
}
.eyebrow {
	color: #67e8f9;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.76rem;
	font-weight: 800;
}
.option-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}
.option-card {
	color: inherit;
	text-decoration: none;
	padding: 28px;
	border: 1px solid #263653;
	border-radius: 20px;
	background: rgba(30, 41, 59, 0.82);
	transition:
		transform 0.2s,
		border-color 0.2s,
		background 0.2s;
}
.option-card:hover {
	transform: translateY(-4px);
	border-color: #67e8f9;
	background: #24334d;
}
.option-icon {
	display: block;
	font-size: 2.3rem;
	margin-bottom: 20px;
}
.option-card h2 {
	margin: 0 0 8px;
	font-size: 1.35rem;
}
.option-card p {
	color: #aab7cf;
	line-height: 1.6;
	min-height: 52px;
}
.card-link {
	display: inline-block;
	margin-top: 18px;
	color: #67e8f9;
	font-weight: 700;
}
.weather-card .card-link {
	color: #fbbf24;
}
.topbar {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 52px;
	color: #aab7cf;
}
.topbar a {
	color: #67e8f9;
	text-decoration: none;
	font-weight: 700;
}
.page-heading {
	max-width: 680px;
}

.search-form {
	display: flex;
	gap: 12px;
	align-items: end;
	flex-wrap: wrap;
	padding: 20px;
	background: #1e293b;
	border-radius: 12px;
}

.flight-form {
	align-items: end;
}

label {
	display: grid;
	gap: 6px;
	font-weight: bold;
}

input,
select,
button {
	padding: 11px;
	border-radius: 8px;
	border: 1px solid #475569;
	font-size: 16px;
}

input,
select {
	background: #0f172a;
	color: #e8edf7;
}
input::placeholder {
	color: #64748b;
}

input {
	min-width: 280px;
}

button {
	cursor: pointer;
	background: #38bdf8;
	border: 0;
	font-weight: bold;
	color: #082f49;
}

.current,
.table-wrapper {
	background: #1e293b;
	border-radius: 12px;
	padding: 20px;
	margin-top: 18px;
}

.current-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
	gap: 12px;
}

.item {
	background: #334155;
	padding: 12px;
	border-radius: 8px;
}

.item strong,
.item span {
	display: block;
}

.item span {
	margin-top: 5px;
	color: #cbd5e1;
}

.table-wrapper {
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	white-space: nowrap;
}

th,
td {
	padding: 12px 8px;
	border-bottom: 1px solid #475569;
	text-align: left;
}

#status {
	min-height: 24px;
	color: #fbbf24;
}

.hint {
	color: #8493ad;
	font-size: 0.9rem;
}
.price-history {
	padding: 12px 14px;
	border-radius: 8px;
	background: #1e293b;
	color: #cbd5e1;
}
.price-history.cheaper {
	color: #86efac;
	background: #123326;
}
.price-history.more_expensive {
	color: #fca5a5;
	background: #3a1d25;
}
.price-history.unchanged {
	color: #fde68a;
	background: #3b3015;
}
.flight-result-card {
	background: #1e293b;
	border: 1px solid #334155;
	border-radius: 14px;
	padding: 18px;
	margin-top: 14px;
}
.flight-card-header,
.route-line,
.flight-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.flight-card-header strong {
	color: #67e8f9;
	font-size: 1.3rem;
}
.flight-card-header span,
.flight-meta {
	color: #aab7cf;
	font-size: 0.9rem;
}
.route-line {
	justify-content: flex-start;
	margin: 20px 0 12px;
	font-size: 1.4rem;
}
.route-line span {
	color: #67e8f9;
}
.flight-meta {
	flex-wrap: wrap;
}
.segment-list {
	border-top: 1px solid #334155;
	margin-top: 18px;
	padding-top: 12px;
}
.segment {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 0;
	color: #cbd5e1;
	font-size: 0.9rem;
}
.segment span {
	text-align: right;
}

@media (max-width: 600px) {
	.home {
		padding-top: 4vh;
	}
	.option-grid {
		grid-template-columns: 1fr;
	}
	.topbar {
		margin-bottom: 36px;
	}
	input {
		min-width: 100%;
	}

	.search-form label,
	.search-form button {
		width: 100%;
	}
	.segment {
		flex-direction: column;
		gap: 4px;
	}
	.segment span {
		text-align: left;
	}
}

.history-card .card-link, .topbar-link { color: #c4b5fd; }
.secondary-button { background: #334155; color: #e8edf7; border: 1px solid #475569; }
#history-status { min-height: 24px; color: #fbbf24; }
.history-list { display: grid; gap: 14px; margin-top: 18px; }
.history-card-item, .empty-state { background: #1e293b; border: 1px solid #334155; border-radius: 14px; padding: 18px; }
.history-card-item { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.history-card-item h2 { margin: 4px 0 8px; }
.history-date, .history-meta { margin: 0; color: #aab7cf; }
.history-date { font-size: .85rem; }
.history-actions { display: grid; gap: 12px; justify-items: end; }
.history-actions strong { color: #67e8f9; font-size: 1.2rem; }
.history-actions a { color: #67e8f9; font-weight: 700; }
@media (max-width: 600px) { .history-card-item { align-items: flex-start; flex-direction: column; } .history-actions { justify-items: start; } }
