
:root {
    --gradient-left: #021b79;
    --gradient-right: #0575E6;
    --gradient-left-transparent: rgba(2, 27, 121, 0.8);
    --gradient-right-transparent: rgba(5, 117, 230, 0.8);
    --gradient-left-glow: rgba(2, 27, 121, 0.6);
    --gradient-right-glow: rgba(5, 117, 230, 0.6);
    --hover-width: 320px;
    --brand-font: 'High Speed', sans-serif;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}


nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: transparent !important;
    z-index: 10010 !important;
    pointer-events: auto !important;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    position: relative !important;
    margin-left: 0 !important;
    padding-left: 5px !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #333333;
    font-family: var(--brand-font);
}

.nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    pointer-events: auto !important;
    z-index: 10011 !important;
    position: relative;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    pointer-events: auto !important;
    z-index: 10011 !important;
    cursor: pointer !important;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.nav-button-icon {
    font-size: 16px;
}

.nav-button-text {
    font-family: 'Inter', sans-serif;
}



.bottom-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 100;
}

.copyright-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    z-index: 10004 !important; /* Nad wideo (10001), layout (10002) i panelami (10003) */
}

.copyright {
    color: rgba(51, 51, 51, 0.7);
    font-size: 12px;
    font-family: Arial, sans-serif;
    font-weight: 400;
    text-align: center;
}



/* Cyberpunk Layout */
.cyberpunk-layout {
    display: flex;
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 10002 !important; /* Nad wideo (10001) */
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

.cyberpunk-layout > * {
    pointer-events: auto;
}

.cyberpunk-left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 5% 0 10%;
    position: relative;
    z-index: 10003 !important; /* Nad wideo (10001) i layout (10002) */
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.cyberpunk-left-panel.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.cyberpunk-right-panel {
    flex: 1;
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10003 !important; /* Nad wideo (10001) i layout (10002) */
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    visibility: visible !important;
}

.cyberpunk-right-panel.animate-in {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Upewnij się, że menu jest widoczne w desktop mode */
@media (min-width: 769px) {
    .cyberpunk-right-panel {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
    
    .menu-container {
        display: flex !important;
        visibility: hidden !important; /* Domyślnie ukryte, pokaże się po 3 sekundach */
        opacity: 0 !important;
        transform: translateX(0) !important;
        height: auto !important;
        min-height: 370px !important; /* Wysokość menu */
        pointer-events: none !important; /* Domyślnie nieaktywne */
        transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out !important;
    }
    
    .menu-container.loaded {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    /* Ukryj info-bar i scrollbar podczas loading (gdy menu-container nie ma klasy loaded) */
    .menu-container:not(.loaded) ~ * .info-bar,
    body:not(:has(.menu-container.loaded)) .info-bar,
    body:not(:has(.menu-container.loaded)) .custom-scrollbar {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
    }
}

.cyberpunk-logo-section {
    display: none;
}

.cyberpunk-title-section {
    margin-bottom: 40px;
    position: relative;
}

.cyberpunk-title {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(90deg, #021b79 0%, #0575E6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-family: var(--brand-font);
    text-align: left !important;
}

.cyberpunk-subtitle {
    font-size: 1.2rem;
    color: #333333;
    margin-top: 10px;
    font-weight: 600;
    text-align: left !important;
}

.cyberpunk-description-section {
    max-width: 500px;
    position: relative;
}

.cyberpunk-description {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(51, 51, 51, 0.7);
    margin: 0;
    text-align: left !important;
    text-shadow: none;
    position: relative;
}

/* Gradient line removed */

/* Animation removed - no longer needed */

.menu-container {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 410px !important; /* Wysokość menu + margin dla shadow */
    display: flex !important;
    align-items: center;
    z-index: 10005 !important; /* Nad wideo (10001), layout (10002), panelami (10003) i copyright (10004) */
    justify-content: center;
    opacity: 0 !important; /* Domyślnie ukryte, pokaże się po 3 sekundach */
    transform: translateX(100px);
    transition: opacity 0.5s ease-in-out !important;
    overflow: visible !important; /* Upewnij się, że shadow nie jest ucięty */
    padding: 20px !important; /* Dodaj padding, żeby shadow był widoczny */
    box-sizing: border-box !important;
    pointer-events: none !important; /* Domyślnie nieaktywne */
}

.menu-container.loaded {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.menu-container.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Old Live Demo styles removed - now using cyberpunk layout */


.menu-button {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 50px;
    height: 50px;
    background: rgba(16, 16, 16, 0.8);
    border-radius: 15px;
    cursor: grab;
    transition: box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-button:active {
    cursor: grabbing;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.menu-button .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-left) 0%, var(--gradient-right) 100%);
    border-radius: 15px;
    mask: url('logo.png') center center / 40px 40px no-repeat;
    -webkit-mask: url('logo.png') center center / 40px 40px no-repeat;
    position: relative;
    z-index: 2;
}


/* SortableJS styles */
.sortable-ghost {
    opacity: 0.5;
}

.sortable-chosen {
    cursor: grabbing !important;
}

.sortable-drag {
    cursor: grabbing !important;
    transform: rotate(5deg);
}





.menu {
    position: absolute;
    width: 300px;
    background: rgba(8, 8, 8, 0.95);
    border-radius: 10px;
    overflow-y: auto !important; /* Tylko vertical scroll */
    overflow-x: hidden !important;
    z-index: 10005 !important; /* Nad wideo (10001), layout (10002), panelami (10003) i copyright (10004) */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.2), 0 0 60px rgba(0, 0, 0, 0.1) !important; /* Shadow dookoła menu */
    backdrop-filter: blur(20px);
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
    pointer-events: auto;
    font-family: 'DIN Alternate', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 20px !important; /* Dodaj margin, żeby shadow był widoczny */
}

.menu.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}


.menu-header {
    position: relative;
    height: 50px;
    background: #ffffff; /* White */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.header-gif-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;

    background: var(--animated-theme, url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat) !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll !important;
    background-repeat: no-repeat !important;

    opacity: 0.4;
    filter: saturate(0) invert(1);
    z-index: 1;
    overflow: hidden;
}


@keyframes ping-pong {
    0% { 
        transform: scale(1); 
        opacity: 0.6; 
    }
    25% { 
        transform: scale(1.1); 
        opacity: 0.8; 
    }
    50% { 
        transform: scale(1); 
        opacity: 0.6; 
    }
    75% { 
        transform: scale(1.1); 
        opacity: 0.8; 
    }
    100% { 
        transform: scale(1); 
        opacity: 0.6; 
    }
}

.menu-icon-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.menu-icon-glow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 auto;
}

.menu-icon-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gradient-left) 0%, var(--gradient-right) 100%);
    -webkit-mask: url('logo.png') center center / 50px 50px no-repeat;
    mask: url('logo.png') center center / 50px 50px no-repeat;
    -webkit-mask-size: 50px 50px;
    mask-size: 50px 50px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    pointer-events: none;
    z-index: 1;
}



