/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* =========================================================
   Signal Sentinel Dashboard - App Shell
   Crypto Trading style: flat, body-padded content, simple footer.
   NOTE: Blazor scoped CSS applies [b-hash] to :root selectors which
   breaks them, so we use literal px values instead of CSS variables.
   ========================================================= */

.app-shell[b-shjnqyjybh] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #1a1a2e;
    color: #eee;
}

/* ---------- Header container ---------- */
.app-header[b-shjnqyjybh] {
    background: #1a1a2e;
    border-bottom: 1px solid #333;
}

.app-header-row[b-shjnqyjybh] {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    width: 100%;
}

/* ---------- Row 1: Brand + title (left) + user chrome (right) ---------- */
.app-header-brand-row[b-shjnqyjybh] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.app-brand-block[b-shjnqyjybh] {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex: 1 1 auto;
}

.brand[b-shjnqyjybh] {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo[b-shjnqyjybh] {
    height: 100px;
    width: auto;
    display: block;
}

.app-header-right[b-shjnqyjybh] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-self: flex-start;
    padding-top: 4px;
}

.status-pill[b-shjnqyjybh] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.1s;
}

.status-pill .status-dot[b-shjnqyjybh] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.pill-offline[b-shjnqyjybh] {
    background: rgba(136, 136, 136, 0.15);
    color: #aaa;
    border: 1px solid rgba(136, 136, 136, 0.35);
}

.pill-offline .status-dot[b-shjnqyjybh] { background: #888; }

.pill-update[b-shjnqyjybh] {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.4);
    cursor: pointer;
}

.pill-update:hover[b-shjnqyjybh] {
    transform: translateY(-1px);
    background: rgba(52, 152, 219, 0.22);
}

.pill-update .status-dot[b-shjnqyjybh] {
    background: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
    animation: pill-pulse-b-shjnqyjybh 2s ease-in-out infinite;
}

