/* Background obrázek pro celé záhlaví včetně menu */
.container-header {
    background-image: url('../../../../../images/headers/bckg-1.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}



/* Zajisti, aby obsah záhlaví byl nad overlay */
.container-header > * {
    position: relative;
    z-index: 1;
}

/* Nastav position relative na container */
.container-header {
    position: relative;
}
.container-header {
  min-height: 15vh;  /* 30 % výšky okna prohlížeče */
}

/* Desktop – menu doprostřed headeru, 10px od spodního okraje */

  .maximenuckh {
    position: relative;
    left: 50%;
    bottom: -5em;
    transform: translateX(-50%);
    z-index: 10;
    width: max-content;              /* aby wrapper nebyl přes celý řádek */
    max-width: calc(100% - 2rem);
  }

/* ============================================
   Login Button — Frosted Glass + STRONG Glow
   Pozice: 50px od pravého kraje směrem do středu
   Vložit do: media/templates/site/cassiopeia/css/user.css
   ============================================ */

#login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #c8daf0;
    background: rgba(100, 130, 170, 0.20);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(140, 175, 220, 0.35);
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    /*line-height: 1.4;*/
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Pozice — 50px od pravého kraje */
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);

    /* SILNÝ glow efekt */
    box-shadow:
        0 0 20px rgba(100, 160, 230, 0.45),
        0 0 40px rgba(100, 160, 230, 0.25),
        0 0 6px rgba(140, 190, 255, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    min-height: 57px;
    box-sizing: border-box;
}

/* Ikona */
#login-button i,
#login-button .fas {
    font-size: 15px;
    color: inherit;
    opacity: 0.9;
}

/* Hover — ještě silnější glow */
#login-button:hover {
    color: #e0ecfa;
    background: rgba(100, 130, 170, 0.30);
    border-color: rgba(140, 175, 220, 0.50);
    box-shadow:
        0 0 30px rgba(100, 160, 230, 0.55),
        0 0 60px rgba(100, 160, 230, 0.30),
        0 0 10px rgba(140, 190, 255, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Focus */
#login-button:focus {
    outline: none;
    box-shadow:
        0 0 30px rgba(100, 160, 230, 0.55),
        0 0 60px rgba(100, 160, 230, 0.30),
        0 0 0 3px rgba(100, 160, 230, 0.35);
}

/* Active (klik) */
#login-button:active {
    background: rgba(100, 130, 170, 0.35);
    box-shadow:
        0 0 15px rgba(100, 160, 230, 0.35),
        0 0 30px rgba(100, 160, 230, 0.15),
        inset 0 1px 3px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(0.98);
}

/* Reset Bootstrap .btn-primary */
#login-button.btn.btn-primary {
    background-color: rgba(100, 130, 170, 0.20);
    border-color: rgba(140, 175, 220, 0.35);
    color: #c8daf0;
}

#login-button.btn.btn-primary:hover {
    background-color: rgba(100, 130, 170, 0.30);
    border-color: rgba(140, 175, 220, 0.50);
    color: #e0ecfa;
}

#login-button.btn.btn-primary:focus,
#login-button.btn.btn-primary:active {
    background-color: rgba(100, 130, 170, 0.35);
    border-color: rgba(140, 175, 220, 0.50);
    box-shadow:
        0 0 30px rgba(100, 160, 230, 0.55),
        0 0 60px rgba(100, 160, 230, 0.30);
}

/* Logo Acresia Tools — pozice + velikost + glow */
img[alt="ACRESIA Tools"] {
    /* Velikost — 300px šířka, výška proporčně (~87px) */
    width: 300px;
    height: auto;

    
    /* Pozice — 50px od pravého kraje, vertikálně vycentrováno */
    position: relative;
    left: 50px;
    top : 50%;
    
    
    /* Glow efekt — bílá záře okolo PNG s průhledností */
    filter:
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.9))
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.6))
        drop-shadow(0 0 40px rgba(255, 255, 255, 0.3));
}














