﻿

    /* ===== RESET ===== */
    .main-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    /* ===== TOP LEVEL ===== */
    .main-menu > ul {
        display: flex;
        align-items: center;
        padding: 0 12px;
    }

    /* ===== POLOŽKA ===== */
    .main-menu li {
        position: relative;
    }

    /* ===== ODKAZ ===== */
    .main-menu a {
        display: block;
        padding: 12px 20px;
        color: #f8fafc;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: background-color .2s ease, color .2s ease;
    }

        /* ===== HOVER ===== */
        .main-menu a:hover {
            background-color: rgba(255,255,255,0.12);
            color: #ffffff;
        }

    /* ===== AKTÍVNA POLOŽKA ===== */
    .main-menu .selected > a {
        background-color: #2563eb; /* blue-600 */
        color: #ffffff;
        border-radius: 4px;
    }

    /* ===== DROP DOWN ===== */
    .main-menu ul ul {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #1e293b;
        min-width: 210px;
        display: none;
        z-index: 1000;
        border-radius: 6px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    }

        /* ===== DROP ITEM ===== */
        .main-menu ul ul li a {
            padding: 10px 16px;
            font-size: 13px;
        }

            /* ===== DROP HOVER ===== */
            .main-menu ul ul li a:hover {
                background-color: #2563eb;
            }

    /* ===== ZOBRAZENIE SUBMENU ===== */

@media (min-width: 901px) {
    .main-menu li:hover > ul {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }
}
@media (max-width: 900px) {

    .main-menu ul {
        display: none;
        flex-direction: column;
    }

    .main-menu.open ul {
        display: flex;
    }
}

    /* ===== ŠÍPKA PRE SUBMENU ===== */
    .main-menu li:has(ul) > a::after {
        content: " ▾";
        font-size: 11px;
        opacity: 0.7;
    }

/* ===== RESPONSIVE (zjednodušené) ===== */
@media (max-width: 900px) {
    .main-menu > ul {
        flex-direction: column;
        align-items: stretch;
    }

    .main-menu ul ul {
        position: static;
        box-shadow: none;
        border-radius: 0;
    }
}
#testMenu {
    background: #fff;
    padding: 10px;
    font-family: Arial, sans-serif;
}

    #testMenu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
    }

.menu-right {
    margin-left: auto;
}

/* meno používateľa */
.user-menu > a {
    font-weight: 600;
    color: #1d4ed8;
}


@media (max-width: 768px) {

    #menuToggle {
        display: block;
        background: #444;
        color: #fff;
        border: none;
        padding: 8px 12px;
        font-size: 18px;
        cursor: pointer;
        margin-bottom: 8px;
    }

    #menuList {
        display: none;
        flex-direction: column;
    }

        #menuList.open {
            display: flex;
        }

        #menuList > li {
            margin-right: 0;
        }

        #menuList ul {
            position: static;
        }

    .modal-overlay {
        position: fixed;
        inset: 0;
        z-index: 10000;
        background: rgba(0,0,0,.35);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-dialog {
        background: #fff;
        padding: 24px 32px;
        border-radius: 10px;
        box-shadow: 0 10px 40px rgba(0,0,0,.4);
        text-align: center;
        min-width: 280px;
    }

    .modal-spinner {
        width: 42px;
        height: 42px;
        margin: 0 auto;
        border: 4px solid #ddd;
        border-top-color: #3b82f6;
        border-radius: 50%;
        animation: spin .9s linear infinite;
    }

    .modal-text {
        margin-top: 12px;
        font-weight: 600;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }
}
#loadingModal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none; /* default hidden */
    align-items: center; /* flex centering */
    justify-content: center;
    background: rgba(0,0,0,.35);
}

    #loadingModal .modal-dialog {
        background: #fff;
        padding: 24px 32px;
        border-radius: 10px;
        box-shadow: 0 10px 40px rgba(0,0,0,.4);
        text-align: center;
        min-width: 280px;
    }

    #loadingModal .modal-spinner {
        width: 42px;
        height: 42px;
        margin: 0 auto;
        border: 4px solid #ddd;
        border-top-color: #3b82f6;
        border-radius: 50%;
        animation: spin .9s linear infinite;
    }

    #loadingModal .modal-text {
        margin-top: 12px;
        font-weight: 600;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

