/* =========================
   BÉLYEG ADATLAP – KÉP + ADAT
========================= */

.stamp-detail {
	display: grid;
	grid-template-columns: 380px 1fr;
	gap: 2.5rem;
	margin-bottom: 3rem;
	align-items: flex-start;
}

/* KÉP BLOKK */
.stamp-gallery {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.main-image img {
	max-width: 100%;
	width: 330px;
	height: auto;
	border-radius: 4px;
}

/* VÍZJEL ÁBRA */
.watermark-box {
	background: #fafafa;
	border: 1px dashed #ccc;
	border-radius: 8px;
	padding: 12px;
	text-align: center;
}

.watermark-box h4 {
	font-size: 0.9rem;
	color: var(--primary-color);
	margin-bottom: 8px;
}

.watermark-box img {
	max-width: 100%;
	opacity: 0.85;
}

/* MOBIL */
@media (max-width: 900px) {
	.stamp-detail {
		grid-template-columns: 1fr;
	}

	.main-image {
		padding: 16px;
	}
	
	#comments-container {
		margin:10px
	}
}


.stamp-section-title {
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
	font-size: 1.1rem;
	color: var(--primary-color);
	border-bottom: 2px solid var(--secondary-color);
	padding-bottom: 4px;
}

.stamp-ids {
	color: #666;
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.comment-section {
	margin-top: 3rem;
	padding-top: 1rem;
	border-top: 1px solid #ddd;
}

.comment {
	display: flex;
	margin-bottom: 1rem;
}

.comment.reply {

	margin-top: 1rem;
}

.comment-avatar img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	margin-right: 1rem;
	border: 1px solid var(--secondary-color);
    padding: 3px;
}

.comment-body {
	flex: 1;
}

.comment-header {
	font-size: 0.95rem;
	color: #333;
	margin-bottom: 0.3rem;
}

.comment-time {
	color: #888;
	font-size: 0.85rem;
}

.comment-text {
	font-size: 1rem;
	line-height: 1.5;
	padding: 10px;
}

.comment-text a {
	text-decoration:none;
	color:blue;
}

.comment-actions {}

.comment-actions button {
	background: none;
	border: none;
	font-size: 0.9rem;
	cursor: pointer;
}

.comment-actions button:hover {
	color: var(--primary-color);
}

.like-count {
	font-size: 0.85rem;
	color: #666;
}

.vjkep {
	width: 150px;
	float: right;
	margin-top: -80px;
	border-radius: 10px;
}


/* =========================
	BELÉPÉS
===========================*/
.comment-login-box {
	display: flex;
	gap: 16px;
	align-items: center;
	background: var(--light-color);
	border: 1px dashed #d8c9a5;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 24px;
}

.comment-login-avatar img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	opacity: 0.7;
	border: 1px solid var(--secondary-color);
    padding: 4px;
}

.comment-login-text {
	flex: 1;
}

.comment-login-text strong {
	display: block;
	color: var(--primary-color);
	margin-bottom: 4px;
}

.comment-login-text p {
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 10px;
}

.comment-login-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.comment-login-actions button {
	border-radius: 8px;
	padding: 6px 14px;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	border: none;
}

.comment-login-actions .login-btn {
	background: var(--secondary-color);
	color: white;
	border: 1px solid var(--secondary-color);
}

.comment-login-actions .login-btn:hover {
	background: #a88a4d;
}

.comment-login-actions .register-btn {
	background: transparent;
	border: 1px solid var(--secondary-color);
	color: var(--secondary-color);
}

.comment-login-actions .register-btn:hover {
	background: rgba(184, 155, 94, 0.1);
}

/* =========================
   KOMMENT FORM – PROFI
========================= */

.comment-form {
	display: flex;
	gap: 16px;
	background: var(--light-color);
	border: 1px solid #e6dcc6;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 24px;
}

.comment-form-avatar img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid var(--secondary-color);
    padding: 3px;
}

.comment-form-body {
	flex: 1;
}

.comment-form-body textarea {
    width: 100%;
    resize: vertical;
    border-radius: 8px;
    border: 1px inset #f6f4f4;
    padding: 10px;
    font-size: 0.95rem;
    background: #e8e6de;
}

