/* /Components/Layout/AuthLayout.razor.rz.scp.css */
.auth-page[b-ze9lrfrhae] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: auto;
    background:
        radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--global-palette2) 18%, transparent) 0%, transparent 55%),
        radial-gradient(circle at 80% 100%, color-mix(in srgb, var(--global-palette1) 18%, transparent) 0%, transparent 55%),
        linear-gradient(135deg, #f7faf6 0%, #eef3ec 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-bg-blob[b-ze9lrfrhae] {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.auth-bg-blob-tl[b-ze9lrfrhae] {
    top: -160px;
    left: -160px;
    background: var(--global-palette2);
}

.auth-bg-blob-br[b-ze9lrfrhae] {
    bottom: -180px;
    right: -180px;
    background: var(--global-palette1);
}

.auth-shell[b-ze9lrfrhae] {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.auth-brand[b-ze9lrfrhae] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--global-palette1);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}

.auth-brand i[b-ze9lrfrhae] {
    font-size: 1.7rem;
    background: linear-gradient(135deg, var(--global-palette1), var(--global-palette2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-brand-logo[b-ze9lrfrhae] {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    flex-shrink: 0;
}

.auth-brand:hover[b-ze9lrfrhae] {
    color: color-mix(in srgb, var(--global-palette1) 80%, black);
}

.auth-footer[b-ze9lrfrhae] {
    margin-top: 8px;
    font-size: 0.78rem;
    color: #8a9a85;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-footer a[b-ze9lrfrhae] {
    color: var(--global-palette1);
    text-decoration: none;
}

.auth-footer a:hover[b-ze9lrfrhae] {
    text-decoration: underline;
}

.auth-footer .dot[b-ze9lrfrhae] {
    color: #c7d2c1;
}

#blazor-error-ui[b-ze9lrfrhae] {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    color: #5c5d3c;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-ze9lrfrhae] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/LoginDisplay.razor.rz.scp.css */
.user-info-bar[b-4oo7b48tw9] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.license-pill[b-4oo7b48tw9] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    white-space: nowrap;
}

.license-pill.valid[b-4oo7b48tw9] {
    background: rgba(193, 209, 28, 0.15);
    color: #c1d11c;
    border-color: rgba(193, 209, 28, 0.35);
}

.license-pill.expired[b-4oo7b48tw9] {
    background: rgba(229, 0, 0, 0.18);
    color: #ffd5d5;
    border-color: rgba(229, 0, 0, 0.4);
}

.license-pill i[b-4oo7b48tw9] {
    font-size: 0.95rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.btn-logout[b-4oo7b48tw9] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #EDF2F7;
    transition: all 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
}

.btn-logout:hover[b-4oo7b48tw9] {
    background-color: rgba(229, 0, 0, 0.18);
    border-color: rgba(229, 0, 0, 0.5);
    color: #ffd5d5;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-s7a1bktnjy] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-s7a1bktnjy] {
    flex: 1;
    overflow-y: auto;
    background-color: var(--global-palette8);
}

.sidebar[b-s7a1bktnjy] {
    background-image: linear-gradient(180deg, #022c32 0%, #0a3a35 70%, #0d3a2e 100%);
    border-right: 2px solid #009244;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Górny brand — logo aplikacji + nazwa „AB Akcje+". */
.sidebar-header[b-s7a1bktnjy] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-logo[b-s7a1bktnjy] {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.sidebar-app-name[b-s7a1bktnjy] {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Środkowa, przewijalna część z pozycjami menu (header i logo zostają przyklejone). */
.sidebar-nav[b-s7a1bktnjy] {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

/* Dolny logotyp AppsBusters — link do strony firmowej. */
.sidebar-brand[b-s7a1bktnjy] {
    margin-top: auto;
    padding: 1.25rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.sidebar-brand img[b-s7a1bktnjy] {
    width: 80%;
    max-height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sidebar-brand:hover[b-s7a1bktnjy] {
    opacity: 0.85;
}

.top-row[b-s7a1bktnjy] {
    min-height: 3.5rem;
    background: linear-gradient(135deg, #022c32 0%, #1e4c53 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid #009244;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
}

.page-header-slot[b-s7a1bktnjy] {
    gap: .65rem;
    min-width: 0;
    flex: 1 1 auto;
    color: #ffffff;
}

.brand-icon[b-s7a1bktnjy] {
    font-size: 1.4rem;
    color: #c1d11c;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.brand-text[b-s7a1bktnjy] {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.content[b-s7a1bktnjy] {
    max-width: 100%;
}

@media (min-width: 641px) {
    .page[b-s7a1bktnjy] {
        flex-direction: row;
    }

    .sidebar[b-s7a1bktnjy] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    main[b-s7a1bktnjy] {
        flex: 1;
        min-width: 0;
        max-width: calc(100vw - 250px);
        overflow-x: hidden;
        overflow-y: auto;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .top-row[b-s7a1bktnjy] {
        position: sticky;
        top: 0;
        z-index: 10;
        flex-shrink: 0;
    }
}

@media (max-width: 640px) {
    .sidebar[b-s7a1bktnjy] {
        max-height: 60vh;
    }

    .brand-text[b-s7a1bktnjy] {
        font-size: 1rem;
    }
}

#blazor-error-ui[b-s7a1bktnjy] {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    color: #5c5d3c;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-s7a1bktnjy] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.nav-section-header[b-fjc54n0g4a] {
    color: #8b9aab;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1rem 1.5rem 0.4rem;
    margin: 0;
}

.nav-item[b-fjc54n0g4a] {
    font-size: 0.95rem;
    padding: 0 1rem 0.25rem;
}

.nav-item:first-of-type[b-fjc54n0g4a] {
    padding-top: 0.25rem;
}

.nav-item:last-of-type[b-fjc54n0g4a] {
    padding-bottom: 1rem;
}

.nav-item[b-fjc54n0g4a]  .nav-link {
    color: #EDF2F7;
    background: none;
    border: none;
    border-radius: 8px;
    height: 3rem;
    padding: 0 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 3rem;
    width: 100%;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.nav-item[b-fjc54n0g4a]  .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #009244 0%, #c1d11c 100%);
    transition: width 0.3s ease;
    border-radius: 8px 0 0 8px;
}

.nav-item[b-fjc54n0g4a]  .nav-link:hover::before {
    width: 4px;
}

.nav-item[b-fjc54n0g4a]  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(4px);
}

.nav-item[b-fjc54n0g4a]  a.active {
    background: linear-gradient(90deg, rgba(0, 146, 68, 0.18) 0%, rgba(193, 209, 28, 0.1) 100%);
    color: #c1d11c;
    font-weight: 600;
    border-left: 4px solid #009244;
    padding-left: calc(0.875rem - 4px);
}

.nav-item[b-fjc54n0g4a]  .nav-link i {
    font-size: 1.05rem;
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

.nav-text[b-fjc54n0g4a] {
    position: relative;
    z-index: 1;
}

/* Reguły — wiersz nadrzędny z chevronem rozwijania. */
.nav-rules-parent[b-fjc54n0g4a] {
    position: relative;
}

.nav-rules-toggle[b-fjc54n0g4a] {
    position: absolute;
    right: 0.4rem;
    top: 0;
    height: 3rem;
    display: flex;
    align-items: center;
    padding: 0 0.45rem;
    cursor: pointer;
    color: #8b9aab;
    z-index: 2;
    transition: color 0.2s ease;
}

.nav-rules-toggle:hover[b-fjc54n0g4a] {
    color: #ffffff;
}

/* Submenu scenariuszy — małe wcięcie, tekst w jednej linii (ellipsis zamiast zawijania). */
.nav-subitem[b-fjc54n0g4a] {
    padding-top: 0;
    padding-bottom: 0.15rem;
}

.nav-subitem[b-fjc54n0g4a]  .nav-link {
    height: 2.4rem;
    line-height: 2.4rem;
    padding-left: 1.3rem;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
}

.nav-subitem[b-fjc54n0g4a]  .nav-link i {
    font-size: 0.95rem;
}

.nav-subitem[b-fjc54n0g4a]  .nav-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Wskaźnik ON/OFF — ikona power zielona/czerwona, kompaktowa, wyrównana do prawej. */
.nav-subitem[b-fjc54n0g4a]  .rule-status-icon {
    margin-left: auto;
    flex-shrink: 0;
}

.nav-subitem[b-fjc54n0g4a]  .rule-status-icon.on { color: #2fd35b; }

.nav-subitem[b-fjc54n0g4a]  .rule-status-icon.off { color: #ff5a5a; }
/* /Components/Layout/SupportLayout.razor.rz.scp.css */
/* Reguły layoutu skopiowane z MainLayout.razor.css — tam są scoped do MainLayout, więc nie działają
   w SupportLayout (inny komponent). Dzięki kopii sidebar/topbar wyglądają identycznie jak w aplikacji. */
.page[b-m4q0ed0qgs] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-m4q0ed0qgs] {
    flex: 1;
    overflow-y: auto;
    background-color: var(--global-palette8);
}

.sidebar[b-m4q0ed0qgs] {
    background-image: linear-gradient(180deg, #022c32 0%, #0a3a35 70%, #0d3a2e 100%);
    border-right: 2px solid #009244;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-header[b-m4q0ed0qgs] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-logo[b-m4q0ed0qgs] {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.sidebar-app-name[b-m4q0ed0qgs] {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.sidebar-nav[b-m4q0ed0qgs] {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.sidebar-brand[b-m4q0ed0qgs] {
    margin-top: auto;
    padding: 1.25rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.sidebar-brand img[b-m4q0ed0qgs] {
    width: 80%;
    max-height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sidebar-brand:hover[b-m4q0ed0qgs] {
    opacity: 0.85;
}

.top-row[b-m4q0ed0qgs] {
    min-height: 3.5rem;
    background: linear-gradient(135deg, #022c32 0%, #1e4c53 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid #009244;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
}

.page-header-slot[b-m4q0ed0qgs] {
    gap: .65rem;
    min-width: 0;
    flex: 1 1 auto;
    color: #ffffff;
}

.content[b-m4q0ed0qgs] {
    max-width: 100%;
}

/* Nawigacja wsparcia — proste linki (plain <a>/<button>, scoped CSS działa bez ::deep). */
.support-nav[b-m4q0ed0qgs] {
    padding: 0.75rem 1rem;
}

.support-link[b-m4q0ed0qgs] {
    color: #EDF2F7;
    border: none;
    background: none;
    border-radius: 8px;
    height: 3rem;
    padding: 0 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.support-link i[b-m4q0ed0qgs] {
    font-size: 1.05rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.support-link:hover[b-m4q0ed0qgs] {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.support-link.active[b-m4q0ed0qgs] {
    background: linear-gradient(90deg, rgba(0, 146, 68, 0.18) 0%, rgba(193, 209, 28, 0.1) 100%);
    color: #c1d11c;
    font-weight: 600;
    border-left: 4px solid #009244;
    padding-left: calc(0.875rem - 4px);
}

.support-logout-form[b-m4q0ed0qgs] {
    margin-top: 0.4rem;
}

@media (min-width: 641px) {
    .page[b-m4q0ed0qgs] {
        flex-direction: row;
    }

    .sidebar[b-m4q0ed0qgs] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    main[b-m4q0ed0qgs] {
        flex: 1;
        min-width: 0;
        max-width: calc(100vw - 250px);
        overflow-x: hidden;
        overflow-y: auto;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .top-row[b-m4q0ed0qgs] {
        position: sticky;
        top: 0;
        z-index: 10;
        flex-shrink: 0;
    }
}

@media (max-width: 640px) {
    .sidebar[b-m4q0ed0qgs] {
        max-height: 60vh;
    }
}

#blazor-error-ui[b-m4q0ed0qgs] {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    color: #5c5d3c;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-m4q0ed0qgs] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Pages/Rules.razor.rz.scp.css */
.rule-card[b-60p5jn128i] {
    color: inherit;
    border: 1px solid #e2e8f0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.rule-card:hover[b-60p5jn128i] {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-color: var(--global-palette1, #009244);
}

.rule-card-icon[b-60p5jn128i] {
    font-size: 1.6rem;
    line-height: 1;
    color: var(--global-palette1, #009244);
}

.rule-card-title[b-60p5jn128i] {
    color: #1a202c;
    font-weight: 600;
}
