:root {
	--bg-page: #f4f7f5;
	--bg-card: rgba(255, 255, 255, 0.92);
	--bg-navbar: rgba(255, 255, 255, 0.82);
	--text-main: #12263a;
	--text-soft: #4d6478;
	--primary: #0f8b8d;
	--primary-hover: #0b6e70;
	--accent: #ff7a59;
	--line: #d9e4ea;
	--danger: #b83338;
	--success: #1b7f5b;
	--shadow: 0 16px 40px rgba(18, 38, 58, 0.12);
}

* {
	box-sizing: border-box;
}

.app-body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	margin: 0;
	color: var(--text-main);
	font-family: "Space Grotesk", "Segoe UI", sans-serif;
	background:
		radial-gradient(1000px 500px at -10% -15%, rgba(15, 139, 141, 0.20), transparent 60%),
		radial-gradient(800px 380px at 120% -10%, rgba(255, 122, 89, 0.23), transparent 55%),
		linear-gradient(140deg, #f8fbfa 0%, var(--bg-page) 40%, #edf3f8 100%);
}

.app-content {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
	font-family: "Fraunces", Georgia, serif;
	letter-spacing: 0.2px;
}

h1,
h2,
h3 {
	color: #0f2b46;
}

p,
li,
small,
label,
td,
th {
	color: var(--text-soft);
}

a {
	color: var(--primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--primary-hover);
}

.nav-wrap {
	position: sticky;
	top: 0;
	z-index: 1040;
	padding-top: 1rem;
}

.app-navbar {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(15, 139, 141, 0.2);
	border-radius: 16px;
	padding: 0.85rem 1rem;
	background: linear-gradient(
		120deg,
		rgba(227, 245, 248, 0.93) 0%,
		rgba(216, 234, 249, 0.9) 52%,
		rgba(225, 247, 237, 0.9) 100%
	);
	box-shadow: 0 10px 30px rgba(15, 43, 70, 0.09);
	backdrop-filter: blur(7px);
}

.app-navbar::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 92% -20%, rgba(255, 122, 89, 0.28), rgba(255, 122, 89, 0));
	pointer-events: none;
}

.app-navbar > * {
	position: relative;
	z-index: 1;
}

.app-navbar .navbar-brand {
	color: #0f2b46;
	font-weight: 700;
	font-size: 1.22rem;
}

