* {
	margin: 0;
	padding: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	background: transparent;
	text-align: left;
	text-decoration: none;
	box-sizing: border-box;
	border-color: transparent;
}

body {
	font-family: 'Roboto', 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, serif;
	text-align: center;
	color: VAR(--color-primary);
	background-color: VAR(--back-color-main);
	touch-action: pan-y;
	height: 100%;
	overflow: hidden;
}

strong {
	font-weight: bold;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: normal;
	overflow-x: hidden;
}

h1 {
	font-size: 1.5rem;
}

h2 {
	font-size: 1.4rem;
}

h3 {
	font-size: 1.3rem;
}

h4 {
	font-size: 1.2rem;
}

h5 {
	font-size: 1.1rem;
}

ol,
ul {
	list-style: none;
}

ul {
	list-style-position: outside;
	list-style-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 448 512\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"></path></svg>');
	display: block;
	padding: 5px 0 5px 30px;
	font-size: 1rem;
}

ol {
	list-style-position: outside;
	list-style: decimal;
	display: block;
	padding: 5px 0 5px 30px;
	font-size: 1rem;
}

label {
	display: block;
	font-size: 0.8rem;
	margin: 1rem 1rem 0.2rem 0.5rem;
}

input,
select {
	padding: 0.3rem 1rem;
	font-size: 1.1rem;
	line-height: 1.1rem;
	border: VAR(--border-style1);
	border-radius: 0.3rem;
}

button {
	margin: 0;
	padding: 0.6rem 1.0rem;
	font-size: 1.0rem;
	line-height: 1.0rem;
	border: VAR(--border-style1);
	border-radius: 0.3rem;
}

button:hover {
	cursor: pointer;
	background-color: VAR(--back-color-head-hover);
	color: white;
}

textarea {
	width: CALC(100% - 2rem);
	margin: 0 1rem;
	padding: 0.3rem;
	font-size: 1.0rem;
	line-height: 1.2rem;
	border: VAR(--border-style1);
	resize: none;
	field-sizing: content;
}

/* --- GLOBÁLIS FÓKUSZKERET --- */
input:focus,
select:focus,
textarea:focus,
button:focus {
	outline: 2px solid VAR(--back-color-head);
	outline-offset: 1px;
}