.menu-icon-glow img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: saturate(150%) brightness(1.2);
    display: block;
    margin: 0 auto;
}

#menuLogo {
    position: relative;
    opacity: 0;
}

.menu-icon-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gradient-left) 0%, var(--gradient-right) 100%);
    -webkit-mask: url('logo.png') center center / 50px 50px no-repeat;
    mask: url('logo.png') center center / 50px 50px no-repeat;
    -webkit-mask-size: 50px 50px;
    mask-size: 50px 50px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    pointer-events: none;
    z-index: 1;
}


.menu-subheader {
    height: 30px;
    background: #ffffff; /* White */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0; /* No padding - version and counter start from edges */
    position: relative;
    font-family: 'DIN Alternate', -apple-system, BlinkMacSystemFont, sans-serif;
}

.version-label {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    padding: 0 10px;
    z-index: 2;
    display: inline-block;
    height: 30px;
    line-height: 30px;
    width: fit-content; /* Width based on text + padding, no min-width */
    font-family: 'DIN Alternate', -apple-system, BlinkMacSystemFont, sans-serif;
    font-variant-numeric: lining-nums; /* Use lining numbers for consistent appearance */
    margin-left: 0; /* Start from left edge */
}

.version-label::before {
    content: '';
    position: absolute;
    left: 0; /* Start from left edge of container like iOS */
    top: 0;
    width: 100%; /* Width equals text + padding (fit-content) */
    height: 100%;
    background: linear-gradient(90deg, 
        var(--gradient-left-transparent) 0%, 
        var(--gradient-right-transparent) 100%);
    border-radius: 0 15px 15px 0; /* Only right corners rounded */
    z-index: -1;
}

.main-menu-label {
    color: #000000;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 1;
    font-family: 'DIN Alternate', -apple-system, BlinkMacSystemFont, sans-serif;
}

.main-menu-label:hover {
    color: var(--gradient-right);
    background: rgba(255, 255, 255, 0.1);
}

.counter-label {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    padding: 0 10px;
    z-index: 2;
    text-align: right;
    display: inline-block;
    margin-left: auto;
    margin-right: 0; /* Start from right edge */
    height: 30px;
    line-height: 30px;
    width: fit-content; /* Width based on text + padding, no min-width */
    font-family: 'DIN Alternate', -apple-system, BlinkMacSystemFont, sans-serif;
    font-variant-numeric: lining-nums; /* Use lining numbers for consistent appearance */
}

.counter-label::before {
    content: '';
    position: absolute;
    right: 0; /* Start from right edge of container like iOS */
    top: 0;
    width: 100%; /* Width equals text + padding (fit-content) */
    height: 100%;
    background: linear-gradient(90deg, 
        var(--gradient-right-transparent) 0%, 
        var(--gradient-left-transparent) 100%);
    border-radius: 15px 0 0 15px; /* Only left corners rounded */
    z-index: -1;
}


.main-scroll-view {
    max-height: 270px; /* 9 visible switches * 30px height */
    overflow-y: auto;
    overflow-x: hidden !important;
    background: #ffffff; /* White */
    position: relative;
    z-index: 10006 !important; /* Nad menu (10005) */
}

.main-scroll-view::-webkit-scrollbar {
    display: none;
}

/* Show scrollbar on hover like iOS */
.main-scroll-view:hover ~ .custom-scrollbar.visible,
.menu:hover .custom-scrollbar.visible,
.menu-container:hover .custom-scrollbar.visible {
    opacity: 1;
}

.sub-menu-item {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow-x: hidden !important;
    max-width: 100%;
    box-sizing: border-box;
}

.sub-menu-item {
    position: relative;
}

.sub-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: var(--hover-width, 100%);
    height: 100%;
    background: linear-gradient(90deg, 
        var(--gradient-left-transparent) 0%, 
        var(--gradient-right-transparent) 100%);
    opacity: var(--hover-opacity, 0);
    border-radius: 0 15px 15px 0; /* Only right corners rounded */
    transition: all 0.2s ease;
    z-index: -1;
}

.sub-menu-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-left);
    box-shadow: 0 0 8px var(--gradient-left);
    border-radius: 1.5px;
    opacity: var(--indicator-opacity, 0);
    transition: all 0.2s ease;
    z-index: 1;
}

.sub-menu-item.selected {
    background: var(--gradient-left-transparent);
}

.sub-menu-text {
    color: #000000;
    font-size: 12px;
    font-weight: 500;
    font-family: 'DIN Alternate', -apple-system, BlinkMacSystemFont, sans-serif;
}

