.duration-\[1s\] {
	--tw-duration: 1s;
	transition-duration: 1s;
}

#admin-panel {
	position: fixed;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	z-index: 1000;
}

.admin-panel-menu {
	background-color: white;
	padding: 1rem;
	border-radius: 8px 0 0 8px;
	box-shadow: -2px 0px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
	transform: translateX(100%);
	opacity: 0;
	visibility: hidden;
	height: 175px;
}

.admin-panel-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
	white-space: nowrap;
}

.admin-panel-menu a {
	display: block;
	padding: 0.75rem 1.25rem;
	color: #333;
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 0.2s, color 0.2s;
}

.admin-panel-menu a:hover {
	background-color: #f0e9f2;
	color: #672B7B;
}

#admin-panel-toggle {
	background-color: #672B7B;
	color: white;
	border: none;
	padding: 1.5rem 0.75rem;
	cursor: pointer;
	border-radius: 8px 0 0 8px;
	font-size: 1.2rem;
	line-height: 1;
	box-shadow: -2px 0px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease-in-out;
}

#admin-panel.is-open .admin-panel-menu {
	transform: translateX(0);
	opacity: 1;
	visibility: visible;
}

#admin-panel.is-open #admin-panel-toggle {
	transform: rotate(180deg);
	height: 175px;
	transition: transform 0.3s ease-in-out, height 0.3s ease-in-out;
}

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	justify-content: center;
	align-items: center;
	z-index: 10002;

	/* --- ZMĚNA ZDE --- */
	/* 1. Ve výchozím stavu je modal kompletně odstraněn ze stránky */
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.modal-overlay.is-visible {
	/* 2. Po přidání třídy .is-visible se zobrazí jako flex kontejner */
	display: flex;
	opacity: 1;
}

.modal-content {
	background: white;
	border-radius: 8px;
	box-shadow: 0 5px 25px rgba(0,0,0,0.2);
	width: 95%;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	transform: translateY(-20px);
	transition: transform 0.3s ease-out;
}

.modal-overlay.is-visible .modal-content {
	transform: translateY(0);
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #eee;
	padding: 1.5rem 2rem;
	flex-shrink: 0; /* Zabrání zmenšení hlavičky */
}

.modal-body {
	/* 3. Tělo modalu se bude roztahovat a scrollovat podle potřeby */
	flex-grow: 1; /* Řekne tělu, aby zabralo všechno volné místo */
	overflow-y: auto; /* Přidá svislý scrollbar, POKUD je obsah delší */
}

.modal-header h2 {
	margin: 0;
	font-size: 1.5rem;
}

.close-modal-btn {
	background: none;
	border: none;
	font-size: 2.5rem;
	line-height: 1;
	cursor: pointer;
	color: #aaa;
	padding: 0;
}
.close-modal-btn:hover {
	color: #333;
}

pre {
	margin: 0; /* Odstraníme výchozí odsazení */
}


#code-editor {
	/* Můžeme odebrat min-height, protože výšku teď řídí .modal-body */
	display: block;
	height: auto;
	padding: 1rem;
	outline: none;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.modal-footer {
	text-align: right;
	margin-top: 1.5rem;
	padding: 0 2rem 1.5rem; /* Upravíme padding */
	flex-shrink: 0; /* Zabrání zmenšení patičky */
}

.modal-save-btn {
	background-color: #672B7B;
	color: white;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1rem;
	transition: background-color 0.2s;
}

.modal-save-btn:hover {
	background-color: #532262;
}

.logo-class-desktop {
	width: 12%;
}

@media (max-width: 488px) {
	.logo-class {
		width: 40%;
	}
}

@media (min-width: 488px) {
	.logo-class {
		width: 15%;
	}
}

@media (min-width: 1023px) {
	.contact-us {
		position: absolute;
		top: 120px;
	}
}

.margin-top-25 {
	margin-top: 25px;
}

.padding-left-7 {
	padding-left: 7px;
}
