/* Kontener dla sticky menu */
.sticky-menu-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 16777271 !important;
    padding: 10px !important;
    background: white !important;
    display: none;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}/* Style dla logo i tekstu w sticky */
.sticky-menu-text {
    display: flex !important;
    align-items: center !important;
}

.sticky-menu-text a {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: inherit !important;
    font-weight: bold !important;
}

.sticky-logo {
    height: 30px !important;
    margin-right: 8px !important;
}

.sticky-menu-text span {
    color: inherit !important;
    font-size: 16px !important;
}

/* Przycisk hamburger */
.hamburger-button {
    padding: 8px;
    background: white !important;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 45px;
    position: relative !important;
    z-index: 16777271 !important;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-left: auto !important; /* Wyśrodkowanie burgera */
    width: fit-content !important;
}

.hamburger-line {
    display: block;
    width: 30px;
    height: 6px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s;
}

/* Menu rozwijane */
.nav-menu {
    display: none;
    position: absolute !important;
    right: 0 !important;
    top: 60px !important;
    background: white !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    width: 250px;
    z-index: 16777271 !important;
    max-height: 80vh;
    overflow-y: auto;
}

/* Style dla listy w menu */
.nav-menu ul {
    list-style: none;
    padding: 8px 0 !important;
    margin: 0;
    background: white !important;
}

.nav-menu li {
    padding: 8px 16px !important;
    margin: 0 !important;
}

/* Zachowanie stylów linków */
.nav-menu a {
    text-decoration: none;
    display: block;
    width: 100%;
    font-family: inherit !important;
    font-size: inherit !important;
}

/* Kolory i style linków */
.czerw a { 
    color: #e53e3e !important;
    font-weight: bold !important;
}
.szaryc a { 
    color: #4a5568 !important;
    font-weight: bold !important;
}
.nieb a { 
    color: #3182ce !important;
    font-weight: bold !important;
}

/* Hover effect */
.nav-menu li:hover {
    background-color: #f7fafc;
}

/* style dla ciemnego motywu */
@media (prefers-color-scheme: dark) {
    /* Przycisk hamburger */
    .hamburger-button {
        background: transparent !important;
        box-shadow: none !important;
    }

    .sticky-menu-container .hamburger-button {
        background: #333 !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
    }
    
    .sticky-menu-container {
        background: #333 !important;
        color: white !important;
    }
    
    .sticky-menu-text a {
        color: #ff6b6b !important;
    }

    .hamburger-line {
        background-color: #fff !important;
    }

    /* Menu rozwijane */
    .nav-menu {
        background: #333 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
    }

    .nav-menu ul {
        background: #333 !important;
    }

    .nav-menu li:hover {
        background-color: #444 !important;
    }

    /* Overlay w trybie ciemnym */
    .menu-overlay {
        background: rgba(0,0,0,0.7) !important;
    }
}