/* --- Celkový kontejner (pozadí přes celou obrazovku) --- */
.popup-container {
    /* Zajistí, že popup bude uprostřed obrazovky, pokud je kontejner fixní přes celou plochu */
    position: fixed; /* Nebo absolute, záleží na zbytku vaší stránky */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Jemně ztmaví pozadí stránky */
    background-color: rgba(0, 0, 0, 0.4);
    /* Flexbox pro vycentrování obsahu */
    display: flex; /* Toto už máte v inline stylu, ale pro jistotu */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Aby byl popup nad vším ostatním */
    /* Použití moderního bezpatkového písma pro celý popup */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Samotná karta popupu --- */
.popup-content {
    position: relative; /* Kvůli umístění křížku */
    background-color: #ffffff;
    /* Moderní stín pro efekt "vznášení" */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    /* Zaoblené rohy */
    border-radius: 12px;
    /* Vnitřní odsazení */
    padding: 32px;
    /* Omezení šířky, aby nebyl popup příliš široký */
    width: 90%;
    max-width: 420px;
    /* Text zarovnaný na střed */
    text-align: center;
    /* Animace pro hladké zobrazení (volitelné) */
    animation: popupFadeIn 0.2s ease-out;
}

/* --- Tlačítko pro zavření (křížek) --- */
.popup-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.popup-close:hover {
    color: #333;
}

/* --- Nadpis --- */
.popup-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
}

/* --- Odstavec s URL --- */
.popup-content p {
    margin-bottom: 24px;
    font-size: 14px;
    color: #666;
    /* Zalamování dlouhých URL, aby nepřetekly */
    word-break: break-all;
    line-height: 1.5;
}

/* --- Odkaz na URL --- */
.popup-content a {
    color: #0066cc; /* Moderní modrá */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, text-decoration 0.2s;
}

.popup-content a:hover {
    color: #004499;
    text-decoration: underline;
}

/* --- Tlačítko pro odhlášení --- */
/* Přebíjíme původní třídu .btn-danger modernějším stylem */
.popup-content .btn-danger {
    /* Reset původních stylů, pokud nějaké frameworkové existují */
    border: none;
    background-image: none;
    text-shadow: none;

    /* Nový vzhled */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Moderní modrá barva (místo "nebezpečné" červené/hnědé) */
    background-color: #0066cc;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    /* Větší padding pro pohodlné kliknutí */
    padding: 12px 24px;
    /* Zaoblené rohy */
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    /* Tlačítko přes celou šířku pro větší důraz */
    width: 100%;
    box-sizing: border-box; /* Aby padding nezvětšil šířku nad 100% */
}

/* Efekt při najetí myší */
.popup-content .btn-danger:hover {
    background-color: #0055aa;
}

/* Efekt při kliknutí */
.popup-content .btn-danger:active {
    background-color: #004499;
    transform: translateY(1px); /* Jemný efekt stlačení */
}

/* --- Ikona uvnitř tlačítka --- */
.popup-content .btn-danger i {
    margin-right: 10px; /* Odsazení ikony od textu */
    font-size: 18px;
}

/* --- Volitelná animace pro zobrazení --- */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

















/* ============================================
   MaximenuCK #maximenuck111 — Pill Menu v3
   FIX: Všechny položky vertikálně vycentrované
   Klíč: Čistý flexbox, žádný float, žádný vertical-align
   Vložit do: media/templates/site/cassiopeia/css/user.css
   ============================================ */


/* ============================================
   1. KONTEJNER — reset všeho
   ============================================ */

#maximenuck111 {
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
    float: none !important;
}


/* ============================================
   2. MENU BAR — pill shape (UL)
   ============================================ */

#maximenuck111 > ul.maximenuck {
    /* FLEXBOX — základ centrování */
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;       /* ← KLÍČOVÉ: vertikální střed */
    justify-content: center !important;
    flex-wrap: nowrap !important;

    /* Reset — odstranění všeho co narušuje flex */
    float: none !important;
    vertical-align: middle !important;
    width: auto !important;
    height: auto !important;

    /* Vizuál — pill shape */
    margin: 0 auto !important;
    padding: 9px 8px 6px 8px !important;
    background: #98A0A8 !important;
    border-radius: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow:
        0 0 15px rgba(152, 160, 168, 0.50),
        0 0 30px rgba(152, 160, 168, 0.30),
        0 2px 12px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
    list-style: none !important;
    gap: 0 !important;
}


/* ============================================
   3. POLOŽKY MENU — LI (všechny level1)
   ============================================ */

#maximenuck111 li.maximenuck.level1 {
    /* FLEXBOX child — centrování */
    display: inline-flex !important;
    align-items: center !important;       /* ← KLÍČOVÉ */
    align-self: center !important;        /* ← KLÍČOVÉ: přebije jakýkoli default */
    justify-content: center !important;

    /* Reset — odstranění VŠEHO co narušuje zarovnání */
    float: none !important;
    vertical-align: middle !important;    /* fallback pro non-flex kontext */
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    list-style: none !important;

    /* Stejná výška pro všechny položky */
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* Explicitní reset pro PRVNÍ položku (často má jiné chování) */
#maximenuck111 li.maximenuck.level1.first {
    display: inline-flex !important;
    align-items: center !important;
    align-self: center !important;
    float: none !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Reset pro POSLEDNÍ položku */
