/* Used colors
bílá: 			#F8F9FA
světle zelená:	#d8f0d8
tmavá zelená:	#ad7d3d
černá:			#212121
šedivá:			#828282
Světle šedivá: 	#ebebeb
světle růžová:	#fce1f2
*/

.tm-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 0;                 /* žádné mezery */
    margin: 20px 0 0 0;
    padding: 0;
    justify-content: center; /* pokud chceš vlevo: dej flex-start */
    align-items: stretch;
    line-height: 0;          /* eliminace mezer od inline baseline */
}

.tm-tile {
    display: block;
    width: 260px;            /* desktop default */
    height: 260px;
    margin: 0;
    padding: 0;
    text-decoration: none;
    overflow: hidden;
    filter: brightness(0.85); /* ztlumený jas v klidu */
    transform: translateZ(0);
}

.tm-tile-img {
    display: block;          /* žádná mezera pod obrázkem */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover efekt jen pro desktop */
@media (min-width: 769px) {
    .tm-tile {
        transition: transform 0.15s ease-in-out, filter 0.15s ease-in-out;
        will-change: transform, filter;
    }
    .tm-tile:hover {
        transform: scale(1.05);
        filter: brightness(1);
        z-index: 10;
    }
}

/* Mobilní velikost (využívá tvoje existující @media max-width:768px) */
@media screen and (max-width: 768px) {
	.tm-tiles {
	        justify-content: flex-start; /* aby se dlaždice lepily zleva */
	    }
    .tm-tile {
        width: 49.5%;
        height: auto;
        aspect-ratio: 1 / 1;   /* zajistí čtverec bez pevné výšky */
        filter: brightness(1); /* na mobilu typicky bez hoveru – nechávám 100% */
    }
	.tm-tile-img {
	        width: 100%;
	        height: 100%;
	        object-fit: cover;
	    }
}










/* Styl pro vyskakovací okno s informací o cookies */
#cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 2000;
  display: none;
  text-align: center;
}
#cookie-popup button {
    background-color: transparent;
    border: none;
    border-radius: 0;
    font-size: 16px;
	font-weight: 100;
    cursor: pointer;
}
#cookie-popup button:hover {
	color: #ad7d3d;
}



body {
    margin: 0;
    padding: 0;
    position: relative;
    font-family: 'Raleway', sans-serif;
    background-color: #ebebeb; 
    color: #212121;
}