.comment-images {
	margin-top: 8px;
}

.comment-image-upload {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: var(--primary-color);
	cursor: pointer;
}

#image-preview {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	flex-wrap: wrap;
}

#image-preview img {
	width: 70px;
	height: 70px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #ccc;
}

.comment-form-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
}

.comment-form-actions button {
	background: var(--secondary-color);
	color: white;
	border: none;
	padding: 8px 18px;
	border-radius: 8px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
}

.comment-form-actions button:hover {
	background: #a88a4d;
}

.comment-images-preview {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	flex-wrap: wrap;
}

.comment-images-preview img {
	width: 100px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--secondary-color);
	transition: transform .2s ease;
	padding:3px;
}

.comment-images-preview img:hover {
	transform: scale(1.05);
}

.reply-form {
	margin-top: 8px;
	padding: 8px;
	background: #faf7f1;
	border-radius: 6px;
}

.comment-admin-badge {
	display: inline-flex;
	align-items: center;
	color: #b59a5a;
	font-size: 13px;
}

.comment-admin-badge i {
	font-size: 15px;
}


.reply-form textarea {
	width: 100%;
	resize: vertical;
	border-radius: 8px;
	border: 1px solid #ccc;
	padding: 10px;
	font-size: 0.95rem;
}

.reply-actions {
	margin-top: 6px;
	display: flex;
	gap: 6px;
}

.reply-btn {
	margin-left: 10px;
}

.reply-actions button {
	background: var(--secondary-color);
	color: white;
	border: none;
	padding: 8px 18px;
	border-radius: 8px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
}

.reply-images {
	margin-top: 6px;
}

.reply-image-upload {
	font-size: 13px;
	color: #555;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.reply-image-preview {
	margin-top: 6px;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.reply-image-preview img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid #ddd;
}

.like-btn {
	background: none;
	border: none;
	color: #a7a7a7;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	padding: 0;
}

.like-btn:hover {
	color: #2a7c4f;
}

.like-btn i {
	font-size: 14px;
}

.like-btn.liked {
	color: #2a7c4f;
}

.comment-menu {
	position: relative;
	display: inline-block;
	margin-left: 8px;
}

.comment-menu-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: #999;
	padding: 2px 4px;
}

.comment-menu-btn:hover {
	color: #333;
}

.comment-menu-dropdown {
	position: absolute;
	right: 0;
	top: 22px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-shadow: 0 6px 16px rgba(0,0,0,0.1);
	display: none;
	z-index: 10;
	min-width: 140px;
}

.comment-menu-dropdown button {
	width: 100%;
	background: none;
	border: none;
	text-align: left;
	padding: 8px 10px;
	font-size: 13px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
}

.comment-menu-dropdown button:hover {
	background: #f5f5f5;
}

.comment-menu-dropdown i {
	width: 14px;
}

.comment-deleted {
	font-style: italic;
	color: #999;
	padding: 8px 0;
}
.comment.editing .comment-text {
	background: #fffdf7;
	padding: 6px;
	border-radius: 6px;
}

.edit-textarea {
	width: 100%;
	resize: vertical;
	font-family: inherit;
	font-size: 14px;
}

.edit-actions {
	margin-top: 6px;
	display: flex;
	gap: 8px;
}

.edit-actions button {
	font-size: 13px;
}

.comment.editing .comment-text {
	background: #fffdf7;
	padding: 6px;
	border-radius: 6px;
}

.edit-textarea {
    width: 100%;
    resize: vertical;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 0.95rem;
}

.edit-actions {
	margin-top: 6px;
	display: flex;
	gap: 8px;
}

.edit-actions button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}


.stamp-select {
	max-width: 720px;
	margin: 50px auto;
	position: relative;
	font-family: inherit;
}