#maximenuck111 li.maximenuck.level1.last {
    display: inline-flex !important;
    align-items: center !important;
    align-self: center !important;
    float: none !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ============================================
   4. ODDĚLOVAČE — svislé čáry
   ============================================ */

#maximenuck111 li.maximenuck.level1 + li.maximenuck.level1::before {
    content: '';
    display: block;
    width: 1px;
    height: 22px;
    background: #484C4F;
    flex-shrink: 0;
    align-self: center;   /* ← oddělovač též vycentrovaný */

    /* Reset */
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 1;
}

/* Žádný oddělovač před prvním */
#maximenuck111 li.maximenuck.level1.first::before {
    display: none !important;
}


/* ============================================
   5. ODKAZ — A element
   ============================================ */

#maximenuck111 li.maximenuck.level1 > a.maximenuck {
    /* FLEXBOX — centrování obsahu uvnitř odkazu */
    display: inline-flex !important;
    align-items: center !important;       /* ← vertikální střed textu */
    justify-content: center !important;

    /* Reset */
    float: none !important;
    vertical-align: middle !important;

    /* Rozměry */
    padding: 10px 24px !important;
    margin: 0 12px !important;
    min-height: 40px;
    height: auto !important;
    line-height: 1.4 !important;

    /* Typografie */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0.01em;
    white-space: nowrap;

    /* Vizuál */
    border-radius: 40px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset ::before/::after na odkazech (výchozí MaximenuCK efekty) */
#maximenuck111 li.maximenuck.level1 > a.maximenuck::before,
#maximenuck111 li.maximenuck.level1 > a.maximenuck::after {
    display: none !important;
}


/* ============================================
   6. TEXT uvnitř — span.titreck
   ============================================ */

#maximenuck111 li.maximenuck.level1 > a.maximenuck span.titreck,
#maximenuck111 li.maximenuck.level1 > a.maximenuck span.titreck-text,
#maximenuck111 li.maximenuck.level1 > a.maximenuck span.titreck-title {
    display: inline !important;
    color: inherit !important;
    font: inherit !important;
    text-decoration: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    float: none !important;
    vertical-align: baseline !important;
    line-height: inherit !important;
}


/* ============================================
   7. HOVER
   ============================================ */

#maximenuck111 li.maximenuck.level1:hover > a.maximenuck {
    color: #ffffff !important;
    background: rgba(72, 76, 79, 0.35) !important;
    box-shadow: none !important;
}

#maximenuck111 li.maximenuck.level1:hover > a.maximenuck span.titreck,
#maximenuck111 li.maximenuck.level1:hover > a.maximenuck span.titreck-text,
#maximenuck111 li.maximenuck.level1:hover > a.maximenuck span.titreck-title {
    color: #ffffff !important;
}


/* ============================================
   8. ACTIVE — bílá pilulka
   ============================================ */

#maximenuck111 li.maximenuck.level1.active > a.maximenuck,
#maximenuck111 li.maximenuck.level1.current > a.maximenuck,
#maximenuck111 li.maximenuck.level1.current.active > a.maximenuck {
    color: #484C4F !important;
    font-weight: 600 !important;
    background: #E9ECED !important;
    border-radius: 40px !important;
    box-shadow:
        0 0 15px rgba(233, 236, 237, 0.50),
        0 0 30px rgba(233, 236, 237, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.10),
        0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

#maximenuck111 li.maximenuck.level1.active > a.maximenuck span.titreck,
#maximenuck111 li.maximenuck.level1.active > a.maximenuck span.titreck-text,
#maximenuck111 li.maximenuck.level1.active > a.maximenuck span.titreck-title,
#maximenuck111 li.maximenuck.level1.current > a.maximenuck span.titreck,
#maximenuck111 li.maximenuck.level1.current > a.maximenuck span.titreck-text,
#maximenuck111 li.maximenuck.level1.current > a.maximenuck span.titreck-title {
    color: #484C4F !important;
    font-weight: 600 !important;
}

/* Active + Hover */
#maximenuck111 li.maximenuck.level1.active:hover > a.maximenuck,
#maximenuck111 li.maximenuck.level1.current:hover > a.maximenuck {
    background: #E9ECED !important;
    box-shadow:
        0 0 20px rgba(233, 236, 237, 0.60),
        0 0 40px rgba(233, 236, 237, 0.30),
        0 3px 12px rgba(0, 0, 0, 0.14),
        0 1px 4px rgba(0, 0, 0, 0.08) !important;
}


