/*--- Globális beállítások ---*/
/* v2
/* by:johnsee
/* last mode: 2026.01.02
/*-----------------------*/
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;   /* Megakadályozza az oldal kilógását */
}

.grid-container {
    display: grid;
    grid-template-areas:
        "header header"
        "menu content"
        "footer footer";
    grid-template-columns: 300px 1fr;
    grid-template-rows: 64px 1fr auto;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.page-title {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* --- Animációk (közös használatra) --- */
.fade-in {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-out {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/*--- Reszponzív beállítások ---*/
@media (max-width: 768px) {
    .grid-container {
        grid-template-areas:
            "header"
            "menu"
            "content"
            "footer";
        grid-template-columns: 1fr;
        grid-template-rows: 64px auto 1fr 40px;
    }

    .menu {
        display: none;
    }

    .menu.open {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .footer {
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.5em;
        text-align: center;
    }
}

/* Közös MODAL */
.hidden {
    display: none !important;
}

/* háttér */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* doboz */
.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 420px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

/* cím */
.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    color: #004d4d;

}

/* kereső */
.modal-search-input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

/* szerkesztő */
.modal-input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

/* lista konténer */
.modal-list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* lista elem */
.modal-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

/* alsó gombok */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}