.container {
	top: 0;
	left: 0;
    width: 100vw;
	max-width: 100vw;
    display: flex;
	position: absolute;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.content-container {
    width: 100%;
	max-width: 1150px;
	padding: 110px 0 0 0;
	overflow-wrap: break-word;
	box-sizing: border-box;
	position: relative;
    text-align: center;
	z-index: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1150px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.header h4 {
	margin: 0;
	padding: 5px 0 0 45px;
	overflow-wrap: break-word;
	box-sizing: border-box;
	position: relative;
    text-align: left;
	font-size: 16px;
	text-transform: uppercase;
}

.header p {
	margin: 0;
	padding: 5px 25px 0 0;
	overflow-wrap: break-word;
	box-sizing: border-box;
	position: relative;
    text-align: right;
}

.login-container {
    position: relative;
    margin: 50vh auto 0;
    transform: translateY(-50%);
    width: 400px;
    /*margin: 100px auto;*/
	padding: 50px;
    text-align: center;
	box-sizing: border-box;
	background: #F8F9FA;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.online-container {
    position: relative;
	margin: 0 auto;
    width: 400px;
	padding: 50px;
    text-align: center;
	box-sizing: border-box;
	background: #F8F9FA;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.recipe-container {
	position: relative;
    width: 100%;
    margin: 10px auto 0;
	padding: 50px;
    text-align: center;
	background: #F8F9FA;
	box-sizing: border-box;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-container .logo {
    width: 300px;
    margin-bottom: 15px;
}

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

.login-form select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.login-form input,
.login-form textarea,
.login-form select,
.search-container input {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #828282;
    background: #F8F9FA;
    border-radius: 0;
    font-size: 16px;
    font-weight: 200;
    color: #212121;
    transition: border 0.3s ease;
}

.login-form input:focus,
.login-form textarea:focus,
.login-form select:focus,
.search-container input:focus {
    border: 2px solid #ad7d3d;
    outline: none;
}
.login-form input::placeholder,
.login-form textarea::placeholder,
.search-container input::placeholder {
    font-size: 16px;
    font-weight: 200;
    color: #212121;
}

.login-form button,
.search-container button {
    padding: 10px;
    background-color: #828282;
    border: none;
    border-radius: 0;
    font-size: 16px;
	font-weight: 100;
    cursor: pointer;
	color: #F8F9FA;
	transition: background-color 0.3s ease;
}

.login-form button:hover,
.search-container button:hover {
    background-color: #ad7d3d;
}


/* READONLY / DISABLED – formuláře */
.login-form input[readonly],
.login-form textarea[readonly],
.login-form select[disabled] {
    background-color: #ebebeb;   /* světle šedá */
    color: #828282;              /* šedý text */
    border: 1px solid #828282;
}

/* zrušení focus efektu */
.login-form input[readonly]:focus,
.login-form textarea[readonly]:focus,
.login-form select[disabled]:focus {
    border: 1px solid #828282;
    outline: none;
}

.login-form button[disabled]{
    cursor: default;
}

.login-form button[disabled]:hover{
    background-color: #828282;
}

/* placeholder = stejná barva jako hodnota */
.login-form input[readonly]::placeholder,
.login-form textarea[readonly]::placeholder {
    color: #828282;
    opacity: 1; /* důležité – jinak je placeholder průhledný */
}





.rename-form {
    display: grid; 
	place-items: center; 
	width: 100%;
}

.rename-form input,
.rename-form textarea,
.rename-form select {
    padding: 5px;
    margin: 0;
    border: 0;
	text-align: center;
    background: transparent;
    font-size: 24px;
	font-weight: 300;
    color: #212121;
    transition: color 0.3s ease;
}

.rename-form input:focus,
.rename-form textarea:focus,
.rename-form select:focus {
	color: #ad7d3d;
    outline: none;
}
.rename-form input::placeholder,
.rename-form textarea::placeholder {
	text-align: center;
    background: transparent;
    font-size: 24px;
	font-weight: 300;
    color: #212121;
}

.rename-form button {
    padding: 0;
	margin: 0;
	text-align: center;
    background: transparent;
    border: none;
    font-size: 16px;
	font-weight: 100;
    cursor: pointer;
    text-decoration: none; /* Odstraní podtržení */
    color: inherit; /* Použije výchozí barvu textu */
    outline: none; /* Odstraní obrys při kliknutí */
	transition: color 0.15s ease-in-out;
}

.rename-form button:hover {
    color: #ad7d3d;
}



.no-desktop {
	display: none;
}


.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #F8F9FA;
    color: #212121;
    border: 1px solid #828282;
    text-decoration: none;
}
.pagination a.active,
.pagination a:hover {
    background: #ad7d3d;
    color: #F8F9FA;
    border-color: #ad7d3d;
}



#file-input {
  display: none; /* Skrytí původního inputu */
}

.error {
    color: red;
    margin: 10px 0 10px 0;
}

.success {
    color: #328c32;
    margin: 10px 0 10px 0;
}

.category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
}
.category-item {
    padding: 5px 10px;
    border: 1px solid #828282;
    background: #F8F9FA;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.category-item.selected {
    background: #ad7d3d;
    color: #F8F9FA;
    border-color: #ad7d3d;
}
.category-item:hover {
	background: #828282;
	color: #F8F9FA;
    border-color: #828282;
}
.category-checkbox {
    display: none;
}
/* Styl pro vyhledávací input a tlačítko */
.search-container {
    margin: 10px 0;
    text-align: center;
}