.app-navbar .nav-link {
	border-radius: 999px;
	margin: 0.18rem 0.1rem;
	padding: 0.35rem 0.6rem;
	color: #214763;
	font-weight: 500;
	font-size: 0.98rem;
	display: flex;
	align-items: center;
	gap: 0.35em;
	white-space: nowrap;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
	color: #fff;
	background: linear-gradient(120deg, var(--primary), #20a4a6);
}

.app-navbar .nav-link.active {
	color: #fff;
	background: linear-gradient(120deg, #0d6f7b, #108ea0);
	box-shadow: 0 8px 14px rgba(13, 111, 123, 0.24);
}

.user-state {
	border: 1px solid rgba(15, 139, 141, 0.28);
	border-radius: 999px;
	padding: 0.38rem 0.9rem;
	color: #0e5360;
	font-size: 0.9rem;
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.75);
}

.page-shell {
	margin-top: 1.1rem;
	margin-bottom: 1.3rem;
	border: 1px solid var(--line);
	border-radius: 24px;
	padding: clamp(1rem, 1.2vw + 0.8rem, 2rem);
	background: var(--bg-card);
	box-shadow: var(--shadow);
	animation: page-enter 0.42s ease-out;
}

.page-shell > h1:first-child {
	margin-top: 0.2rem;
}

.page-shell ul {
	padding-left: 1.2rem;
}

.page-shell li {
	margin-bottom: 0.35rem;
}

.hero-panel {
	position: relative;
	overflow: hidden;
	padding: clamp(1rem, 2vw, 1.7rem);
	margin-bottom: 1.2rem;
	border: 1px solid rgba(15, 139, 141, 0.28);
	border-radius: 18px;
	background: linear-gradient(140deg, rgba(15, 139, 141, 0.12), rgba(16, 110, 155, 0.06));
}

.hero-panel::after {
	content: "";
	position: absolute;
	width: 220px;
	height: 220px;
	top: -90px;
	right: -70px;
	border-radius: 999px;
	background: radial-gradient(circle at center, rgba(255, 122, 89, 0.35), rgba(255, 122, 89, 0));
	pointer-events: none;
}

.hero-kicker {
	margin-bottom: 0.45rem;
	font-size: 0.84rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #0b6e70;
}

.hero-panel h1 {
	margin-bottom: 0.6rem;
	font-size: clamp(1.5rem, 2.5vw, 2.3rem);
	line-height: 1.2;
}

.hero-lead {
	max-width: 780px;
	font-size: 1.02rem;
	line-height: 1.55;
	color: #35566f;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1rem;
}

.quick-start {
	margin-bottom: 1.25rem;
	padding: 0.3rem 0.1rem;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem;
}

.feature-card {
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 1rem;
	background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
	box-shadow: 0 8px 16px rgba(18, 38, 58, 0.08);
}

.feature-card h3 {
	margin-bottom: 0.55rem;
	font-size: 1.2rem;
}

.feature-card ul {
	margin-bottom: 0;
}

.wrapper,
.page-shell form {
	max-width: 720px;
}

.wrapper {
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 1.2rem;
	background: rgba(255, 255, 255, 0.9);
	margin: 0 auto;
}

.form-group {
	margin-bottom: 1rem;
}

.form-control,
.form-control-file,
input[type="file"],
input[type="text"],
input[type="email"],
input[type="password"] {
	border: 1px solid #c9d7df;
	border-radius: 12px;
	background: #fff;
	padding: 0.63rem 0.78rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
input[type="file"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
	border-color: #53b8ba;
	box-shadow: 0 0 0 3px rgba(83, 184, 186, 0.2);
}

label {
	margin-bottom: 0.35rem;
	color: #214763;
	font-weight: 600;
}

.btn {
	border: none;
	border-radius: 12px;
	font-weight: 600;
	transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 18px rgba(18, 38, 58, 0.14);
}

.btn-primary {
	background: linear-gradient(120deg, var(--primary), #1ca6a8);
}

.btn-primary:hover {
	background: linear-gradient(120deg, var(--primary-hover), #138a8d);
}

.btn-success {
	background-color: var(--success);
}

.btn-warning {
	background-color: var(--accent);
	color: #fff;
}

.btn-outline-danger {
	border: 1px solid var(--danger);
	color: var(--danger);
	background: transparent;
}

.btn-outline-danger:hover {
	color: #fff;
	background: var(--danger);
}

.alert {
	border-radius: 12px;
	border: 1px solid transparent;
}

.alert-danger {
	border-color: rgba(184, 51, 56, 0.25);
	background: #ffe9ea;
	color: #7f2126;
}

.alert-warning {
	border-color: rgba(201, 142, 38, 0.28);
	background: #fff4de;
	color: #7f5a10;
}

.alert-success {
	border-color: rgba(27, 127, 91, 0.24);
	background: #e7f7ef;
	color: #14543c;
}

.table {
	margin-top: 1rem;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line);
}

.table th,
.table td {
	padding: 0.78rem;
	vertical-align: middle;
	border-color: #e2ebf0;
}

.table th {
	color: #113350;
	font-weight: 700;
	background: #f2f8fb;
}

.user-details-link {
	color: #0d6f7b;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
}

.user-details-link:hover,
.user-details-link:focus {
	color: #084d58;
}

.table tr:hover td {
	background: #f8fbfd;
}

.table-responsive {
	border-radius: 14px;
}

.upload-page-header {
	margin-bottom: 1.1rem;
	padding: 0.35rem 0.2rem 0.25rem;
	border-bottom: 1px solid rgba(15, 139, 141, 0.14);
}

.upload-page-header h1 {
	margin-bottom: 0.45rem;
	font-size: clamp(1.45rem, 2vw, 2rem);
}

.upload-page-lead {
	max-width: 760px;
	margin-bottom: 0;
	font-size: 0.98rem;
}

.upload-feedback {
	margin-bottom: 1rem;
	box-shadow: 0 8px 18px rgba(18, 38, 58, 0.05);
}

.upload-main-card,
.upload-report-card {
	margin-bottom: 1rem;
	padding: 1.15rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 253, 0.96) 100%);
	border-color: rgba(15, 139, 141, 0.18);
}

.upload-main-card h2,
.upload-report-card h2 {
	margin-bottom: 0.35rem;
}

.upload-section-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.95rem;
}