.stamp-select-input {
	background: var(--light-color);
	border-radius: 999px;
	padding: 1rem 1.4rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;

	border: 2px solid #e7ddcc;
	box-shadow: 0 8px 30px rgba(0,0,0,0.12);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.stamp-select.open .stamp-select-input {
	box-shadow: 0 12px 40px rgba(31,91,58,0.25);
	border-color: var(--secondary-color);
}

.stamp-selected-text {
	font-size: 1.05rem;
	color: #1f2f25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.stamp-arrow {
    position: absolute;
    right: 1px;
    top: 2px;
    font-size: 2.2rem;
    text-align: center;
    color: #1f5b3a;
    transition: transform .25s ease;
    background: #e7ddcc;
    overflow: hidden;
    width: 65px;
    height: 57px;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
	transition: color .2s ease;
}

.stamp-arrow:hover {
	color: var(--secondary-color);
}

.stamp-select.open .stamp-arrow {
	transform: rotate(180deg);
	top: 2px;
	right: 2px;
	border-top-right-radius: 0%;
	border-bottom-right-radius: 0%;
	border-top-left-radius: 50%;
	border-bottom-left-radius: 50%;
}

.stamp-options {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;

	background: #ffffffa6;
	border-radius: 18px;
	box-shadow: 0 18px 50px rgba(0,0,0,0.18);

	max-height: 320px;
	overflow-y: auto;

	opacity: 0;
	pointer-events: none;
	transform: translateY(-10px);
	transition: all .25s ease;
	z-index: 100;
	backdrop-filter: blur(3px);
}

.stamp-select.open .stamp-options {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.stamp-option {
	padding: 0.75rem 1.4rem;
	cursor: pointer;
	font-size: 1.2rem;
	color: #24362b;
	transition: background .2s ease;
}

.stamp-option:hover {
	background: #dedcd0;
}


/* ==========================================
   BÉLYEG LÉPTETŐ NAVIGÁCIÓ (Retro stílusban)
   ========================================== */

.stamp-navigation-container {
    max-width: 720px;
    margin: 0px auto 30px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: inherit;
}

.nav-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--light-color);
    border: 1px solid #e7ddcc;
    border-radius: 50px;
    padding: 6px 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav-group.denomination-nav {
    background: #e8e7df;
    border-style: dashed;
}

.nav-label {
    font-size: 0.8rem;
    color: #737372;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.nav-label.text-gold {
    color: var(--secondary-color);
}

.stamp-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--primary-color);
    background: transparent;
    transition: all 0.2s ease;
}

.stamp-nav-btn:hover:not(.disabled) {
    background: #e7ddcc;
    color: #11301d;
}

.stamp-nav-btn.sub-nav {
    color: var(--secondary-color);
}

.stamp-nav-btn.sub-nav:hover:not(.disabled) {
    background: #e5ddcb;
    color: #8c6e33;
}

.stamp-nav-btn.disabled {
    color: #c4c4c4;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

/* Kisebb kijelzők optimalizálása */
@media (max-width: 600px) {
    .stamp-navigation-container {
        padding: 0 10px;
        margin-top: -10px;
    }
    .nav-group {
        padding: 4px 8px;
		background:#e5e4da;
    }
    .nav-label {
        display: none; /* Mobilon elrejtjük a középső feliratot a helyhiány miatt */
    }
    .stamp-nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
	.vjkep {
		width: 120px;
		float: right;
		margin-top: -45px;
		border-radius: 10px;
	}
	
	.stamp-select {
		max-width: 330px;
	}
}

/* ==========================================
   RITKASÁGI MUTATÓ (Rarity Meter)
   ========================================== */
.rarity-meter-box {
    background: #ebeae247;
    border: 1px solid #b89b5e;
    border-radius: 8px;
    padding: 14px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.rarity-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #333;
}

.rarity-text {
    font-size: 0.95rem;
}

.rarity-bar {
    display: flex;
    gap: 4px;
    height: 10px;
    width: 100%;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    padding: 1px;
}

.rarity-segment {
    flex: 1;
    background: #dfded4;
    border-radius: 2px;
    transition: background-color 0.3s ease;
    border: 1px inset;
}

.rarity-segment.active {
    background-color: var(--active-color);
	border: 1px inset #ffffff;
}

/* ==========================================
   KATALÓGUSÉRTÉK-SZÁMOLÓ (Value Calculator)
   ========================================== */
.value-calculator-box {
    background: #e0dfd6;
    border: 1px solid #b89b5e;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.value-calculator-box .calc-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.value-calculator-box .calc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 12px;
}

.value-calculator-box .calc-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
	align-items: flex-start;
}