.logout-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #828282;
    color: #F8F9FA;
    text-decoration: none;
    border-radius: 0;
}

.logout-button:hover {
    background-color: #ad7d3d;
}


/*Šipky u názvu receptu na přepínání mezi recepty v recipe_viewer */
.arrow {
    font-size: 2em;
    color: #212121;
    text-decoration: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2em;
}

.left-arrow {
    left: 0;
	text-align: left;
}

.right-arrow {
    right: 0;
	text-align: right;
}

.arrow:hover {
    color: #ad7d3d;
}
/* Styl pro tooltip */
.arrow::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 120%;  /* Umístění nad šipkou – případně upravte dle potřeby */
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
	font-size: 14px;
	font-weight: 200;
}

/* Při hoveru se tooltip objeví s prodlevou 2 sekundy */
.arrow:hover::after {
    transition-delay: 0.5s;
    opacity: 1;
}

.left-arrow::after {
	left: 80%;
	transform: translateX(-80%);
}

.right-arrow::after {
	left: -20%;
	transform: translateX(20%);
}

.plan-details {
	margin-top: 30px;
}



/* PLANS EDIT MODAL */
.modal {
    display: none; 
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #F8F9FA;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #828282;
    width: 80%;
    max-width: 600px;
    text-align: left;
	box-sizing: border-box;
}
.day-block {
    border: 1px solid #828282;
    padding: 10px;
    margin: 10px 0;
    text-align: left;
	width: 100%;
	box-sizing: border-box;
}
.meal-input {
    margin-bottom: 5px;
	width: 100%;
}
#recipeResults .selected {
    background-color: #ad7d3d !important;
    color: #F8F9FA !important;
}



/* Styl pro tabulku uživatelů */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 12px;
    text-align: left;
    background: #F8F9FA;
}
.admin-table th, .admin-table td {
    padding: 3px 5px;
    border: 0;
}
.admin-table th {
    background-color: #828282; 
    color: #F8F9FA;
    text-transform: uppercase;
}
.admin-table tr {
	color: #212121;
}
.admin-table tr:nth-child(even) {
    background-color: #ebebeb;
}
/*.admin-table tr:hover {
    background-color: #ad7d3d;
    color: #F8F9FA;
}*/

.admin-table.left-table td {
    font-size: 14px;
    font-weight: 300;
    color: #212121;
    vertical-align: middle;
}

/* Styl pro zobrazování receptu */
.recipe-container2 {
	position: relative;
    width: 100%;
    margin: 50px auto 0;
	padding: 20px 50px 50px 50px;
    text-align: center;
	background: #F8F9FA;
	box-sizing: border-box;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.recipe-action {
	width: 100%;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: left;
    margin-bottom: 15px;
	gap: 20px;
}
.recipe-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
	text-align: center;
    margin-bottom: 30px;
}
.recipe-header h2 {
    margin: 0;
    text-transform: uppercase;
	padding: 0 40px 0 40px;
}
.back-button {
    position: absolute;
    right: 0;
    background-color: #828282;
    color: #F8F9FA;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0;
    transition: background-color 0.3s ease;
}
.back-button:hover {
    background-color: #ad7d3d;
}
/* Popis receptu */
.recipe-description {
    text-align: left;
}
.recipe-details {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: nowrap; /* Na desktopu nechceme zabalovat */
}
.recipe-image {
    flex: 1 1 calc(60% - 10px);
    width: 100%;
    height: 450px; /* nebo jiná požadovaná výška */
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	display: block;
}