.sub-menu-arrow {
    width: 12px;
    height: 12px;
    background: linear-gradient(90deg, var(--gradient-left) 0%, var(--gradient-right) 100%);
    mask-image: url('/src/assets/images/ui/arrowshape_zigzag_forward_fill.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url('/src/assets/images/ui/arrowshape_zigzag_forward_fill.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
    display: inline-block;
}

.sub-menu-item:hover .sub-menu-arrow {
    transform: rotate(0deg) scale(1.2);
}


.custom-scrollbar {
    position: fixed !important; /* Fixed positioning like iOS (added to mainWindow) */
    width: 3px !important; /* W iOS scrollbar jest bardzo cienki (2-3px) */
    min-width: 3px !important;
    max-width: 3px !important;
    background: rgba(0, 0, 0, 0.5) !important; /* Bardziej widoczne tło jak w iOS */
    backdrop-filter: blur(10px) saturate(180%) !important; /* Blur with saturation like iOS */
    -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
    border-radius: 1.5px !important; /* Zaokrąglone rogi */
    opacity: 0;
    z-index: 10000 !important; /* Pod hamburger menu (10030) i navbar (10010-10020) */
    pointer-events: none !important;
    overflow: hidden !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: opacity 0.3s ease !important; /* Płynne pojawianie się jak w iOS */
    isolation: isolate !important; /* Tworzy nowy stacking context */
    transform: translateZ(0) !important; /* Force hardware acceleration i nowy stacking context */
    will-change: opacity !important; /* Optymalizacja renderowania */
}

.custom-scrollbar.visible {
    opacity: 1 !important; /* Zawsze widoczny gdy ma klasę visible */
    visibility: visible !important;
}

.scrollbar-thumb {
    width: 3px !important; /* W iOS thumb ma taką samą szerokość jak scrollbar */
    height: 28px;
    background: rgba(0, 0, 0, 0.6) !important; /* Ciemniejszy thumb jak w iOS */
    border-radius: 1.5px !important;
    position: absolute;
    top: 1px;
    left: 0 !important; /* Wyśrodkowany w scrollbar */
    transition: top 0.05s linear, height 0.05s linear;
}




.menu-footer {
    height: 20px;
    background: #ffffff; /* White */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 10px 10px; /* Bottom corners rounded like iOS */
    font-family: 'DIN Alternate', -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-text {
    color: transparent;
    background: linear-gradient(90deg, var(--gradient-left) 0%, var(--gradient-right) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    font-size: 12px;
    font-weight: 500;
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    font-family: 'DIN Alternate', -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-gif-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;

    background: var(--animated-theme, url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat) !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll !important;
    background-repeat: no-repeat !important;

    opacity: 0.4;
    filter: saturate(0) invert(1);
    z-index: 1;
    overflow: hidden;
}

body.light-mode .footer-gif-bg {
    filter: saturate(0) invert(1) !important;
}

/* Loading Spinner */
.menu-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10010 !important;
    transition: opacity 0.3s ease;
    pointer-events: none;
    overflow: hidden !important;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
}

/* Ukryj wszystkie elementy menu podczas loading */
body.menu-loading-active .info-bar,
body.menu-loading-active .custom-scrollbar,
body.menu-loading-active .menu-container:not(.loaded),
body.menu-loading-active .menu-container:not(.loaded) * {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    border: 4px solid rgba(5, 117, 230, 0.2);
    border-top-color: #0575E6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #0575E6;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

body.light-mode .loading-text {
    color: #021b79;
}

body.light-mode .loading-spinner {
    border-color: rgba(2, 27, 121, 0.2);
    border-top-color: #021b79;
}


.info-bar {
    position: absolute;
    /* width i left są ustawiane dynamicznie przez JavaScript */
    min-height: 30px;
    background: #ffffff; /* White */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    padding: 5px 15px;
    font-family: 'DIN Alternate', -apple-system, BlinkMacSystemFont, sans-serif;
    /* top i left są ustawiane dynamicznie przez JavaScript */
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    z-index: 10006 !important; /* Nad menu (10005), na tym samym poziomie co submenu-content */
}

.info-bar.visible {
    opacity: 1;
    transform: translateY(0);
}

.info-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    display: inline-block;
    background-color: var(--gradient-left);
    mask-image: url('/src/assets/images/ui/exclamationmark_shield.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url('/src/assets/images/ui/exclamationmark_shield.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.info-text {
    color: #000000;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
    font-family: 'DIN Alternate', -apple-system, BlinkMacSystemFont, sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}


.content-scroll-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(20px);
    width: 315px;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(8, 8, 8, 0.95);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 998;
}

.content-scroll-view.visible {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(0);
}

.content-scroll-view::-webkit-scrollbar {
    display: none;
}

.submenu-content {
    display: none;
    position: relative;
    z-index: 10006 !important; /* Nad menu (10005) */
}

.submenu-content.active {
    display: block;
    z-index: 10006 !important; /* Nad menu (10005) */
}


.switch-item {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
    z-index: 10007 !important; /* Nad submenu-content (10006) */
}

.switch-item {
    position: relative;
}

.switch-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: var(--hover-width, 100%);
    height: 100%;
    background: linear-gradient(90deg, var(--gradient-left) 0%, var(--gradient-right) 100%);
    opacity: var(--hover-opacity, 0);
    border-radius: 0 15px 15px 0;
    transition: all 0.2s ease;
    z-index: -1;
    box-shadow: 0 0 10px var(--gradient-right-glow);
}


.switch-item.on::before {
    background: linear-gradient(90deg, var(--gradient-left) 0%, var(--gradient-right) 100%) !important;
    box-shadow: 0 0 10px var(--gradient-right-glow) !important;
}

.switch-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-left);
    box-shadow: 0 0 8px var(--gradient-left);
    border-radius: 1.5px;
    opacity: var(--indicator-opacity, 0);
    transition: all 0.2s ease;
    z-index: 1;
}

.switch-label {
    color: #000000;
    font-size: 12px;
    font-weight: 500;
    flex: 1;
    font-family: 'DIN Alternate', -apple-system, BlinkMacSystemFont, sans-serif;
}


.switch-status {
    width: 40px;
    height: 18px;
    background: #666666; /* Szary kolor dla OFF */
    border-radius: 9px; /* Half of height (18/2 = 9) for perfect capsule shape */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000; /* Black color for OFF text */
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: 'DIN Alternate', -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: center;
    box-sizing: border-box;
}

/* Ogólny .switch-status.on - nie dotyczy classic switch */
.switch-status.on {
    background: var(--gradient-right) !important; /* Right gradient dla ON */
    color: white !important; /* Biały tekst dla ON */
}




.switch-slider {
    flex: 1;
    margin: 0 10px;
    display: flex;
    align-items: center;
}