.upload-section-text {
	max-width: 640px;
	line-height: 1.55;
	color: #35566f;
}

.upload-stat-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.42rem 0.8rem;
	border: 1px solid rgba(15, 139, 141, 0.22);
	border-radius: 999px;
	background: rgba(15, 139, 141, 0.08);
	color: #0b6e70;
	font-size: 0.88rem;
	font-weight: 700;
	white-space: nowrap;
}

.upload-form {
	max-width: none;
}

.upload-note {
	margin-top: 1rem;
	padding: 0.8rem 0.95rem;
	border: 1px solid rgba(255, 122, 89, 0.22);
	border-radius: 12px;
	background: rgba(255, 122, 89, 0.08);
}

.upload-report-card .table {
	margin-top: 0.6rem;
}

.upload-report-actions {
	margin-top: 0.9rem;
}

.upload-task-brief {
	margin-top: 1.5rem;
	padding: 1.25rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 248, 251, 0.96) 100%);
	border-color: rgba(15, 139, 141, 0.2);
}

.upload-task-brief h2 {
	margin-bottom: 0.85rem;
}

.upload-task-copy p {
	max-width: 860px;
	margin-bottom: 0.75rem;
	line-height: 1.6;
	color: #35566f;
}

.upload-task-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.2rem;
}

.upload-task-panel {
	border: 1px solid rgba(15, 139, 141, 0.16);
	border-radius: 16px;
	padding: 1rem;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 8px 16px rgba(18, 38, 58, 0.06);
}

.upload-task-panel h3 {
	margin-bottom: 0.65rem;
	font-size: 1.12rem;
}

.upload-sample-download {
	margin-bottom: 0.85rem;
}

.upload-task-list {
	margin-bottom: 0;
	padding-left: 1.1rem;
	color: var(--text-soft);
}

.upload-task-list li {
	margin-bottom: 0.5rem;
	line-height: 1.55;
}

.upload-task-examples {
	display: grid;
	gap: 1rem;
}

.upload-task-label {
	margin-bottom: 0.5rem;
	font-size: 0.92rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #0b6e70;
}

.upload-task-table td {
	width: 33.33%;
	background: #fff;
}

.upload-task-pre {
	margin-top: 0;
	margin-bottom: 0;
	background: #f5fafc;
}

pre,
.xdebug-var-dump {
	margin-top: 1rem;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #f8fcff;
	padding: 1rem;
	font-size: 0.88rem;
	line-height: 1.45;
	overflow-x: auto;
}

.site-footer {
	flex-shrink: 0;
	margin-top: 0.25rem;
	padding-bottom: 1rem;
	text-align: center;
}

.site-footer .rights {
	display: inline-flex;
	gap: 0.35rem;
	align-items: center;
	border: 1px solid rgba(15, 139, 141, 0.2);
	border-radius: 999px;
	padding: 0.4rem 0.95rem;
	background: rgba(255, 255, 255, 0.82);
}

.site-footer .rights a {
	color: #214763;
}

@keyframes page-enter {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 991px) {
	.user-state {
		margin-top: 0.5rem;
		display: inline-flex;
	}
}

@media (max-width: 767px) {
	.page-shell {
		padding: 1rem;
		border-radius: 18px;
	}

	.app-navbar {
		border-radius: 14px;
	}

	.wrapper {
		padding: 0.95rem;
	}

	.table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.upload-task-grid {
		grid-template-columns: 1fr;
	}

	.upload-section-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.hero-actions .btn {
		width: 100%;
	}

	.feature-grid {
		grid-template-columns: 1fr;
	}
}