.recipe-image2 {
    margin: 20px auto;
    text-align: center;
    width: 100%;
	max-width: 600px;
	height: 200px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.recipe-image2 img {
	display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.recipe-materials {
    flex: 1 1 calc(40% - 10px);
	height: 450px;
    overflow-y: auto;     /* zobrazí vertikální scrollbar, pokud je obsah vyšší */
    overflow-x: hidden;   /* skryje horizontální scrollbar */
    text-align: left;
	position: relative;
}

/* Řádek s workflow */
.recipe-workflow {
    margin-top: 25px;
    text-align: left;
}
/* Další informace */
.recipe-extra {
    margin-top: 20px;
    text-align: left;
}
.recipe-extra p {
    margin: 5px 0;
}





/* Styl pro menu */
.menu {
	display: flex; /* Pro zobrazení inline prvku */
    position: fixed;
	flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
	box-sizing: border-box; /* Zajistí, že padding neroztáhne element */
    top: 0;
    left: 0;
	padding: 5px 5px 0 5px;
    width: 100%; /* Zabírá celou šířku rodiče */
    max-width: 100%; /* Zabrání roztažení */
	/*background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 95%);*/
	transition: background 0.5s ease, box-shadow 0.5s ease;
	gap: 0;
	z-index: 20;
}

.menu img {
	display: block;
}

.menu .logo-desktop {
    width: 180px;
	height: auto;
}

.menu .logo-mobile {
	display: none;
	width: auto;
	height: 60px;
}

.menu.scrolled {
  background: #F8F9FA;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 14px 20px rgba(0, 0, 0, 0.2);
}

.menu a {
    font-size: 18px;
    font-weight: 600;
	padding: 0 5px 25px 0;
    text-transform: uppercase;
	text-decoration: none; /* Odstranění výchozího podtržení */
	color: inherit; /* Barva stejná jako text rodiče */
	border-bottom: 3px solid transparent;
	transition: border-bottom-color 0.15s ease-in-out;
}

.menu a:hover {
    border-bottom: 3px solid currentColor; /* Podtržení stejné barvy jako text */
}

.menu-header {
    width: 30%; /* Pevná šířka 30% */
	min-width: 100px;
	padding-left: 5%;
	display: flex;
    text-align: left;
    justify-content: left;
    align-items: flex-start;
	flex-direction: column;
}

.menu-content {
    width: 50%; /* Pevná šířka 50% */
	min-width: 720px;
    display: flex;
    flex-direction: row;
	text-align: left;
    gap: 20px;
}

.menu-header p {
	line-height: 1.2;
}

.menu-toggle {
    display: none; /* Skryté na desktopu */
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    color: #212121;
}



/* Styl pro dlaždice s recepty /*

        /* Kontejner dlaždic */
        .tiles-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
			margin-top: 20px;
        }
        /* Jedna dlaždice */
        .tile {
            position: relative;
            width: 350px;
            height: 270px;
            background-size: cover;
            background-position: center;
            overflow: hidden;
            text-decoration: none;
            color: white;
			box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 0 40px rgba(120, 120, 120, 0.99);
			transition: transform 0.3s ease-in-out;
        }
        /* Overlay pro lehké ztmavení obrázku */
        .tile-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /*background: rgba(120, 120, 120, 0);*/
			background: linear-gradient(to bottom, rgba(20, 20, 20, 0.90) 0%, rgba(20, 20, 20, 0) 50%);
        }
        .tile:hover /*.tile-overlay*/ {
			transform: scale(1.1);
			z-index: 1000;
            /*background: rgba(120, 120, 120, 0.20);*/
        }
        /* Název receptu nahoře */
        .tile h5 {
            position: relative;
			width: 90%;
		    left: 50%;
		    transform: translateX(-50%);
            margin-top: 15px;
			text-transform: uppercase;
            /* background: rgba(0, 0, 0, 0.5); */
        }
        .tile h6 {
            position: relative;
			width: 90%;
		    left: 50%;
		    transform: translateX(-50%);
            margin-top: 5px;
            /* background: rgba(0, 0, 0, 0.5); */
        }
        /* Kategorie ve spodní části */
        .tile p {
			font-size: 10px;
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            margin: 0;
            padding: 5px 10px;
			width: 80%;
            background: rgba(0, 0, 0, 0.5);
            transition: background 0.3s ease;
        }
        /* Responzivita pro mobil (širší 90 %, výška 200px) */
        @media (max-width: 768px) {
            .tile {
                width: 100%;
                height: 200px;
            }
        }

		.row {
		  display: flex;       /* Aktivuje flexbox rozvržení */
		  flex-wrap: wrap;    /* Zajistí, že se prvky při nedostatku místa zalomí na nový řádek */
		  gap: 10px;          /* Volitelné: vytvoří mezeru mezi jednotlivými divy */
		}