.value-calculator-box .calc-row label {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.value-calculator-box .calc-input {
	width: 100%;
    padding: 8px 10px;
    border: 1px inset #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #e2e1d7;
    box-sizing: border-box;
}

.value-calculator-box #calc-qty {
	width:80px;
}

.value-calculator-box .calc-input:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(184, 155, 94, 0.3);
}

.value-calculator-box .calc-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed #e7ddcc;
    font-size: 0.95rem;
    color: #333;
}

.value-calculator-box .calc-result strong {
    font-size: 1.15rem;
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .value-calculator-box .calc-inputs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ==========================================
   VIRTUÁLIS ALBUM / GYŰJTEMÉNY PANEL
   ========================================== */
.collection-status-panel {
    display: flex;
    gap: 10px;
    margin: 15px 0 25px 0;
    flex-wrap: wrap;
}

.collection-status-panel .col-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #b89b5e;
    background: #eae8e1;
    color: #555;
    transition: all 0.2s ease;
    width: 100%;
	text-align: left;
}

.collection-status-panel .col-btn i {
    font-size: 0.95rem;
    opacity: 0.7;
}

.collection-status-panel .col-btn:hover {
    border-color: var(--secondary-color);
    background: #faf7f0;
    color: var(--primary-color);
}

/* Minden kijelölt (aktív) gomb alapértelmezetten halványzöld lesz */
.collection-status-panel .col-btn.active {
    background: #e8f5e9;
    border-color: #2e7d32;
    color: #2e7d32;
}
.collection-status-panel .col-btn.active i {
    color: #2e7d32;
    opacity: 1;
}

/* Egyedül a hiányzó (kívánságlista) aktív gomb kap piros kiemelést */
.collection-status-panel .col-btn.active.wishlist-btn {
    background: #ffebee;
    border-color: #c62828;
    color: #c62828;
}
.collection-status-panel .col-btn.active.wishlist-btn i {
    color: #c62828;
    opacity: 1;
}

.collection-status-panel.not-logged-in {
    opacity: 0.6;
}
.collection-status-panel.not-logged-in .col-btn {
    cursor: pointer;
}

.balh3 {
	margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 4px;
	width: 100%;
}

/* Wrapper igazítása */
#stamp-image-wrapper {
    display: inline-block;
    width: 100%;
}

/* Árnyék örököltetése a képnek és az SVG-nek is */
#stamp-image-wrapper img{
	width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(2px 4px 6px gray);
}

#stamp-image-wrapper svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Pipetta kurzor csak a filléres, interaktív színskálán */
.color-palette-img.interactive-sampler {
    cursor: crosshair;
}

/* Az SVG-be illesztett értékszám stílusai */
#stamp-image-wrapper svg text#stamp-value-text {
    fill: #413e36 !important;
    font-weight: bold;
    font-size: 80px;
	font-family: Times, serif;
}

/* Dinamikus színezés az SVG belső útvonalaira (kivéve a háttérpapírt) */
#stamp-image-wrapper svg path:not(.stamp-paper-bg),
#stamp-image-wrapper svg rect:not(.stamp-paper-bg),
#stamp-image-wrapper svg circle:not(.stamp-paper-bg),
#stamp-image-wrapper svg polygon:not(.stamp-paper-bg) {
    fill: var(--stamp-tint-color, #333) !important;
}

/* ====================================
   AZONOS MPIK ÉS KIADÁS ALVERZIÓI (TABS)
   ==================================== */
.variant-tabs {
	display: flex;
    gap: 2px;
    margin-top: -10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: flex-end;
    border-bottom: 2px inset #b89b5e;
    width: 93%;
    margin-left: auto;
    margin-right: 37px;
}

.variant-tab-btn {
	display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #e8e7df;
    border: 1px solid #d3c3a3;
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
    border-bottom: 0px;
    color: #5c4b31;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.variant-tab-btn i {
	font-size: 0.85rem;
}