@keyframes x-forgas {
	0% {
		transform: rotateX(0deg);
	}

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

.rotated-item {
	animation: x-forgas 2s linear infinite;
}

.app-shell {
	display: flex;
	flex-direction: column;
	height: 100dvh;
	position: relative;
}

.columns-container {
	flex-grow: 1;
	display: flex;
	flex-direction: row;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	/* A rések eltüntetése */
	padding: 0;
	gap: 0;
}

.column {
	height: 100%;
	width: var(--col-width, 25rem);
	display: flex;
	flex-direction: column;
	/*background: #fff;*/
	border-right: 0.0625rem solid #ddd;
	scroll-snap-align: start;
	flex-shrink: 0;
}

.column-header {
	cursor: pointer;
	width: 100%;
	height: 3.5rem;
	padding: 0 1rem;
	background: #fff;
	border-bottom: 0.35rem solid VAR(--back-color-main);
	font-size: 1.4rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
	overflow: hidden;
	transition: border-bottom-color 0.2s, border-bottom-width 0.2s;
}

/* Ha az oszlopon rajta van az 'active-col' class */
.column.active-col .column-header {
	border-bottom-color: var(--back-color-head);
}

/* Gomb a fejlécben (reset, hogy ne nyomja szét a magasságot) */
.column-header button,
h2 button {
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
	cursor: pointer;
}

.column-header span.col-title {
	max-width: CALC(100% - 2rem);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.column-body {
	position: relative;
	padding: 0;
	overflow-y: auto;
	/*flex-grow: 1;*/
	scrollbar-width: thin;
	scrollbar-color: #ccc transparent;
	background-color: var(--back-color-main);
}

/* --- OSZLOP TÖRLÉS ANIMÁCIÓ --- */

.column-removing {
	/* 1. Tartalom elrejtése (hogy ne törjön szét, ahogy szűkül) */
	overflow: hidden !important;
	/* 2. Interakció tiltása (ne lehessen már kattintani rá) */
	pointer-events: none;
	/* 3. A végső állapot (összezsugorodva) */
	min-width: 0 !important;
	width: 0 !important;
	flex-basis: 0 !important;
	opacity: 0;
	/* A szegély és margó is tűnjön el */
	border: none !important;
	margin: 0 !important;
	padding: 0 !important;
	/* 4. Az animáció időzítése (300ms) */
	/* Fontos: A 'width' és 'flex' animálása néha darabos, ezért használunk 'ease-in-out' görbét */
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	/* Opcionális: Kicsit menjen össze függőlegesen is, vagy "menjen hátra" */
	transform: scale(0.9);
}

/* --- APP DIALOG STÍLUSOK --- */

.app-dialog {
	/* Pozícionálás: a showModal() automatikusan középre teszi, de a méretezéshez kell a változó */
	width: var(--dialog-width, 40rem);
	max-width: 95vw;
	/* Mobilon ne lógjon ki */
	max-height: 90vh;
	margin: auto;
	inset: 0;

	padding: 0;
	border: none;
	border-radius: 0.5rem;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);

	display: flex;
	flex-direction: column;

	/* Animáció megjelenéskor */
	animation: dialog-fade-in 0.2s ease-out;
}

/* Sötétített háttér */
.app-dialog::backdrop {
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
	/* Modern homályosítás */
}

.dialog-header {
	background: #f8f9fa;
	padding: 1rem;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: bold;
	font-size: 1.1rem;
}

.dialog-close-btn {
	background: transparent;
	border: none;
	font-size: 1.2rem;
	cursor: pointer;
	color: #666;
	padding: 0.25rem 0.5rem;
}

.dialog-close-btn:hover {
	color: #000;
	background: #eee;
	border-radius: 4px;
}

.dialog-body {
	padding: 1.5rem;
	overflow-y: auto;
	/* Ha hosszú a tartalom, görgessen */
	background: #fff;
	flex-grow: 1;
}

/* Egyszerű animáció */
@keyframes dialog-fade-in {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

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

/* --- FOOTER --- */

.app-footer,
.menu-header-bar {
	height: 3.75rem;
	background: linear-gradient(90deg, #0f172a, #020617);
	color: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	z-index: 10;
	position: relative;
}

.app-footer {
	padding: 0 0.5rem;
	border-top: var(--border-style-hover-light);
	box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}

.menu-header-bar {
	padding: 0 1rem;
	border-bottom: var(--border-style-hover-light);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* BAL BLOKK: Menü */
.footer-left {
	display: flex;
	align-items: center;
	cursor: pointer;
	transition: all 0.2s;
	flex-shrink: 0;
	color: #fff;
}

.footer-left:hover {
	color: VAR(--color-hover);
	text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.menu-icon {
	font-size: 1.8rem;
	/* Kérted, hogy legyen nagy */
	margin-right: 0.5rem;
	/* Távolság a szövegtől */
	line-height: 1;
	position: relative;
	top: -0.15rem;
}

.menu-text {
	font-weight: bold;
	font-size: 0.9rem;
	letter-spacing: 1px;
}

/* KÖZÉPSŐ BLOKK: Info */
.footer-info {
	flex-grow: 1;
	text-align: center;
	color: var(--color-menu-button);
	font-size: 0.8rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05rem;

	/* Ha hosszú a szöveg, levágja ...-tal */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0 10px;
}

/* JOBB BLOKK: Gombok */
.footer-right {
	display: flex;
	gap: 0.5rem;
	/* Távolság a gombok között */
	flex-shrink: 0;
}

/* A gombok alap stílusa */
.nav-btn {
	width: 3rem;
	height: 2.5rem;
	background: rgba(255, 255, 255, 0.03);
	color: var(--color-menu-button);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 0.25rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	transition: all 0.2s;
}

.nav-btn:hover {
	background: rgba(56, 189, 248, 0.1);
	color: var(--color-hover);
	border-color: rgba(56, 189, 248, 0.3);
}

.nav-btn:active {
	background: #888;
}

/* Mobilon, ha nagyon szűk a hely, a "MENÜ" szöveget elrejthetjük, hogy a gombok elférjenek. Ez opcionális. */
@media (max-width: 360px) {
	.menu-text {
		display: none;
	}
}

/* --- MENÜ OVERLAY --- */

.menu-layer {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	/* Teljes képernyőt kitölti */

	background-color: rgba(0, 0, 0, 0.5);
	/* Sötétítés a háttérben (opcionális) */
	backdrop-filter: blur(5px);
	/* Modern homályosítás */

	z-index: 2000;
	/* A footer (10) fölé kerüljön */

	/* Animáció alapállapota: a képernyő alatt van */
	transform: translateY(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);

	display: flex;
	flex-direction: column;

	/* Hogy a mögötte lévő dolgok ne görgessenek */
	overflow: hidden;
}

/* Amikor aktív, becsúszik a helyére */
.menu-layer.is-open {
	transform: translateY(0);
}

/* Menü Fejléc */
/* .menu-header-bar stílusait már feljebb csoportosítva megadtuk a .app-footer-rel együtt */

.menu-title {
	font-weight: 700;
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.15rem;
	color: var(--color-menu);
}

.logout-btn,
.menu-close-btn {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.05);
	color: var(--color-menu-button);
	font-size: 1.3rem;
	cursor: pointer;
	padding: 0.4rem;
	border-radius: 4px;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.logout-btn:hover,
.menu-close-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--color-hover);
	border-color: var(--border-style-hover-light);
}

.menu-close-btn {
	transform: rotate(90deg);
}

/* A menü oszlopainak háttere – Premium Kanban design */
.menu-columns {
	background: #030712;
}

/* Mobilon (és Desktopon is) legyen fix, keskenyebb méret */
.menu-columns .column {
	/* Alapértelmezett szélesség a menü oszlopoknak */
	--default-menu-width: 14rem;
	/* Kicsit keskenyebb oszlopok */
	width: var(--col-width, var(--default-menu-width)) !important;
	flex: 0 0 var(--col-width, var(--default-menu-width)) !important;

	background: radial-gradient(circle at top right, #1e293b, #030712);
	color: var(--color-menu);
	border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.menu-columns .column-body {
	background-color: transparent !important;
}

/* Mobilon az utolsó oszlopnak nem kell jobb szegély */
.menu-columns .column:last-child {
	border-right: none !important;
}

/* A menüben lévő oszlopok fejléce – Glassmorphism style */
.menu-columns .column-header {
	background: rgba(255, 255, 255, 0.02);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--color-hover);
	font-size: 1.0rem;
	/* Kicsit kisebb betűméret */
	letter-spacing: 0.1em;
	font-weight: 700;
	text-transform: uppercase;
}

/* Menü lista stílus (opcionális) */
.menu-list {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 0.9rem;
}

.menu-list.selector {
	border-top: var(--border-style1);
}

.menu-list li {
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.menu-link {
	display: block;
	/* Blokk elemként viselkedjen */
	width: 100%;
	/* Teljes szélesség */
	padding: 1rem;
	/* A paddingot ide tesszük át */
	text-decoration: none;
	/* Aláhúzás levétele */
	color: inherit;
	/* Szín öröklése */
	cursor: pointer;
	transition: background 0.2s;
	/* Mobilon ez segít a pontosabb érintésben */
	touch-action: manipulation;
}

.menu-link:hover {
	background-color: rgba(255, 255, 255, 0.05);
	padding-left: 1.25rem;
	color: #fff;
}

/* --- LOADING OVERLAY --- */

.loading-overlay {
	/* Pozicionálás a szülőhöz (.column-body) képest */
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;

	/* Flexbox a tökéletes középre igazításhoz */
	display: flex;
	justify-content: center;
	/* Vízszintesen középre */
	align-items: flex-start;
	/* Függőlegesen középre */

	z-index: 5;
	/* Legyen a tartalom felett */
	/*background-color: rgba(0, 0, 0, 0.1);*/

	/* Fontos: Ne akadályozza a kattintást, ha véletlenül ott maradna */
	pointer-events: none;

	/* HTMX transition (szép áttűnés) */
	opacity: 0;
	transition: opacity 200ms ease-in;
}

.htmx-request .loading-overlay,
/* Általános eset */
.column-body.htmx-request .loading-overlay

/* Specifikus eset */
	{
	opacity: 1;
	pointer-events: all;
}

/* --- DESKTOP ÉS TABLET (A töréspont felett) --- */
@media (min-width: 48rem) {
	.column {
		/*
			A trükk: a var() második paramétere a "fallback" (alapértelmezés).
			Tehát: ha van inline --col-width, azt használja.
			Ha nincs, akkor legyen 25rem.
    */
		width: var(--col-width, 25rem);
		min-width: var(--col-width, 25rem);
		/* Biztos ami biztos, ne legyen szélesebb a képernyőnél desktopon se */
		max-width: 100%;
		/* Flex beállítások, hogy tartsa a méretet */
		flex: 0 0 auto;
	}
}

/* MOBIL (768px alatt) */
@media (max-width: 768px) {
	.column {
		width: 100vw;
		border-right: none;
		flex: 0 0 100vw;
	}

	.menu-icon {
		font-size: 1.6rem;
		position: relative;
		top: 0;
	}
}

/* CSAK ÉRINTŐKÉPERNYŐN (CSS Media Query) */
@media (hover: none) and (pointer: coarse) {

	/* Mobilon a hover effekteket gyakran érdemes levenni, hogy ne ragadjon be a szín kattintás után */
	button:hover {
		color: inherit;
		background-color: inherit;
	}
}