/* Styl pro texty */
h1 {
    font-size: 68px;
    font-weight: 700;
    text-transform: uppercase;
	padding: 0;
	margin: 0 0 10px 0;
}
h2 {
    font-size: 30px;
    font-weight: 500;
    text-transform: uppercase;
	padding: 0;
	margin: 0 0 10px 0;
}
h3 {
    font-size: 24px;
    font-weight: 300;
	padding: 0;
	margin: 0 0 5px 0;
}	
h4 {
    font-size: 18px;
    font-weight: 600;
	padding: 0;
	margin: 0 0 0 0;
}	
h5 {
    font-size: 16px;
    font-weight: 600;
	padding: 0;
	margin: 0 0 0 0;
}	
h6 {
    font-size: 13px;
    font-weight: 300;
	padding: 0;
	margin: 0 0 0 0;
}	
p {
    font-family: 'Raleway', sans-serif; /* Stejný font jako ostatní text */
    font-size: 15px; /* Stejná velikost jako H2 (případně uprav) */
    font-weight: 300; /* Lehké písmo, podobné H2 */
    line-height: 1.4; /* Zvýšené řádkování pro lepší čitelnost */
}
.clink-settings {
	transition: color 0.15s ease-in-out;
	color: inherit; /* Použije výchozí barvu textu */
    text-decoration: none; /* Odstraní podtržení */
    outline: none; /* Odstraní obrys při kliknutí */
    font-family: 'Raleway', sans-serif; /* Stejný font jako ostatní text */
    font-size: 15px; /* Stejná velikost jako H2 (případně uprav) */
    font-weight: 300; /* Lehké písmo, podobné H2 */
    line-height: 1.4; /* Zvýšené řádkování pro lepší čitelnost */
}
.clink-settings:hover {
    color: #ad7d3d;
}
.clink-login {
    text-decoration: none; /* Odstraní podtržení */
    color: #828282; /* Použije výchozí barvu textu */
    outline: none; /* Odstraní obrys při kliknutí */
	font-weight: 100;
}
.clink-login:hover {
    color: #ad7d3d;
}
.clink, 
.clink-remove,
.clink-back,
.clink-step,
.clink-table-filter {
    text-decoration: none; /* Odstraní podtržení */
    color: inherit; /* Použije výchozí barvu textu */
    outline: none; /* Odstraní obrys při kliknutí */
	transition: color 0.15s ease-in-out;
}
.clink-back {
	position: absolute;
	right: 0;
}
.clink-table-filter:hover {
	color: #212121;
}
.clink:hover,
.clink-back:hover,
.clink-step:hover {
	color: #ad7d3d;
}
.clink-remove:hover {
	color: red;
}
.big-bold {
    font-size: 20px;
    font-weight: 500;
}
.big-light {
    font-size: 16px;
    font-weight: 300;
}


/* Responzivní styl */
@media (max-width: 1370px) {
	
	.menu-content {
		gap: 5px;
		min-width: 650px;
		width: auto;
	}
	.menu-header {
		padding: 0 10px 0 0;
		min-width: 300px;
		width: auto;
	}

}	

@media (max-width: 970px) {
	
	.big-bold {
        font-size: 18px;
        font-weight: 500;
	}
	.big-light {
        font-size: 14px;
        font-weight: 300;
	}
	.menu a {
        font-size: 16px;
        font-weight: 600;
		padding: 0 5px 25px 0;
	}
	.menu {
		display: flex;
		justify-content: space-between
	}
	.menu-content {
		min-width: 0;
		width: auto;
		text-align: right;
	}
	.menu-header {
		min-width: 0;
		width: auto;
	}
	.menu-header img {
	    float: left;
	    margin-right: 10px; /* volitelná mezera mezi obrázkem a dalšími prvky */
	}
}