/* Ukryj ::after pseudo-element dla slider switches, żeby nie wyświetlał SF symbols */
.slider-switch::after,
.rgb-slider-switch::after {
    display: none !important;
    content: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

.rgb-slider-switch .switch-slider {
    flex: 1;
    margin: 0 10px;
    display: flex;
    align-items: center;
}

/* Ukryj wartość w RGB slider switch */
.rgb-slider-switch .switch-value {
    display: none !important;
}

.slider-input,
.rgb-slider-input {
    width: 100%;
    height: 18px;
    background: transparent; /* Transparent for both - gradients handled by overlays */
    border-radius: 9px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    position: relative;
    z-index: 10; /* Above overlays */
}

.slider-input::-webkit-slider-thumb,
.rgb-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: white; /* Default white, will be changed by JavaScript */
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: relative;
}

.slider-input::-webkit-slider-thumb:hover {
    /* Bez zmiany koloru przy hover - jak w iOS */
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rgb-slider-input::-webkit-slider-thumb:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.slider-input::-webkit-slider-track {
    /* Maximum track - dokładnie jak w iOS: colorWithWhite:0.9 alpha:0.8 dla light mode */
    background: rgba(230, 230, 230, 0.8) !important;
    border-radius: 0;
    height: 18px;
    border: none;
    box-shadow: none;
}

.slider-input::-moz-range-track {
    /* Maximum track - dokładnie jak w iOS: colorWithWhite:0.9 alpha:0.8 dla light mode */
    background: rgba(230, 230, 230, 0.8) !important;
    border-radius: 0;
    height: 18px;
    border: none;
    box-shadow: none;
}


/* RGB Slider Track - Transparent (RGB gradient handled by overlay) */
.rgb-slider-input::-webkit-slider-track {
    background: transparent; /* Transparent - RGB gradient handled by overlay */
    border-radius: 9px;
    height: 18px;
    border: none;
}

.rgb-slider-input::-moz-range-track {
    background: transparent; /* Transparent - RGB gradient handled by overlay */
    border-radius: 9px;
    height: 18px;
    border: none;
}

.rgb-slider-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: white; /* Default white, will be changed by JavaScript */
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: relative;
}

.switch-item[data-switch="custom_menu_color"] .slider-input::-webkit-slider-track {
    /* Maximum track - dokładnie jak w iOS: colorWithWhite:0.9 alpha:0.8 dla light mode */
    /* Bez border-radius - zaokrąglone rogi tylko na końcach (renderowane przez overlay) */
    background: rgba(230, 230, 230, 0.8) !important;
    border-radius: 0;
    height: 18px;
    border: none;
    box-shadow: none;
}

.switch-item[data-switch="custom_menu_color"] .slider-input::-moz-range-track {
    /* Maximum track - dokładnie jak w iOS: colorWithWhite:0.9 alpha:0.8 dla light mode */
    /* Bez border-radius - zaokrąglone rogi tylko na końcach (renderowane przez overlay) */
    background: rgba(230, 230, 230, 0.8) !important;
    border-radius: 0;
    height: 18px;
    border: none;
    box-shadow: none;
}

.switch-value {
    width: 40px; /* Szerokość jak w iOS (valueWidth = 40) */
    height: 18px !important; /* Wysokość jak w iOS (valueHeight = 18) */
    /* Tło kapsuły jak w iOS: colorWithWhite:0.9 alpha:0.8 dla light mode */
    /* colorWithWhite:0.9 = rgb(230, 230, 230), alpha:0.8 */
    background: rgba(230, 230, 230, 0.8) !important; /* Dokładnie jak w iOS light mode */
    border-radius: 9px !important; /* Połowa wysokości (18px/2 = 9px) dla idealnej kapsuły jak w iOS */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gradient-right) !important; /* Right gradient color jak w iOS */
    font-size: 11px; /* Font size jak w iOS */
    font-weight: bold;
    font-family: 'ArialRoundedMTBold', 'Arial Rounded MT Bold', -apple-system, BlinkMacSystemFont, sans-serif; /* ArialRoundedMTBold jak w iOS */
    text-align: center;
    box-sizing: border-box;
    font-family: 'DIN Alternate', -apple-system, BlinkMacSystemFont, sans-serif;
    font-variant-numeric: lining-nums; /* Use lining numbers for consistent appearance */
}


.switch-textfield {
    width: 80px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 9px;
    color: var(--gradient-right);
    font-size: 11px;
    text-align: center;
    outline: none;
    margin-right: 10px;
    font-family: 'DIN Alternate', -apple-system, BlinkMacSystemFont, sans-serif;
}

.switch-textfield:focus {
    background: rgba(255, 255, 255, 0.2);
}


/* Execute button w action-switch - zawsze używa tylko hand.tap SF Symbol */
/* Ukryj ::after pseudo-element dla action-switch, żeby nie wyświetlał dodatkowych ikon */
.action-switch::after {
    display: none !important;
    content: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

.action-switch .switch-button {
    width: 20px;
    height: 20px;
    background-color: var(--gradient-right);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    /* SF Symbol icon using mask-image - tylko hand.tap */
    mask-image: url('/src/assets/images/ui/hand_tap.png') !important;
    -webkit-mask-image: url('/src/assets/images/ui/hand_tap.png') !important;
    mask-size: contain !important;
    mask-repeat: no-repeat !important;
    mask-position: center !important;
    -webkit-mask-size: contain !important;
    -webkit-mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
}

.action-switch .switch-button:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--gradient-right-glow);
}


.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateX(-20px);
}