@keyframes pill-pulse-b-shjnqyjybh {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.tier-badge[b-shjnqyjybh] {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-name[b-shjnqyjybh] {
    font-size: 0.85rem;
    color: #aaa;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-form[b-shjnqyjybh] {
    display: inline-flex;
    margin: 0;
}

.logout-btn[b-shjnqyjybh] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.15s;
    white-space: nowrap;
    font-family: inherit;
}

.logout-btn:hover[b-shjnqyjybh] {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

.logout-icon[b-shjnqyjybh] { flex-shrink: 0; }

/* ---------- Product title (inline, to the right of the logo) ---------- */
.app-title-wrap[b-shjnqyjybh] {
    text-align: left;
    min-width: 0;
}

.app-title[b-shjnqyjybh] {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.1;
    margin: 0;
    outline: none;
}
.app-title:focus[b-shjnqyjybh],
.app-title:focus-visible[b-shjnqyjybh] { outline: none; }

.app-subtitle[b-shjnqyjybh] {
    font-size: 0.72rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

/* ---------- Row 3: Nav bar ---------- */
.app-nav[b-shjnqyjybh] {
    background: #16213e;
    border-top: 1px solid #262636;
    border-bottom: 1px solid #333;
}

.app-nav-row[b-shjnqyjybh] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 44px;
}

.mobile-nav-btn[b-shjnqyjybh] {
    display: none;
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 4px;
}

/* ---------- Main content (crypto-trading style: centred + padded) ---------- */
.app-main[b-shjnqyjybh] {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 40px 48px 40px;
    box-sizing: border-box;
}

/* ---------- Footer (matches login footer: simple centred line) ---------- */
.app-footer[b-shjnqyjybh] {
    border-top: 1px solid #333;
    background: #131327;
    padding: 16px 40px;
}

.app-footer-inner[b-shjnqyjybh] {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    font-size: 0.78rem;
    color: #777;
}

.footer-product[b-shjnqyjybh] { color: #aaa; font-weight: 600; }
.footer-sep[b-shjnqyjybh] { color: #444; }
.footer-link[b-shjnqyjybh] { color: #888; text-decoration: none; }
.footer-link:hover[b-shjnqyjybh] { color: #3498db; }

/* ---------- Responsive: tablet (900-1199) ---------- */
@media (max-width: 1199px) {
    .app-header-row[b-shjnqyjybh],
    .app-footer[b-shjnqyjybh] {
        padding-left: 24px;
        padding-right: 24px;
    }
    .app-main[b-shjnqyjybh] {
        padding: 28px 24px 40px 24px;
    }
    .app-title[b-shjnqyjybh] {
        font-size: 1.35rem;
    }
}

/* ---------- Responsive: small tablet / large phone (600-899) ---------- */
@media (max-width: 899px) {
    .app-header-brand-row[b-shjnqyjybh] {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .app-brand-block[b-shjnqyjybh] {
        gap: 12px;
    }

    .app-title[b-shjnqyjybh] {
        font-size: 1.2rem;
    }

    .app-subtitle[b-shjnqyjybh] {
        font-size: 0.68rem;
        letter-spacing: 1px;
    }

    .brand-logo[b-shjnqyjybh] {
        height: 72px;
    }

    /* Hide secondary info on narrow screens; keep logout visible */
    .user-name[b-shjnqyjybh] { display: none; }
    .tier-badge[b-shjnqyjybh] { display: none; }

    .mobile-nav-btn[b-shjnqyjybh] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Nav collapses behind hamburger */
    .app-nav[b-shjnqyjybh] {
        max-height: 44px;
        overflow: hidden;
        transition: max-height 0.2s ease;
    }

    .app-nav.open[b-shjnqyjybh] {
        max-height: 400px;
    }
}

/* ---------- Responsive: phone (<600) ---------- */
@media (max-width: 599px) {
    .app-header-row[b-shjnqyjybh],
    .app-footer[b-shjnqyjybh] {
        padding-left: 16px;
        padding-right: 16px;
    }

    .app-header-brand-row[b-shjnqyjybh] {
        gap: 10px;
    }

    .app-brand-block[b-shjnqyjybh] {
        gap: 10px;
    }

    .brand-logo[b-shjnqyjybh] {
        height: 56px;
    }

    .app-header-right[b-shjnqyjybh] {
        gap: 8px;
    }

    .status-pill[b-shjnqyjybh] {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    /* Collapse logout to icon only on very narrow screens */
    .logout-label[b-shjnqyjybh] { display: none; }
    .logout-btn[b-shjnqyjybh] {
        padding: 6px 8px;
        gap: 0;
    }

    .app-main[b-shjnqyjybh] {
        padding: 20px 16px 32px 16px;
    }

    .app-title[b-shjnqyjybh] {
        font-size: 1.05rem;
    }

    .app-subtitle[b-shjnqyjybh] {
        font-size: 0.62rem;
    }

    .app-footer-inner[b-shjnqyjybh] {
        flex-direction: column;
        gap: 4px;
    }

    .footer-sep[b-shjnqyjybh] {
        display: none;
    }
}

/* ---------- Blazor error UI (unchanged) ---------- */
#blazor-error-ui[b-shjnqyjybh] {
    background: #e74c3c;
    color: white;
    padding: 12px 20px;
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

#blazor-error-ui .dismiss[b-shjnqyjybh] {
    cursor: pointer;
    position: absolute;
    right: 12px;
    top: 12px;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.nav-list[b-cve5e1rb1c] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: stretch;
    gap: 2px;
    flex-wrap: wrap;
    width: 100%;
}

.nav-list li[b-cve5e1rb1c] {
    display: inline-flex;
}

.nav-list[b-cve5e1rb1c]  .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 14px 18px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s, background-color 0.15s;
    white-space: nowrap;
}

.nav-list[b-cve5e1rb1c]  .nav-link:hover {
    color: #eee;
    background: rgba(52, 152, 219, 0.08);
}

.nav-list[b-cve5e1rb1c]  .nav-link.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: rgba(52, 152, 219, 0.06);
}

@media (max-width: 899px) {
    .nav-list[b-cve5e1rb1c] {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 4px 0 8px 0;
    }

    .nav-list[b-cve5e1rb1c]  .nav-link {
        display: block;
        padding: 12px 14px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .nav-list[b-cve5e1rb1c]  .nav-link.active {
        background: rgba(52, 152, 219, 0.1);
        border-left-color: #3498db;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-tif4k118iz],
.components-reconnect-repeated-attempt-visible[b-tif4k118iz],
.components-reconnect-failed-visible[b-tif4k118iz],
.components-pause-visible[b-tif4k118iz],
.components-resume-failed-visible[b-tif4k118iz],
.components-rejoining-animation[b-tif4k118iz] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-tif4k118iz],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-tif4k118iz],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-tif4k118iz],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-tif4k118iz],
#components-reconnect-modal.components-reconnect-retrying[b-tif4k118iz],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-tif4k118iz],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-tif4k118iz],
#components-reconnect-modal.components-reconnect-failed[b-tif4k118iz],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-tif4k118iz] {
    display: block;
}


#components-reconnect-modal[b-tif4k118iz] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-tif4k118iz 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-tif4k118iz 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-tif4k118iz 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-tif4k118iz]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-tif4k118iz 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-tif4k118iz {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-tif4k118iz {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-tif4k118iz {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-tif4k118iz] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-tif4k118iz] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-tif4k118iz] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-tif4k118iz] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-tif4k118iz] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-tif4k118iz] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-tif4k118iz] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-tif4k118iz 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-tif4k118iz] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-tif4k118iz {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