/* ============================================
   9. SUBMENU — dropdown
   ============================================ */

#maximenuck111 li.maximenuck div.floatck {
    min-width: 220px !important;
    padding: 8px 0 !important;
    margin-top: 8px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px !important;
    border: 1px solid rgba(200, 205, 215, 0.5) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

#maximenuck111 ul.maximenuck2 li.maximenuck {
    background: transparent !important;
    border: none !important;
    float: none !important;
    display: block !important;
}

#maximenuck111 ul.maximenuck2 li.maximenuck > a.maximenuck {
    display: block !important;
    padding: 10px 20px !important;
    margin: 2px 8px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #3a3f4b !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    border: none !important;
    background: transparent !important;
    transition: all 0.2s ease;
    line-height: 1.4 !important;
    box-shadow: none !important;
    float: none !important;
}

#maximenuck111 ul.maximenuck2 li.maximenuck:hover > a.maximenuck {
    color: #1a1e28 !important;
    background: rgba(200, 205, 215, 0.35) !important;
}

#maximenuck111 ul.maximenuck2 li.maximenuck.active > a.maximenuck {
    color: #1a1e28 !important;
    font-weight: 600 !important;
    background: rgba(200, 205, 215, 0.40) !important;
}

/* Sub submenu */
#maximenuck111 li.maximenuck div.floatck div.floatck {
    margin-top: 0 !important;
    margin-left: 4px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 14px !important;
}


/* ============================================
   10. GLOBÁLNÍ RESET — přebití MaximenuCK inline stylů
   ============================================ */

/* Reset VŠECH LI položek — žádný float, žádný vertical-align: top */
#maximenuck111 ul.maximenuck > li {
    float: none !important;
    vertical-align: middle !important;
    display: inline-flex !important;
    align-items: center !important;
    align-self: center !important;
}

/* Reset inline stylů z MaximenuCK params pluginu */
#maximenuck111 li.maximenuck.level1[style] {
    background: transparent !important;
    border: none !important;
    float: none !important;
}

#maximenuck111 li.maximenuck.level1 > a.maximenuck[style] {
    background: transparent !important;
    border: none !important;
    float: none !important;
}

/* Active musí přebít inline styly */
#maximenuck111 li.maximenuck.level1.active[style] > a.maximenuck,
#maximenuck111 li.maximenuck.level1.current[style] > a.maximenuck {
    background: #E9ECED !important;
}

/* Skrytí mobile toggleru na desktopu */
#maximenuck111 label.maximenumobiletogglericonck,
#maximenuck111 input.maximenumobiletogglerck,
#maximenuck111 a.maximenuck-toggler-anchor {
    display: none !important;
}

/* Clearfix */
#maximenuck111::after,
#maximenuck111 > ul.maximenuck::after {
    content: '' !important;
    display: table !important;
    clear: both !important;
}


/* ============================================
   11. RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    #maximenuck111 > ul.maximenuck {
        flex-direction: column !important;
        border-radius: 20px !important;
        padding: 8px !important;
        width: calc(100% - 32px) !important;
        margin: 0 16px !important;
    }

    #maximenuck111 li.maximenuck.level1,
    #maximenuck111 li.maximenuck.level1.first,
    #maximenuck111 li.maximenuck.level1.last {
        width: 100% !important;
    }

    #maximenuck111 li.maximenuck.level1 + li.maximenuck.level1::before {
        width: 80%;
        height: 1px;
        margin: 2px auto;
    }

    #maximenuck111 li.maximenuck.level1 > a.maximenuck {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        border-radius: 14px !important;
    }

    #maximenuck111 li.maximenuck div.floatck {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.5) !important;
        margin-top: 4px !important;
    }

    #maximenuck111 label.maximenumobiletogglericonck {
        display: block !important;
    }
}


/* ============================================
   12. CASSIOPEIA INTEGRACE
   ============================================ */

.container-header #maximenuck111,
.container-navigation #maximenuck111,
div[class*="mod-custom"] #maximenuck111 {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#maximenuck111 li.maximenuck.level1 {
    z-index: 100;
}

#maximenuck111 li.maximenuck.level1:hover {
    z-index: 101;
}

#maximenuck111 a,
#maximenuck111 a:visited {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
}

#maximenuck111 {
    /* position: relative !important; */
    margin-top: -140px!important;  /* záporná hodnota = posun nahoru */
}

#popup-login-form .btn.btn-success {
    width: 260px;
    text-align: center;
}