.variant-tab-btn:hover {
	background-color: #ede5d3;
	border-color: #a0864e;
	color: #40321c;
}

.variant-tab-btn.active {
	background-color: var(--secondary-color, #a0864e);
	color: #ffffff;
	border-color: var(--secondary-color, #a0864e);
	box-shadow: 0 2px 5px rgba(160, 134, 78, 0.3);
}

@media (max-width: 768px) {
	.variant-tabs {
        display: flex;
        margin-top: -10px;
        margin-bottom: 25px;
        flex-wrap: wrap;
        justify-content: center;
        border-bottom: 0px inset #b89b5e;
        width: 100%;
	}
}
/* ====================================
   HIBALISTA MODAL
   ==================================== */
#errors-modal .section-title {
	margin-bottom: 15px;
	font-size: 1.4em;
	border-bottom: 2px solid var(--primary-color);
	padding-bottom: 5px;
	margin-top: 0px;
}

#errors-modal h4 {
	margin: 15px 0 8px 0;
	color: var(--primary-color);
	border-bottom: 1px solid #ddd;
	padding-bottom: 3px;
	font-size: 1.1em;
}

.errors-modal-list {
	max-height: 380px;
	overflow-y: auto;
	text-align: left;
	padding: 10px;
}

.error-item {
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px dashed #eee;
	padding-left: 10px;
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	flex-direction: row;
	gap: 15px;
}