/* Menší velikosti pro mobilní telefony (max-width: 868px) */
@media screen and (max-width: 768px) {
	
	h1 {
	    font-size: 34px;
	}
	h2 {
	    font-size: 26px;
	}
	h3 {
	    font-size: 24px;
	}	
	h4 {
	    font-size: 18px;
	}	
	h5 {
	    font-size: 16px;
	}
	
	.menu .logo-desktop {
		display: none;
	}

	.menu .logo-mobile {
		display: flex;
	}
	
	.content-container {
		padding: 70px 0 0 0;
	}
	
	.online-container {
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        padding: 20px;
	}
	
	.recipe-image2 {
	    width: 100%;
	}
	
	/* Zvýraznění při najetí */
	.menu-items a:hover {
	    background: rgba(255, 255, 255, 0.2);
	}

	/* 📌 Položky v menu */
	.menu-items a {
	    display: block;
	    padding: 12px;
	    color: #F8F9FA;
	    font-size: 20px;
	}
	
    .menu-content a {
        display: block;
        padding: 10px;
        color: #F8F9FA;
    }
	
	.menu-header {
		width: 100%;
	}
	
    .menu-toggle {
	    justify-content: right;
	    align-items: flex-end;
	    text-align: right;
        display: block; /* Zobrazit hamburger */
		width: 25px;
    }
	
    .menu {
        flex-direction: row;
        justify-content: center;
        padding: 10px;
		width: 100%;
		max-height: 70px;
    }

    .menu-content {
        display: none; /* Skryté menu */

    }

    /* 📌 Skryté menu, které se objeví po kliknutí */
    .menu-items {
        display: none;
		z-index: 1000;
        flex-direction: column;
        position: fixed;
	    justify-content: center;
	    align-items: center;
	    text-align: center;
        top: 70px;
        width: 100%;
        background: rgba(100, 100, 100, 0.95);
        padding: 10px 0;
		min-width: 100px;
    }

    .menu-items.active {
        display: flex; /* Po kliknutí se zobrazí */
    }		
	
	.login-container {
	    width: 100%;
	}

	.recipe-container,
	.recipe-container2 {
	    width: 100%;
		padding: 15px;
		margin: 10px auto 0;
	}
	
	.no-mobile {
		display: none;
	}
	
    .recipe-details {
        flex-direction: column;
    }
	.recipe-image {
	    flex: 1 1 100%;
	    width: 100%;
		height: 200px;
	}
	.recipe-image img{
	    width: 100%;
		height: 100%;
	}
	.recipe-header {
	    margin-top: 30px;
		overflow-x: hidden;
	}
	
	.header h4 {
		padding-left: 10px;
	}
	
	button.res-mobile,
	input.res-mobile {
	  width: 90% !important;
	  min-width: 200px;
	  margin: 5px 0 5px 0 !important;
	}
	
	.day-block input {
		max-width: 49%;
	}
	
	.table-mobile {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	.no-desktop {
		display: block;
	}
	
}	


/* ---------- Language switcher (pre-login pages) ---------- */
.lang-switcher {
    position: absolute;
    top: 14px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.5px;
    z-index: 5;
}
.lang-switcher .lang-link {
    color: #828282;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 3px;
    transition: color 0.15s ease, background 0.15s ease;
}
.lang-switcher .lang-link:hover { color: #ad7d3d; }
.lang-switcher .lang-link.is-active {
    color: #ad7d3d;
    font-weight: 700;
    background: #faf6ef;
}
.lang-switcher .lang-sep { color: #cccccc; user-select: none; }


/* ============================================================
   MENSTRUACNI KALENDAR (mcal)
   ============================================================ */

.mcal-container {
    padding: 24px;
    max-width: 760px;
}

/* ---------- Flash hlasky ---------- */
.mcal-flash {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    max-width: 90vw;
    transition: opacity 0.4s ease;
}
.mcal-flash-success { background: #d8f0d8; color: #1d5a1d; }
.mcal-flash-error   { background: #fde0e0; color: #8a1f1f; }

/* ---------- Horni lista: navigace mesicu ---------- */
.mcal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.mcal-month-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mcal-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ebebeb;
    color: #ad7d3d;
    font-size: 22px;
    text-decoration: none;
    background: #fff;
    transition: background 0.15s ease;
}
.mcal-nav-btn:hover { background: #faf6ef; }
.mcal-month-label {
    font-size: 18px;
    font-weight: 700;
    color: #212121;
    min-width: 150px;
    text-align: center;
}
.mcal-today-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ad7d3d;
    color: #ad7d3d;
    text-decoration: none;
    font-size: 13px;
    background: #fff;
    transition: background 0.15s ease;
}
.mcal-today-btn:hover { background: #faf6ef; }

/* ---------- Den cyklu + zpozdeni ---------- */
.mcal-cycle-day {
    margin: 0 0 8px;
    font-size: 14px;
    color: #828282;
}
.mcal-overdue {
    margin: 0 0 8px;
    font-size: 14px;
    color: #b0578a;
    font-weight: 600;
}

/* ---------- Banner otevrene periody ---------- */
.mcal-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #fce1f2;
    border-left: 4px solid #e05c8c;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #212121;
}
.mcal-banner-stale {
    background: #fdeaea;
    border-left-color: #c0392b;
}
.mcal-cancel-start {
    border: 1px solid #c0392b;
    color: #c0392b;
    background: #fff;
    border-radius: 16px;
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.mcal-cancel-start:hover { background: #fdeaea; }

/* ---------- Mrizka ---------- */
.mcal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 4px;
    margin-bottom: 14px;
}
.mcal-dow {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #828282;
    padding-bottom: 6px;
    text-transform: uppercase;
}
.mcal-day {
    position: relative;
    min-height: 52px;
    border: none;
    background: none;
    padding: 6px 0;
    cursor: pointer;
    font: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mcal-daynum {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    color: #212121;
}
.mcal-day:hover .mcal-daynum { background: rgba(173, 125, 61, 0.12); }
.mcal-day.is-out { opacity: 0.45; }

/* Dnesek: krouzek kolem cisla (barva + tvar, ne jen barva) */
.mcal-day.is-today .mcal-daynum {
    border: 2px solid #ad7d3d;
    font-weight: 700;
}

/* Pas periody pres dny - ::before pruh za cislem */
.mcal-day::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 0;
    background: transparent;
}

/* Zadana (uzavrena) perioda - syta vypln */
.mcal-day.is-period::before { background: #e05c8c; }
.mcal-day.is-period .mcal-daynum { color: #fff; font-weight: 600; }
.mcal-day.is-period:hover .mcal-daynum { background: rgba(0, 0, 0, 0.15); }

/* Otevrena perioda - prouzkovana (jiny vzor nez plna vypln) */
.mcal-day.is-open::before {
    background: repeating-linear-gradient(
        45deg,
        #e05c8c, #e05c8c 6px,
        #ee92b4 6px, #ee92b4 12px
    );
}
.mcal-day.is-open .mcal-daynum { color: #fff; font-weight: 600; }
.mcal-day.is-open:hover .mcal-daynum { background: rgba(0, 0, 0, 0.15); }

/* Predikce - svetle pozadi + carkovany okraj (odlisitelne i bez barvy) */
.mcal-day.is-predicted::before {
    background: #fce1f2;
    border-top: 2px dashed #e05c8c;
    border-bottom: 2px dashed #e05c8c;
}
.mcal-day.is-predicted .mcal-daynum { color: #b0578a; font-weight: 600; }
.mcal-day.is-predicted.pos-start::before { border-left: 2px dashed #e05c8c; }
.mcal-day.is-predicted.pos-end::before   { border-right: 2px dashed #e05c8c; }

/* Predikce ovulace - jako predikce menstruace, ale modra (1 den) */
.mcal-day.is-ovulation::before {
    background: #e1ecfc;
    border-top: 2px dashed #4a78d0;
    border-bottom: 2px dashed #4a78d0;
}
.mcal-day.is-ovulation .mcal-daynum { color: #2f5bb0; font-weight: 600; }
.mcal-day.is-ovulation.pos-single::before { border-left: 2px dashed #4a78d0; border-right: 2px dashed #4a78d0; }

/* Zaobleni okraju pasu */
.mcal-day.pos-start::before  { left: 6px;  border-top-left-radius: 18px;  border-bottom-left-radius: 18px; }
.mcal-day.pos-end::before    { right: 6px; border-top-right-radius: 18px; border-bottom-right-radius: 18px; }
.mcal-day.pos-single::before { left: 6px; right: 6px; border-radius: 18px; }

/* ---------- Legenda ---------- */
.mcal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #828282;
    margin-bottom: 10px;
}
.mcal-leg { display: inline-flex; align-items: center; gap: 6px; }
.mcal-swatch {
    display: inline-block;
    width: 22px;
    height: 14px;
    border-radius: 7px;
}
.sw-period { background: #e05c8c; }
.sw-open {
    background: repeating-linear-gradient(
        45deg,
        #e05c8c, #e05c8c 4px,
        #ee92b4 4px, #ee92b4 8px
    );
}
.sw-predicted { background: #fce1f2; border: 2px dashed #e05c8c; height: 10px; }
.sw-ovulation { background: #e1ecfc; border: 2px dashed #4a78d0; height: 10px; }
.sw-today { background: #fff; border: 2px solid #ad7d3d; border-radius: 50%; width: 14px; height: 14px; }

/* ---------- Statistiky ---------- */
.mcal-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 13px;
    color: #212121;
    background: #faf6ef;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 10px;
}
.mcal-stats-hint { color: #828282; }

/* ---------- Tip ---------- */
.mcal-tip {
    font-size: 13px;
    color: #828282;
    margin: 0;
}

/* ---------- Modal dialog ---------- */
.mcal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.mcal-modal-overlay[hidden] { display: none; }
.mcal-modal {
    background: #fff;
    border-radius: 10px;
    padding: 20px 22px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.mcal-modal h5 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #212121;
}
.mcal-modal p {
    margin: 0 0 16px;
    font-size: 14px;
    color: #212121;
}
.mcal-modal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.mcal-btn {
    border: 1px solid #ebebeb;
    background: #fff;
    color: #212121;
    border-radius: 18px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.mcal-btn:hover { background: #f5f5f5; }
.mcal-btn-primary {
    background: #ad7d3d;
    border-color: #ad7d3d;
    color: #fff;
}
.mcal-btn-primary:hover { background: #966a31; }
.mcal-btn-danger {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}
.mcal-btn-danger:hover { background: #a53125; }

/* ---------- Mobile page title v menu (genericke, drive v calendar bloku) ---------- */
.menu-pagetitle { display: none; }

@media (max-width: 768px) {
    .menu-brand { display: none; }
    .menu-pagetitle {
        display: inline-block;
        font-size: 16px;
        font-weight: 700;
        color: #212121;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0;
        text-align: left;
    }
    .menu-header { padding-left: 12px; }

    /* Skryj header (h4 + logged user) na mobilu, je v menu */
    .header { display: none; }
    .content-container { padding-top: 70px; }
    .recipe-container { margin-top: 0; }

    .mcal-container { padding: 14px; }
    .mcal-day { min-height: 48px; }
    .mcal-month-label { min-width: 0; font-size: 16px; }
    .mcal-topbar { flex-wrap: wrap; }

    /* Flash toast nesmi zasahovat do fixni menu listy (vyska ~70px) */
    .mcal-flash { top: 80px; }
}

