:root {
    --efalmenu-tab-accent: #3b82f6;
}

/* =========================================================
   MOBIL NÉZET (Alapértelmezett: Egyoszlopos folytonos lista)
   ========================================================= */
.overlay-home-btn{
    display:none;
}

.overlay_btn_sub_margin{
    display:none;
}

.overlay-closemenu-btn{
    display:block;
    position: fixed;
    top:14px;
    right:8px;
    width:32px;
    height:32px;
    border-radius:5px;
    min-height:32px;
    border:3px solid #c52a07;
    background-color: #f0370d;
    background: linear-gradient(139deg, rgb(197 42 7 / 1) 0%, rgb(240 55 13 / 1) 100%);
    color:#FFF;
    cursor:pointer;
    transition: box-shadow 0.5s;
    text-shadow: 0px 0px 3px rgba(255,255,255,0.8);
    z-index: 110;
}

.overlay-menu-wrapper {
    position: fixed;
    top: 0;
    left: 0.5%;
    display: flex;
    flex-direction: column;
    width: 99%;
    margin: 0 auto;
    height: 99%;
    max-height: 98vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index:103;
}

.overlay-menu-sidebar {
    display: none;
}

.overlay-menu-content-area {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.menu-tab-content {
    display: block;
    margin-bottom: 2.5rem;
}

.content-group-title {
    background-color: rgb(255 255 255 / 0.50);
    color: #333;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius:10px;
}

.content-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.menu-item-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s;
}

.menu-item-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.menu-item-text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

.menu-divider-col {
    grid-column: 1 / -1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.5rem 0;
}

/* =========================================================
   KERESŐMEZŐ STÍLUSOK (ÚJ)
   ========================================================= */
.menu-search-container {
    margin-top:-10px;
    margin-bottom: 1rem;
    position: relative;
    /* Mobilon hagyjunk helyet az X gombnak a jobb sarokban */
    margin-right: 3rem;
}

.menu-search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
}

.menu-search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--efalmenu-tab-accent, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.search-icon {
    color: #94a3b8;
    margin-right: 12px;
    font-size: 1.1rem;
}

#efalMenuSearchInput {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    outline: none;
    width: 100%;
}

#efalMenuSearchInput::placeholder {
    color: #b4c3d8;
}

.search-clear-icon {
    color: #94a3b8;
    cursor: pointer;
    margin-left: 12px;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.search-clear-icon:hover {
    color: #ef4444;
}

.menu-search-results-container {
    animation: fadeIn 0.3s ease-out;
}

.menu-search-results-container .content-group-title {
    color: #ffffff;
    border-bottom-color: var(--efalmenu-tab-accent, #3b82f6);
    background-color: var(--efalmenu-tab-accent, #3b82f6);
    opacity: 0.9;
}


/* =========================================================
   ASZTALI NÉZET (768px felett: Füles "Tabbed" elrendezés)
   ========================================================= */
@media (min-width: 768px) {
    .menu-search-container {
        margin-top:-25px;
        margin-bottom: 1.5rem;
        position: relative;
        /* Mobilon hagyjunk helyet az X gombnak a jobb sarokban */
        margin-right: 2rem;
    }

    .overlay-closemenu-btn{
        width:32px;
        height:32px;
        min-height:32px;
    }
    .overlay-home-btn:hover{
        box-shadow: 0px 0px 7px rgba(13, 202, 240, 0.54);
    }
    .overlay-menu-wrapper {
        flex-direction: row;
        min-height: 75vh;
        height: 100%;
        width:100%;
        top:0;
    }

    .overlay-menu-sidebar {
        display: flex;
        flex: 0 0 300px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.2);
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        padding: 1.5rem 0;
    }

    .menu-tab-btn {
        background: transparent;
        border: none;
        color: #94a3b8;
        text-align: left;
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        position: relative;
    }

    .menu-tab-btn:hover {
        color: #f8fafc;
        background: rgba(255, 255, 255, 0.03);
    }

    .menu-tab-btn.active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
        font-weight: 600;
    }

    .menu-tab-btn.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 6px;
        background-color: var(--efalmenu-tab-accent);
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    .overlay-menu-content-area {
        padding: 2.5rem;
    }

    .menu-tab-content {
        display: none;
        margin-bottom: 0;
    }

    .menu-tab-content.active {
        display: block;
        animation: fadeIn 0.3s ease-out;
    }

    .content-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1rem;
    }

    .content-group-title {
        background-color: unset;
        text-align: left;
        color: #ffffff;
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
        padding-top:0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-transform: none;
        letter-spacing: 1px;
        border-radius:0px;
    }

    .menu-search-results-container .content-group-title {
        color: #ffffff;
        border-bottom-color: rgba(255, 255, 255, 0.1);
        background-color: transparent;
    }

    .menu-item-link:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        transform: translateY(-2px);
    }
}

@media (min-width: 993px) {
    .overlay_btn_sub_margin{
        margin-bottom:30px;
        display:block;
    }
    .overlay-home-btn{
        display:block;
        position: fixed;
        top:5px;
        left:5px;
        width:40px;
        height:40px;
        border-radius:5px;
        min-height:40px;
        border:3px solid #165b6a;
        background-color:#0dcaf0;
        background: linear-gradient(139deg, rgba(255,255,255,1) 0%, rgba(13,202,240,1) 100%);
        box-shadow: 0px 0px 15px rgba(13, 202, 240, 0.84);
        cursor:pointer;
        transition: box-shadow 0.5s;
        text-shadow: 0px 0px 3px rgba(255,255,255,0.8);
    }
    .overlay-closemenu-btn{
        width:32px;
        height:32px;
        min-height:32px;
    }
    .overlay-menu-wrapper {
        flex-direction: row;
        min-height: 75vh;
        height: 100%;
        width:75%;
        top:0;
        left:0;
    }
}

@media (min-width: 1400px) {
    .overlay_btn_sub_margin{
        margin-bottom:40px;
        display:block;
    }
    .overlay-home-btn{
        display:block;
        position: fixed;
        top:14px;
        left:8px;
        width:42px;
        height:42px;
        border-radius:5px;
        min-height:40px;
        border:3px solid #165b6a;
        background-color:#0dcaf0;
        background: linear-gradient(139deg, rgba(255,255,255,1) 0%, rgba(13,202,240,1) 100%);
        box-shadow: 0px 0px 15px rgba(13, 202, 240, 0.84);
        cursor:pointer;
        transition: box-shadow 0.5s;
        text-shadow: 0px 0px 3px rgba(255,255,255,0.8);
    }
    .overlay-closemenu-btn{
        width:32px;
        height:32px;
        min-height:40px;
    }
    .overlay-menu-wrapper {
        flex-direction: row;
        min-height: 75vh;
        height: 100%;
        width:60%;
        top:0;
        left:0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}