.errors-image {
	width: 100px;
	height: 100px;
	flex: 0 0 100px;
	border: 1px solid gray;
	padding: 5px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.errors-image:hover {
    border-color: #2c5530;
    box-shadow: 0 0 8px rgb(5 145 96 / 50%);
}

.errors-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.error-item strong {
	color: #b71c1c;
	font-size: 1.05em;
	flex: 0 0 60px;
	margin-top: 2px;
}

.error-item span {
	flex: 1;
	display: block;
	font-size: 0.95em;
	color: #333;
	line-height: 1.4;
	word-break: break-word;
	margin-top: 2px;
}

.errors-box {
	margin-bottom: 20px;
	padding: 10px;
}

.errors-list-trigger {
	display: inline-block;
	margin-top: 5px;
	cursor: pointer;
	font-weight: bold;
	color: #b71c1c;
}


/* ==========================================
   BÉLYEG LÉPTETŐ NAVIGÁCIÓ (Retro stílusban)
   ========================================== */

.calc-inputs {
	display: flex;
	flex-direction: row;
	gap: 10px;
	margin-top: 15px;
}

.calc-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.calc-result-box {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px dashed #e2d2b5;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

/* ==========================================
   VALUTA VÁLTÓ
   ========================================== */
.currency-tabs {
    background: #9b9b9b2e;
    padding: 0;
    border-radius: 25px;
    border: none;
    box-sizing: border-box;
    overflow: hidden;
	border: 1px solid #9c9c9c;
}

.currency-tab {
    border: none;
    background: transparent;
    color: #000;
    padding: 10px 15px;
    border-radius: 0;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease-in-out;
}

.currency-tab:hover {
    color: #fff;
}

.currency-tab.active {
    background: #b89b5e;
    color: #ffffff;
}

@media(max-width: 768px) {
	.currency-tab {
		padding: 8px;
	}
}
/* ==========================================
   EGYEDI LISTA HOZZÁADÁS ÉS MODÁL STÍLUSOK (stc-)
   ========================================== */

/* Fejléc gombok elrendezése */
.stc-title-actions {
	display: flex;
	gap: 6px;
	align-items: center;
}

.stc-action-btn {
    border: 1px solid #b89b5e;
    background: #d4d3cb;
    color: #40321c;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.stc-action-btn:hover {
	color: white;
}

.stc-btn-add.stc-just-added {
	background: #2e7d32;
	color: #fff;
	border-color: #2e7d32;
}

#stc-list-badge {
    color: #b89b5e;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 1rem;
    margin-left: 2px;
    font-weight: bold;
}

/* Modal háttér sötétítés */
.stc-modal-overlay {
	display: none;
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
}

/* Modal ablak */
.stc-modal-window {
	background-color: #fcfbfa;
	margin: 8% auto;
	width: 90%;
	max-width: 650px;
	border-radius: 12px;
	border: 1px solid #b89b5e;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.stc-modal-header {
	background-color: #e0dfd6;
	padding: 12px 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #b89b5e;
}

.stc-modal-header h3 {
	margin: 0;
	font-size: 1.15rem;
	color: var(--primary-color, #1f5b3a);
}

.stc-modal-close-x {
	background: none;
	border: none;
	font-size: 1.8rem;
	color: #666;
	cursor: pointer;
	line-height: 1;
	padding: 0;
}

.stc-modal-close-x:hover {
	color: #000;
}

.stc-modal-body {
	padding: 15px;
	max-height: 350px;
	overflow-y: auto;
	background: #faf9f5;
}

.stc-empty-message {
	text-align: center;
	padding: 30px;
	color: #777;
	font-style: italic;
}

/* Lista táblázat */
.stc-table-wrapper {
	overflow-x: auto;
}

.stc-list-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.stc-list-table th,
.stc-list-table td {
	padding: 10px;
	border-bottom: 1px solid #e7ddcc;
	text-align: left;
}

.stc-list-table th {
	background-color: #f1ebd9;
	color: #444;
	font-weight: 600;
}

.stc-item-title {
	font-weight: bold;
	color: #333;
}

.stc-item-meta {
	font-size: 0.8rem;
	color: #666;
	margin-top: 2px;
}

.stc-btn-delete-row {
	background: none;
	border: none;
	color: #c62828;
	font-size: 1.1rem;
	cursor: pointer;
	padding: 4px 8px;
}

.stc-btn-delete-row:hover {
	color: #ff1744;
}

/* Modal lábléc */
.stc-modal-footer {
	background-color: #e0dfd6;
	padding: 15px;
	border-top: 1px solid #b89b5e;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.stc-footer-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	background: #faf9f5;
	padding: 10px;
	border-radius: 6px;
	border: 1px solid #dcdad0;
}

.stc-summary-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.stc-summary-row span {
	font-size: 0.9rem;
	color: #555;
}

.stc-summary-row strong {
	font-size: 1.2rem;
	color: var(--primary-color, #1f5b3a);
}

/* Modál valutaváltó */
.stc-modal-currency-switcher {
	display: flex;
	gap: 3px;
	background: #e2e0d5;
	padding: 2px;
	border-radius: 15px;
	border: 1px solid #ccc;
}

.stc-modal-curr-btn {
	background: transparent;
	border: none;
	font-size: 0.75rem;
	font-weight: bold;
	padding: 4px 10px;
	border-radius: 12px;
	cursor: pointer;
	color: #333;
}

.stc-modal-curr-btn.stc-active-curr {
	background: #b89b5e;
	color: white;
}

.stc-footer-actions {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

/* Alap gombok */
.stc-btn-primary {
	background-color: var(--primary-color, #1f5b3a);
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: bold;
}

.stc-btn-primary:hover {
	background-color: #11301d;
}

.stc-btn-secondary {
	background-color: transparent;
	border: 1px solid #c62828;
	color: #c62828;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
}

.stc-btn-secondary:hover {
	background-color: rgba(198, 40, 40, 0.05);
}

/* Mobil optimalizálás */
@media (max-width: 600px) {
	.stc-modal-window {
		margin: 4% auto;
		width: 95%;
	}
	.stc-btn-text {
		display: none; /* Mobilon csak az ikont mutatja ha kevés a hely */
	}
	.stc-action-btn {
		padding: 6px 10px;
	}
	.stc-modal-body {
		max-height: 480px;
        height: 480px;
	}
	.stc-list-table th, .stc-list-table td {
		padding: 6px;
		font-size: 0.8rem;
	}
	
	#stc-list-badge {
		color: #b89b5e;
		border-radius: 50%;
		padding: 2px;
		font-size: 1rem;
		margin-left: 0px;
		font-weight: bold;
	}
	
	.stc-action-btn {
		gap:0px
	}
}