@font-face {
	font-family: Roboto;
	src: url(../_fonts/roboto-v29-latin-ext_latin-regular.woff);
}

@font-face {
	font-family: Roboto-Medium;
	src: url(../_fonts/Roboto-Medium.woff);
}

html,
body {
	background: url(../_img/bg.jpg) no-repeat center center fixed;
	background-size: cover;
	font-family: Roboto, "Helvetica Neue", Arial, sans-serif !important;
	font-size: 15px;
	line-height: 1.6;
	color: #1f2937;
	min-height: 100%;
	margin: 0;
	padding: 0;
}

body {
	background-color: #f3f4f6;
}

a {
	text-decoration: none;
}

a:hover {
	text-decoration: none;
}

p {
	margin-top: 0;
	margin-bottom: 0.9rem;
}

h1,
h2,
h3,
h4,
h5 {
	font-family: Roboto-Medium, Roboto, "Helvetica Neue", Arial, sans-serif;
	font-weight: 500;
	color: #111827;
	margin: 0;
}

h1 {
	font-size: 2rem;
	margin-bottom: 10px;
}

h2 {
	font-size: 1.75rem;
}

h3 {
	font-size: 1.05rem;
	margin-bottom: 4px;
}

.page-shell {
	min-height: 100vh;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 48px 16px;
}

.page-card {
	max-width: 960px;
	background: rgba(255, 255, 255, 0.96);
	padding: 36px 36px 28px;
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(2px);
}

.page-header,
.content-section {
	width: 100%;
}

.logo-row {
	text-align: right;
}

.header-logo {
	width: 72px !important;
	min-width: 72px;
	max-width: 72px;
	height: auto !important;
	display: inline-block;
}

.kicker {
	margin-bottom: 0.4rem;
	font-size: 0.9rem;
	color: #6b7280;
}

.intro,
.section-intro {
	display: block;
	width: 100%;
	max-width: none;
}

.resource-text p,
.site-footer p {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	color: #4b5563;
}

.content-section {
	margin-bottom: 40px;
}

.section-heading {
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #dee2e6;
}

.section-heading h2 i,
.resource-text h3 i,
.form-label-column i {
	color: #0d6efd;
}

.section-intro {
	margin-bottom: 18px;
}

.config-panel {
	padding: 18px 20px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #f8fafc;
}

.tool-form + .tool-form {
	margin-top: 12px;
}

.form-label-column,
.field-label,
.planner-field-label {
	font-family: Roboto-Medium, Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #111827;
	margin-bottom: 0;
}

.resource-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.resource-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 14px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #f8fafc;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.resource-item:hover {
	background: #f1f5f9;
	border-color: #d1d5db;
}

.resource-text {
	flex: 1 1 auto;
	min-width: 0;
}

.resource-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	flex: 0 0 auto;
}

.resource-actions .btn i {
	opacity: 0.9;
}

.btn {
	min-width: 72px;
	border-radius: 8px;
	font-size: 1rem;
	padding: 0.5rem 1rem;
}

.btn-primary {
	background-color: #0d6efd;
	border-color: #0d6efd;
}

.btn.disabled,
.btn:disabled {
	pointer-events: none;
	opacity: 0.55;
}

.site-footer {
	margin-top: 8px;
	padding-top: 20px;
	border-top: 1px solid #dee2e6;
	font-size: 0.92rem;
}

.site-footer code {
	white-space: normal;
}

.planner-field-row {
	align-items: center;
}

.planner-toggle-row {
	align-items: flex-start;
}

.planner-row-reveal {
	animation: plannerRowReveal 0.35s ease;
}

.planner-accordion-reveal {
	animation: plannerAccordionReveal 0.42s ease;
}

.planner-accordion-highlight {
	animation: plannerAccordionHighlight 2.6s ease-out;
}

.planner-accordion-highlight {
	border-color: #86efac !important;
}

.planner-accordion-highlight .planner-accordion-button,
.planner-accordion-highlight .accordion-header .accordion-button {
	background-color: #dcfce7 !important;
}

.planner-accordion-highlight .planner-accordion-body {
	background-color: #f0fdf4;
}

.planner-select-wrap {
	position: relative;
}

.planner-input-icon {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	color: #6b7280;
	pointer-events: none;
}

.planner-select {
	min-height: 42px;
	padding-right: 40px;
	border: 1px solid #ced4da;
	border-radius: 8px;
	background-color: #fff;
	box-shadow: none;
	appearance: none;
}

.planner-select:focus {
	border-color: #86b7fe;
	box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.planner-switch {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 34px;
	padding: 4px 0 4px 54px;
	background: transparent;
	border: 0;
	border-radius: 0;
	height: auto;
	margin-bottom: 0;
}

.planner-toggle-group {
	padding: 6px 14px;
	border: 1px solid #dbe3ee;
	border-radius: 10px;
	background: #fff;
}

.planner-toggle-grid {
	--bs-gutter-y: 0.15rem;
}

.planner-toggle-option {
	display: flex;
	align-items: center;
}

.planner-switch .form-check-input {
	float: none;
	position: absolute;
	left: 14px;
	top: 50%;
	margin: 0;
	transform: translateY(-50%);
}

.planner-toggle-label {
	display: block;
	margin: 0;
	padding-right: 8px;
	color: #374151;
}

.accordion-item.planner-accordion-item {
	margin-bottom: 12px;
	border: 1px solid #dbe3ee;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.accordion-header {
	font-family: Roboto-Medium, Roboto, "Helvetica Neue", Arial, sans-serif !important;
	font-weight: 500 !important;
	font-size: 1.05em !important;
}

.planner-accordion-button {
	font-family: Roboto-Medium, Roboto, "Helvetica Neue", Arial, sans-serif;
	font-weight: 500;
	color: #111827;
	background: #fff;
	box-shadow: none !important;
}

.planner-accordion-button:not(.collapsed) {
	color: #111827;
	background: #f8fafc;
}

.planner-accordion-body {
	background: #f8fafc;
	color: #4b5563;
}

@keyframes plannerRowReveal {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes plannerAccordionReveal {
	from {
		opacity: 0;
		transform: translateX(18px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes plannerAccordionHighlight {
	0% {
		border-color: #22c55e;
		box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
	}

	30% {
		border-color: #22c55e;
		box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
	}

	100% {
		border-color: #dbe3ee;
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
	}
}

.hidden {
	display: none;
}

input.error,
select.error {
	border: 2px solid red;
}

label.error {
	color: red;
	font-weight: bold;
	display: inline-block;
}

a.btn {
	color: white !important;
}

@media print {
	@page {
		size: auto;
		margin-left: 12mm;
		margin-right: 12mm;
		margin-top: 15mm;
		margin-bottom: 15mm;
	}

	html,
	body {
		background: white !important;
		font-size: 15pt !important;
	}

	.page-shell {
		padding: 0;
	}

	.page-card {
		box-shadow: none;
		background: white;
		padding: 0;
		max-width: none;
	}

	.resource-actions,
	#githublink {
		display: none !important;
	}
}

@media (max-width: 767.98px) {
	.page-shell {
		padding: 20px 10px;
	}

	.page-card {
		padding: 22px 18px;
	}

	.resource-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.resource-actions {
		justify-content: flex-start;
		width: 100%;
	}

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

	.planner-toggle-group {
		padding: 6px 12px;
	}

	.planner-switch {
		min-height: 34px;
		padding-left: 52px;
	}
}
