/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ── Shell layout ────────────────────────────────────────────────────────── */
.sf-layout[b-ogo6yaugqk] {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sf-sidebar[b-ogo6yaugqk] {
    width: var(--sf-nav-width, 240px);
    flex-shrink: 0;
    background: var(--sf-nav-bg, #1A2035);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 200;
    transition: width 0.22s ease;
}

.sf-sidebar--collapsed[b-ogo6yaugqk] {
    width: 64px;
}

/* ── Sidebar toggle button ───────────────────────────────────────────────── */
.sf-sidebar-toggle[b-ogo6yaugqk] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: none;
    border: 1px solid var(--sf-border);
    border-radius: 8px;
    color: var(--sf-text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.sf-sidebar-toggle:hover[b-ogo6yaugqk] {
    background: var(--sf-page-bg);
    color: var(--sf-text);
    border-color: var(--sf-primary);
}

/* ── Main column ─────────────────────────────────────────────────────────── */
.sf-main[b-ogo6yaugqk] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ── Topbar ──────────────────────────────────────────────────────────────── */
.sf-topbar[b-ogo6yaugqk] {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #EAECF0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    flex-shrink: 0;
    z-index: 100;
}

.sf-topbar-left[b-ogo6yaugqk] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sf-topbar-tenant[b-ogo6yaugqk] {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sf-text-muted);
    background: var(--sf-page-bg);
    border: 1px solid var(--sf-border);
    border-radius: 20px;
    padding: 4px 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sf-topbar-right[b-ogo6yaugqk] {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── User menu ───────────────────────────────────────────────────────────── */
.sf-user-menu[b-ogo6yaugqk] {
    position: relative;
}

.sf-user-btn[b-ogo6yaugqk] {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--sf-text);
    transition: background 0.15s, border-color 0.15s;
}

.sf-user-btn:hover[b-ogo6yaugqk] {
    background: var(--sf-page-bg);
    border-color: var(--sf-border);
}

.sf-user-avatar[b-ogo6yaugqk] {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--sf-primary) 0%, #6B8AFF 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(67, 97, 238, 0.35);
}

.sf-user-info[b-ogo6yaugqk] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.sf-user-name[b-ogo6yaugqk] {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sf-text);
}

.sf-user-role[b-ogo6yaugqk] {
    font-size: 0.6875rem;
    color: var(--sf-text-muted);
}

.sf-user-caret[b-ogo6yaugqk] {
    font-size: 0.55rem;
    color: var(--sf-text-muted);
    margin-left: 2px;
}

/* ── Dropdown menu ───────────────────────────────────────────────────────── */
.sf-dropdown-menu[b-ogo6yaugqk] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    min-width: 190px;
    z-index: 300;
    overflow: hidden;
    padding: 4px 0;
}

.sf-dropdown-divider[b-ogo6yaugqk] {
    border-top: 1px solid var(--sf-border);
    margin: 4px 0;
}

.sf-dropdown-item[b-ogo6yaugqk] {
    display: block;
    width: 100%;
    padding: 9px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.875rem;
    color: var(--sf-text);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.1s;
}

.sf-dropdown-item:hover[b-ogo6yaugqk] {
    background: var(--sf-page-bg);
    color: var(--sf-text);
    text-decoration: none;
}

.sf-dropdown-item.danger[b-ogo6yaugqk] { color: var(--sf-danger); }
.sf-dropdown-item.danger:hover[b-ogo6yaugqk] { background: #FFF5F5; }

/* ── Content area ────────────────────────────────────────────────────────── */
.sf-content[b-ogo6yaugqk] {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
    background: var(--sf-page-bg);
}

/* ── Error UI ────────────────────────────────────────────────────────────── */
#blazor-error-ui[b-ogo6yaugqk] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-ogo6yaugqk] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Nav styles are in app.css — NavLink components do not receive Blazor scoped CSS attributes. */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-80oajeawc4],
.components-reconnect-repeated-attempt-visible[b-80oajeawc4],
.components-reconnect-failed-visible[b-80oajeawc4],
.components-pause-visible[b-80oajeawc4],
.components-resume-failed-visible[b-80oajeawc4],
.components-rejoining-animation[b-80oajeawc4] {
    display: none;
}

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


#components-reconnect-modal[b-80oajeawc4] {
    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-80oajeawc4 0.5s both;
    &[open]

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

@keyframes components-rejoining-animation-b-80oajeawc4 {
    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;
    }
}
/* /Components/Pages/Admin/ControlPanels.razor.rz.scp.css */
.cp-device-list[b-mfbg27w434] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cp-device-item[b-mfbg27w434] {
    display: flex;
    align-items: baseline;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--sf-border, #e5e7eb);
    border-radius: 0.375rem;
    background: var(--sf-card-bg, #fff);
    margin-bottom: 0;
}

.cp-device-item:hover[b-mfbg27w434] {
    background: var(--sf-hover, #f8fafc);
}

.cp-device-item .form-check-input[b-mfbg27w434] {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.cp-device-item label[b-mfbg27w434] {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
    cursor: pointer;
    width: 100%;
}

.cp-device-type[b-mfbg27w434] {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--sf-text-muted, #6c757d);
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    white-space: nowrap;
}

.cp-device-name[b-mfbg27w434] {
    font-size: 0.875rem;
    font-weight: 500;
}

.cp-device-code[b-mfbg27w434] {
    font-size: 0.75rem;
    color: var(--sf-text-muted, #6c757d);
}