.back-button.visible {
    opacity: 1;
    transform: translateX(0);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.back-button svg {
    color: var(--gradient-right);
    filter: drop-shadow(0 0 10px var(--gradient-right));
}



body.light-mode .menu,
body.light-mode .content-scroll-view,
body.light-mode .back-button,
body.light-mode .info-bar {
    filter: invert(1);
}

/* Notification nie używa invert - ma własne kolory jak w iOS */
body.light-mode .custom-notification {
    filter: none;
}

body.light-mode .custom-scrollbar {
    background: rgba(255, 255, 255, 0.3) !important; /* Semi-transparent light background like iOS UIBlurEffectStyleLight */
}

body.light-mode .scrollbar-thumb {
    filter: invert(1); /* Invert gradient colors to match light mode menu */
}


.theme-toggle-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle-item .sub-menu-arrow {
    width: 12px;
    height: 12px;
    background: linear-gradient(90deg, var(--gradient-left) 0%, var(--gradient-right) 100%);
    mask-image: url('/src/assets/images/ui/switch_2.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url('/src/assets/images/ui/switch_2.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    transition: transform 0.3s ease;
    display: inline-block;
}

.theme-toggle-item:hover .sub-menu-arrow {
    transform: scale(1.2);
}


@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        min-height: 100vh;
        position: relative !important;
    }
    
    html {
        overflow-x: hidden !important;
        height: auto !important;
        min-height: 100vh;
    }
    
    nav {
        padding: 0.75rem 1rem !important;
    }
    
    .nav-container {
        padding: 0 !important;
    }
    
    .logo-section {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .logo-text {
        font-size: 16px !important;
    }
    
    .logo-icon {
        width: 24px !important;
        height: 24px !important;
    }
    
    .desktop-nav {
        margin-right: 0 !important;
    }
    
    .social-link {
        padding: 0.5rem !important;
        min-width: 36px !important;
        height: 36px !important;
    }
    
    .social-link span {
        display: none !important;
    }
    
    .cyberpunk-layout {
        flex-direction: column !important;
        height: auto !important;
        min-height: calc(100vh - 60px);
        padding: 5px 1rem 30px !important;
        padding-top: calc(5px + env(safe-area-inset-top, 0)) !important;
        padding-bottom: calc(30px + env(safe-area-inset-bottom, 0)) !important;
        padding-left: calc(1rem + env(safe-area-inset-left, 0)) !important;
        padding-right: calc(1rem + env(safe-area-inset-right, 0)) !important;
        gap: 1.5rem !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: relative !important;
        z-index: 10002 !important;
    }
    
    .cyberpunk-left-panel {
        flex: none !important;
        width: 100% !important;
        padding: 0 !important;
        transform: translateX(0) !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    .cyberpunk-left-panel.animate-in {
        transform: translateX(0) !important;
    }
    
    .cyberpunk-title {
        font-size: clamp(24px, 6vw, 32px) !important;
        text-align: center !important;
        margin-bottom: clamp(6px, 1.5vh, 12px) !important;
        margin-top: 0 !important;
    }
    
    .cyberpunk-subtitle {
        font-size: clamp(12px, 3vw, 16px) !important;
        text-align: center !important;
        margin-top: 0 !important;
        margin-bottom: clamp(12px, 3vh, 18px) !important;
    }
    
    .cyberpunk-description {
        font-size: clamp(12px, 3vw, 16px) !important;
        text-align: center !important;
        max-width: 100% !important;
        line-height: 1.6 !important;
        padding: 0 0.5rem !important;
    }
    
    .cyberpunk-logo-section {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        width: 100%;
        margin-bottom: clamp(6px, 1.5vh, 12px);
    }
    
    .cyberpunk-logo-icon {
        width: clamp(60px, 15vw, 80px);
        height: clamp(60px, 15vw, 80px);
        object-fit: contain;
        transition: all 0.3s ease;
        margin: 0 auto;
        display: block;
    }
    
    .cyberpunk-title-section {
        margin-bottom: 0 !important;
        width: 100% !important;
    }
    
    .cyberpunk-description-section {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .cyberpunk-right-panel {
        flex: none !important;
        width: 100% !important;
        padding: 0 !important;
        transform: translateX(0) !important;
        justify-content: center !important;
        align-items: flex-start !important;
        min-height: auto !important;
        max-height: calc(100vh - 200px) !important;
        overflow-y: auto !important;
    }
    
    .cyberpunk-right-panel.animate-in {
        transform: translateX(0) !important;
    }
    
    .menu-container {
        transform: translateX(0) scale(0.85) !important;
        transform-origin: center top !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
    }
    
    .menu-container.animate-in {
        transform: translateX(0) scale(0.85) !important;
    }
    
    .menu {
        width: 300px !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        position: relative !important;
        transform-origin: center top !important;
        overflow-x: hidden !important;
    }
    
    .info-bar {
        /* width jest ustawiane dynamicznie przez JavaScript */
        min-width: 0;
    }
    
    .menu * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .main-scroll-view {
        overflow-x: hidden !important;
    }
    
    .sub-menu-item {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    .sub-menu-text {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: calc(100% - 30px) !important;
    }
    
    .content-scroll-view {
        width: 315px !important;
        max-width: 315px !important;
        left: 50% !important;
        transform: translate(-50%, 0) scale(0.85) !important;
        transform-origin: center top !important;
        position: absolute !important;
        margin-top: 0 !important;
    }
    
    .content-scroll-view.visible {
        transform: translate(-50%, 0) scale(0.85) !important;
    }
    
    .menu-button {
        width: 40px;
        height: 40px;
    }
    
    .back-button {
        top: 10px;
        left: 10px;
        width: 35px;
        height: 35px;
    }
    
    .copyright-container {
        display: none !important;
    }
    
    .copyright {
        display: none !important;
    }
}


.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); }
}


.switch-style-checkbox .switch-status {
    display: none;
}

/* Checkbox - based on auth.html style */
/* Wyłącz hover effect dla checkbox */
.switch-style-checkbox {
    --hover-width: 0 !important;
}

/* Checkbox - używa SF symbols jak w iOS */
/* Checkbox container (::after) - OFF state: square */
.switch-style-checkbox::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    display: block;
    /* SF Symbol: square (OFF state) */
    background-color: #666666 !important; /* Szary kolor gdy OFF (jak w iOS) */
    mask-image: url('/src/assets/images/ui/square.png') !important;
    -webkit-mask-image: url('/src/assets/images/ui/square.png') !important;
    mask-size: contain !important;
    mask-repeat: no-repeat !important;
    mask-position: center !important;
    -webkit-mask-size: contain !important;
    -webkit-mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    cursor: pointer;
    transition: all 0.2s ease-out;
    z-index: 2;
    /* Nadpisz switch-item::after */
    left: auto !important;
    box-shadow: none !important;
    opacity: 1 !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Checkbox - ON state: checkmark.square.fill */
.switch-style-checkbox.on::after {
    /* SF Symbol: checkmark.square.fill (ON state) */
    background-color: var(--gradient-right) !important; /* Right gradient gdy ON (jak w iOS) */
    mask-image: url('/src/assets/images/ui/checkmark_square_fill.png') !important;
    -webkit-mask-image: url('/src/assets/images/ui/checkmark_square_fill.png') !important;
}

/* Ukryj ::before dla checkbox (nie używamy już checkmark jako ::before) */
.switch-item.switch-style-checkbox::before {
    display: none !important;
}

/* Classic Switch - identyczny jak w iOS light mode */
.switch-style-classic .switch-status {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important; /* Szerokość jak w iOS (statusWidth = 40) */
    height: 18px !important; /* Wysokość jak w iOS (statusHeight = 18) */
    /* Tło kapsuły jak w iOS: colorWithWhite:0.9 alpha:0.8 dla light mode */
    background: rgba(230, 230, 230, 0.8) !important; /* Dokładnie jak w iOS light mode */
    border-radius: 9px !important; /* Połowa wysokości (18px/2 = 9px) dla idealnej kapsuły jak w iOS */
    font-size: 11px !important; /* Font size jak w iOS */
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; /* System font jak w iOS */
    text-align: center;
    color: rgba(77, 77, 77, 1.0) !important; /* colorWithWhite:0.3 alpha:1.0 dla OFF w light mode */
    box-sizing: border-box;
    position: absolute;
    right: 10px; /* 10px margin from right jak w iOS */
    top: 50%;
    transform: translateY(-50%);
}

/* Classic Switch - ON state */
.switch-style-classic .switch-status.on {
    background: rgba(230, 230, 230, 0.8) !important; /* Tło pozostaje takie samo */
    color: var(--gradient-right) !important; /* Right gradient color gdy ON (jak w iOS) */
}

.switch-style-toggle .switch-status {
    display: none;
}

/* iOS Switch - based on provided code */
/* Wyłącz hover effect dla iOS toggle */
.switch-style-toggle {
    position: relative;
    --hover-width: 0 !important;
}

/* The switch - the box around the slider (::after) */
.switch-item.switch-style-toggle::after {
    content: '';
    position: absolute;
    display: block;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 22px !important;
    display: block;
    background-color: #e9e9eb;
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.2s ease-out;
    z-index: 2;
    /* Nadpisz switch-item::after */
    left: auto !important;
    box-shadow: none !important;
    opacity: 1 !important;
    border: none !important;
}

/* The slider (::before) */
.switch-item.switch-style-toggle::before {
    content: '' !important;
    position: absolute !important;
    /* Zmniejszone proporcjonalnie: 36px kontener, 19px slider, przesunięte bardziej w prawo (right: 10px zamiast 20px) */
    left: calc(100% - 10px - 36px + 36px/2 - 19px/2 - 7px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 19px !important;
    height: 19px !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15), 0px 1px 1px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s ease-out !important;
    cursor: pointer !important;
    z-index: 3 !important;
    /* Nadpisz switch-item::before */
    opacity: 1 !important;
    display: block !important;
    right: auto !important;
}

/* When checked */
.switch-item.switch-style-toggle.on::after {
    background: var(--gradient-right) !important;
    background-color: var(--gradient-right) !important;
}

.switch-item.switch-style-toggle.on::before {
    /* Gdy checked: left: calc(50% - 19px/2 + 7px), więc przesunięty o +7px od środka, przesunięte bardziej w prawo (right: 10px zamiast 20px) */
    left: calc(100% - 10px - 36px + 36px/2 - 19px/2 + 7px) !important;
    transition: all 0.2s ease-out !important;
}


/* Ukryj .switch-status dla wszystkich switch z SF symbols (switch-style-*) */
/* Switch z SF symbols nie powinny wyświetlać ON/OFF status, tylko ikonę */
.switch-style-globe .switch-status,
.switch-style-snowflake .switch-status,
.switch-style-leaf .switch-status,
.switch-style-ant .switch-status,
.switch-style-brain .switch-status,
.switch-style-circle-dashed .switch-status,
.switch-style-seal .switch-status,
.switch-style-flame .switch-status,
.switch-style-hare .switch-status,
.switch-style-carrot .switch-status,
.switch-style-touchid .switch-status,
.switch-style-network .switch-status,
.switch-style-bonjour .switch-status,
.switch-style-puzzle .switch-status,
.switch-style-atom .switch-status {
    display: none !important;
}

/* Ukryj wskaźnik po lewej stronie dla toggle styles (switch-item::after) */
.switch-style-globe::after,
.switch-style-snowflake::after,
.switch-style-leaf::after,
.switch-style-ant::after,
.switch-style-brain::after,
.switch-style-circle-dashed::after,
.switch-style-seal::after,
.switch-style-flame::after,
.switch-style-hare::after,
.switch-style-carrot::after,
.switch-style-touchid::after,
.switch-style-network::after,
.switch-style-bonjour::after,
.switch-style-puzzle::after,
.switch-style-atom::after {
    /* Nadpisz switch-item::after - ukryj wskaźnik po lewej i pokaż ikonę */
    width: 20px !important;
    height: 20px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background-color: #666666 !important; /* Szary kolor dla OFF (jak w iOS) */
    box-shadow: none !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    /* Upewnij się, że ikona jest widoczna */
    display: block !important;
}

.switch-style-globe::after,
.switch-style-snowflake::after,
.switch-style-leaf::after,
.switch-style-ant::after,
.switch-style-brain::after,
.switch-style-circle-dashed::after,
.switch-style-seal::after,
.switch-style-flame::after,
.switch-style-hare::after,
.switch-style-carrot::after,
.switch-style-touchid::after,
.switch-style-network::after,
.switch-style-bonjour::after,
.switch-style-puzzle::after,
.switch-style-atom::after {
    content: '';
    position: absolute;
    /* Przesunięte bardziej w prawo - zmniejszamy right z 20px na 10px */
    left: auto !important;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #666666 !important; /* Szary kolor dla OFF (jak w iOS) */
    transition: all 0.2s ease;
    z-index: 2;
    opacity: 1 !important;
}

.switch-style-globe::after {
    mask-image: url('/src/assets/images/ui/globe.png');
    -webkit-mask-image: url('/src/assets/images/ui/globe.png');
}

.switch-style-snowflake::after {
    mask-image: url('/src/assets/images/ui/snowflake.png');
    -webkit-mask-image: url('/src/assets/images/ui/snowflake.png');
}

.switch-style-leaf::after {
    mask-image: url('/src/assets/images/ui/leaf_fill.png');
    -webkit-mask-image: url('/src/assets/images/ui/leaf_fill.png');
}

.switch-style-ant::after {
    mask-image: url('/src/assets/images/ui/ant_fill.png');
    -webkit-mask-image: url('/src/assets/images/ui/ant_fill.png');
}

.switch-style-brain::after {
    mask-image: url('/src/assets/images/ui/brain_head_profile.png');
    -webkit-mask-image: url('/src/assets/images/ui/brain_head_profile.png');
}

.switch-style-circle-dashed::after {
    mask-image: url('/src/assets/images/ui/circle_dashed.png');
    -webkit-mask-image: url('/src/assets/images/ui/circle_dashed.png');
}

.switch-style-seal::after {
    mask-image: url('/src/assets/images/ui/seal.png');
    -webkit-mask-image: url('/src/assets/images/ui/seal.png');
}

.switch-style-flame::after {
    mask-image: url('/src/assets/images/ui/flame.png');
    -webkit-mask-image: url('/src/assets/images/ui/flame.png');
}

.switch-style-hare::after {
    mask-image: url('/src/assets/images/ui/hare_fill.png');
    -webkit-mask-image: url('/src/assets/images/ui/hare_fill.png');
}

.switch-style-carrot::after {
    mask-image: url('/src/assets/images/ui/carrot_fill.png');
    -webkit-mask-image: url('/src/assets/images/ui/carrot_fill.png');
}

.switch-style-touchid::after {
    mask-image: url('/src/assets/images/ui/touchid.png');
    -webkit-mask-image: url('/src/assets/images/ui/touchid.png');
}

.switch-style-network::after {
    mask-image: url('/src/assets/images/ui/network.png');
    -webkit-mask-image: url('/src/assets/images/ui/network.png');
}

.switch-style-bonjour::after {
    mask-image: url('/src/assets/images/ui/bonjour.png');
    -webkit-mask-image: url('/src/assets/images/ui/bonjour.png');
}

.switch-style-puzzle::after {
    mask-image: url('/src/assets/images/ui/puzzlepiece.png');
    -webkit-mask-image: url('/src/assets/images/ui/puzzlepiece.png');
}

.switch-style-atom::after {
    mask-image: url('/src/assets/images/ui/atom.png');
    -webkit-mask-image: url('/src/assets/images/ui/atom.png');
}

.switch-style-globe::after,
.switch-style-snowflake::after,
.switch-style-leaf::after,
.switch-style-ant::after,
.switch-style-brain::after,
.switch-style-circle-dashed::after,
.switch-style-seal::after,
.switch-style-flame::after,
.switch-style-hare::after,
.switch-style-carrot::after,
.switch-style-touchid::after,
.switch-style-network::after,
.switch-style-bonjour::after,
.switch-style-puzzle::after,
.switch-style-atom::after {
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.switch-style-globe.on::after,
.switch-style-snowflake.on::after,
.switch-style-leaf.on::after,
.switch-style-ant.on::after,
.switch-style-brain.on::after,
.switch-style-circle-dashed.on::after,
.switch-style-seal.on::after,
.switch-style-flame.on::after,
.switch-style-hare.on::after,
.switch-style-carrot.on::after,
.switch-style-touchid.on::after,
.switch-style-network.on::after,
.switch-style-bonjour.on::after,
.switch-style-puzzle.on::after,
.switch-style-atom.on::after {
    background-color: var(--gradient-right) !important; /* Right gradient dla ON (jak w iOS) */
    transform: translateY(-50%) scale(1.2);
    opacity: 1 !important;
}

/* Wybrany toggle style w Toggle Styles Menu - kolor right gradient */
.switch-item[data-switch="classic_switch"].on .switch-status,
.switch-item[data-switch="checkbox"].on .switch-status,
.switch-item[data-switch="ios_toggle_switch"].on .switch-status,
.switch-item[data-switch="globe_switch"].on .switch-status,
.switch-item[data-switch="snowflake_switch"].on .switch-status,
.switch-item[data-switch="leaf_switch"].on .switch-status,
.switch-item[data-switch="ant_switch"].on .switch-status,
.switch-item[data-switch="brain_switch"].on .switch-status,
.switch-item[data-switch="circle_dashed"].on .switch-status,
.switch-item[data-switch="seal"].on .switch-status,
.switch-item[data-switch="flame"].on .switch-status,
.switch-item[data-switch="hare_fill"].on .switch-status,
.switch-item[data-switch="carrot_fill"].on .switch-status,
.switch-item[data-switch="touchid"].on .switch-status,
.switch-item[data-switch="network"].on .switch-status,
.switch-item[data-switch="bonjour"].on .switch-status,
.switch-item[data-switch="puzzle_piece"].on .switch-status,
.switch-item[data-switch="atom"].on .switch-status {
    background: var(--gradient-right) !important;
    color: white !important;
    box-shadow: 0 0 10px var(--gradient-right-glow) !important;
}


.function-selector {
    position: relative;
}

.function-selector::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: var(--hover-width, 100%);
    height: 100%;
    background: linear-gradient(90deg, var(--gradient-left) 0%, var(--gradient-right) 100%);
    opacity: var(--hover-opacity, 0);
    border-radius: 0 15px 15px 0;
    transition: all 0.2s ease;
    z-index: -1;
    box-shadow: 0 0 10px var(--gradient-right-glow);
}

.function-selector .function-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Spacing jak w iOS */
    position: absolute;
    right: 10px; /* 10px margin from right jak w iOS */
    top: 50%;
    transform: translateY(-50%);
}

/* Function selector arrows - SF Symbols jak w iOS */
.function-selector .arrow-left,
.function-selector .arrow-right {
    width: 18px;
    height: 18px;
    background-color: var(--gradient-right); /* Preferred color gdy aktywna (jak w iOS) */
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    /* SF Symbol icon using mask-image */
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.function-selector .arrow-left {
    mask-image: url('/src/assets/images/ui/arrowtriangle_left_circle_fill.png');
    -webkit-mask-image: url('/src/assets/images/ui/arrowtriangle_left_circle_fill.png');
}

.function-selector .arrow-right {
    mask-image: url('/src/assets/images/ui/arrowtriangle_right_circle_fill.png');
    -webkit-mask-image: url('/src/assets/images/ui/arrowtriangle_right_circle_fill.png');
}

.function-selector .arrow-left:hover,
.function-selector .arrow-right:hover {
    transform: scale(1.2);
    background-color: var(--gradient-left);
}

.function-selector .arrow-left.disabled,
.function-selector .arrow-right.disabled {
    background-color: rgba(255, 255, 255, 0.1) !important; /* Szary kolor gdy disabled (jak w iOS: colorWithWhite:0.1 alpha:0.8) */
    opacity: 1;
    cursor: not-allowed;
}

.function-selector .function-value {
    /* Tło kapsuły jak w iOS: colorWithWhite:0.9 alpha:0.8 dla light mode */
    /* colorWithWhite:0.9 = rgb(230, 230, 230), alpha:0.8 */
    background: rgba(230, 230, 230, 0.8) !important; /* Dokładnie jak w iOS light mode */
    color: var(--gradient-right); /* Preferred color jak w iOS */
    font-size: 10px;
    font-weight: bold;
    font-family: 'ArialRoundedMTBold', 'Arial Rounded MT Bold', -apple-system, BlinkMacSystemFont, sans-serif; /* ArialRoundedMTBold jak w iOS */
    padding: 0;
    border-radius: 9px !important; /* Połowa wysokości (18px/2 = 9px) dla idealnej kapsuły jak w iOS */
    height: 18px !important; /* Wysokość kapsuły jak w iOS */
    width: 80px !important; /* Szerokość jak w iOS - stała 80px */
    min-width: 80px !important;
    max-width: 80px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    user-select: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.function-selector .function-value:hover {
    background: rgba(230, 230, 230, 0.95) !important; /* Nieco jaśniejsze przy hover */
}


.function-selector .switch-status {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Ukryj wszystkie toggle style dla function selector */
.function-selector.switch-style-classic,
.function-selector.switch-style-checkbox,
.function-selector.switch-style-toggle,
.function-selector.switch-style-globe,
.function-selector.switch-style-snowflake,
.function-selector.switch-style-leaf,
.function-selector.switch-style-ant,
.function-selector.switch-style-brain,
.function-selector.switch-style-circle-dashed,
.function-selector.switch-style-seal,
.function-selector.switch-style-flame,
.function-selector.switch-style-hare,
.function-selector.switch-style-carrot,
.function-selector.switch-style-touchid,
.function-selector.switch-style-network,
.function-selector.switch-style-bonjour,
.function-selector.switch-style-puzzle,
.function-selector.switch-style-atom {
    /* Function selector nie powinien mieć toggle style */
}

.function-selector::after {
    display: none !important; /* Ukryj wskaźnik po lewej stronie dla function selector */
}


.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 280px;
    z-index: 10000;
    cursor: pointer;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ukryj notifications w mobile mode */
@media (max-width: 768px) {
    .custom-notification {
        display: none !important;
    }
}

body.mobile .custom-notification {
    display: none !important;
}

.notification-container {
    background: rgba(245, 245, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    /* Wymuś zaokrąglone rogi za pomocą clip-path */
    clip-path: inset(0 round 10px);
}

body.light-mode .notification-container {
    background: rgba(245, 245, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.notification-icon-bar {
    width: 40px;
    background: rgba(245, 245, 245, 0.95) !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 0 0 10px;
    /* Wymuś zaokrąglone rogi po lewej stronie */
    clip-path: inset(0 round 10px 0 0 10px);
}

body.light-mode .notification-icon-bar {
    background: rgba(245, 245, 245, 0.95) !important;
}

.notification-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    filter: drop-shadow(0 0 8px var(--gradient-right-glow));
}

.notification-content {
    flex: 1;
    padding: 8px;
    position: relative;
}

.notification-title {
    color: rgb(30, 30, 30);
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 4px;
    line-height: 1;
}

body.light-mode .notification-title {
    color: rgb(30, 30, 30) !important;
}

.notification-status {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.light-mode .notification-status {
    background: rgba(220, 220, 220, 0.9) !important;
}

.notification-progress-line {
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-left) 0%, var(--gradient-right) 100%);
    border-radius: 1px;
    margin: 4px 0;
    transform-origin: left;
    transition: transform 2.5s linear;
    box-shadow: 0 0 4px var(--gradient-right-glow);
}

.notification-description {
    color: rgb(80, 80, 80);
    font-size: 9px;
    line-height: 1.4;
    margin-top: 8px;
    word-wrap: break-word;
}

body.light-mode .notification-description {
    color: rgb(80, 80, 80) !important;
}


@media (max-width: 768px) {
    .nav-button {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .nav-button-icon {
        font-size: 14px;
    }
    
    .custom-notification {
        width: 140px;
        right: 8px;
    }
    
    .notification-icon-bar {
        width: 20px;
    }
    
    .notification-icon {
        width: 15px;
        height: 15px;
    }
    
    .notification-content {
        padding: 4px;
    }
    
    .notification-title {
        font-size: 6px;
    }
    
    .notification-status {
        font-size: 6px;
        padding: 1px 3px;
        top: 4px;
        right: 4px;
    }
    
    .notification-description {
        font-size: 4.5px;
    }
    
    .notification-progress-line,
    .notification-left-glow,
    .notification-right-glow {
        height: 1px;
    }
} 
