/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-cxyux0tx7t] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-cxyux0tx7t] {
    flex: 1;
}

.top-row[b-cxyux0tx7t] {
    background-image: linear-gradient(90deg, rgb(5, 39, 103) 0%, #3a0647 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.18);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row-inner[b-cxyux0tx7t] {
    min-width: 0;
}

.navbar-brand[b-cxyux0tx7t] {
    font-size: 1.25rem;
    text-decoration: none;
}

.app-brand[b-cxyux0tx7t] {
    flex: 0 0 auto;
}

.primary-nav[b-cxyux0tx7t] {
    min-width: 0;
}

.nav-link[b-cxyux0tx7t] {
    text-decoration: none;
    color: #d1d5db; /* Lighter grey initially */
    transition: color 0.2s;
}

.nav-link:hover[b-cxyux0tx7t] {
    color: #ffffff;
}

.nav-link.active[b-cxyux0tx7t] {
    color: #ffffff !important; /* Brighter for active state since it's on a dark background */
}

/* Nav Dropdown Styling (Supabase-like) */
.nav-dropdown[b-cxyux0tx7t] {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-dropdown .dropdown-menu[b-cxyux0tx7t] {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 1050;
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: dropdownFadeIn-b-cxyux0tx7t 0.2s ease-out;
}

@keyframes dropdownFadeIn-b-cxyux0tx7t {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown .dropdown-menu.show[b-cxyux0tx7t] {
    display: block !important;
}

.nav-dropdown .dropdown-arrow.open[b-cxyux0tx7t] {
    transform: rotate(180deg) !important;
}

.nav-dropdown .dropdown-arrow[b-cxyux0tx7t] {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

/* Shared dropdown item behaviour — applies to both nav and user-identity menus */
.nav-dropdown-item[b-cxyux0tx7t] {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-dropdown-item:hover[b-cxyux0tx7t] {
    background-color: #f9fafb !important;
    color: #111827 !important;
    transform: translateX(3px);
    text-decoration: none;
}

.nav-dropdown-item.active[b-cxyux0tx7t],
.nav-dropdown-item:active[b-cxyux0tx7t] {
    background-color: #e5e7eb !important;
    color: #111827 !important;
    border-left: 2px solid #6b7280;
    text-decoration: none;
}

.nav-dropdown .dropdown-item[b-cxyux0tx7t] {
    display: block;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.nav-dropdown .dropdown-item:hover[b-cxyux0tx7t] {
    background-color: #f9fafb;
    color: #111827;
    transform: translateX(2px);
}

.nav-dropdown .dropdown-item.active[b-cxyux0tx7t], 
.nav-dropdown .dropdown-item:active[b-cxyux0tx7t], 
.nav-dropdown .dropdown-item:focus[b-cxyux0tx7t], 
.nav-dropdown .dropdown-item:focus-within[b-cxyux0tx7t], 
.nav-dropdown .dropdown-item.active:focus[b-cxyux0tx7t],
[b-cxyux0tx7t] .nav-dropdown .dropdown-item.active,
[b-cxyux0tx7t] .nav-dropdown .dropdown-item:active,
[b-cxyux0tx7t] .nav-dropdown .dropdown-item:focus,
[b-cxyux0tx7t] .nav-dropdown .dropdown-item.active:focus {
    background-color: #e5e7eb !important; /* Muted light grey */
    color: #111827 !important; /* Darker grey font */
    text-decoration: none !important;
}

/* Explicitly targeting the 'a' tag within the dropdown content to override Bootstrap's _dropdown.scss */
.nav-dropdown .dropdown-content a.dropdown-item.active[b-cxyux0tx7t],
.nav-dropdown .dropdown-content a.dropdown-item:active[b-cxyux0tx7t],
.nav-dropdown .dropdown-content a.dropdown-item:focus[b-cxyux0tx7t],
.nav-dropdown .dropdown-content a.dropdown-item:hover[b-cxyux0tx7t],
[b-cxyux0tx7t] .nav-dropdown .dropdown-content a.dropdown-item.active,
[b-cxyux0tx7t] .nav-dropdown .dropdown-content a.dropdown-item:active {
    /* These properties are already set above with !important, but adding more specificity */
    outline: none !important;
    box-shadow: none !important;
}


/* Shared hover/active for both nav-dropdown and user-identity menus */
.nav-dropdown .dropdown-item:hover[b-cxyux0tx7t],
.user-identity .dropdown-item:hover[b-cxyux0tx7t] {
    background-color: #f9fafb;
    color: #111827;
}

.nav-dropdown .dropdown-item.active[b-cxyux0tx7t],
.user-identity .dropdown-item.active[b-cxyux0tx7t],
.nav-dropdown .dropdown-item:active[b-cxyux0tx7t],
.user-identity .dropdown-item:active[b-cxyux0tx7t] {
    background-color: #e5e7eb !important;
    color: #111827 !important;
}

/* User-identity dropdown (Identity menu) � mirrors nav-dropdown for light mode */
.user-identity .dropdown-menu[b-cxyux0tx7t] {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 260px;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 1050;
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: dropdownFadeIn-b-cxyux0tx7t 0.2s ease-out;
}

.user-identity .dropdown-menu.show[b-cxyux0tx7t] {
    display: block !important;
}

.dropdown-item-title[b-cxyux0tx7t] {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.dropdown-item-desc[b-cxyux0tx7t] {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.1rem;
}

.user-identity[b-cxyux0tx7t] {
    font-size: 0.95rem;
    min-width: 0;
    max-width: 40vw;
    height: 100%;
}

.user-dropdown .dropdown-menu[b-cxyux0tx7t] {
    left: auto;
    right: 0;
}

.user-name-text[b-cxyux0tx7t] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640.98px) {
    .top-row[b-cxyux0tx7t] {
        height: 2.9rem;
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }

    .app-brand[b-cxyux0tx7t] {
        font-size: 0.95rem;
        margin-right: 0.5rem !important;
    }

    .primary-nav[b-cxyux0tx7t] {
        gap: 0.6rem !important;
    }

    .primary-link[b-cxyux0tx7t] {
        font-size: 0.82rem;
    }

    .nav-icon[b-cxyux0tx7t] {
        margin-right: 0.25rem !important;
        font-size: 0.8rem;
    }

    .user-identity[b-cxyux0tx7t] {
        font-size: 0.78rem;
        max-width: 34vw;
    }

    .user-icon[b-cxyux0tx7t] {
        margin-right: 0.2rem !important;
        font-size: 0.78rem;
    }

    /* Mobile adjustments for dropdown */
    .nav-dropdown[b-cxyux0tx7t] {
        height: auto;
    }

    .dropdown-menu[b-cxyux0tx7t] {
        min-width: 200px;
        left: -80px; /* Align more centrally on small screens */
    }

    .dropdown-item-desc[b-cxyux0tx7t] {
        display: none; /* Hide descriptions on very small screens to save space */
    }
}

@media (min-width: 641px) {
    .top-row[b-cxyux0tx7t] {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
}

#blazor-error-ui[b-cxyux0tx7t] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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-cxyux0tx7t] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-pri0d9daom],
.components-reconnect-repeated-attempt-visible[b-pri0d9daom],
.components-reconnect-failed-visible[b-pri0d9daom],
.components-pause-visible[b-pri0d9daom],
.components-resume-failed-visible[b-pri0d9daom],
.components-rejoining-animation[b-pri0d9daom] {
    display: none;
}

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


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

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

@keyframes components-rejoining-animation-b-pri0d9daom {
    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/Login.razor.rz.scp.css */
/* ==========================================
   Login page light-mode (default) styles
   ========================================== */
.login-page[b-awd50bjw94] {
    margin-top: -1.1rem;
    padding-top: 1.1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    min-height: calc(100vh - 3.5rem + 1.1rem);
}

.login-card-wrapper[b-awd50bjw94] {
    flex-wrap: wrap;
    padding: 2rem 1rem;
    gap: 1.5rem !important;
}

.login-card[b-awd50bjw94] {
    min-width: 300px;
    max-width: 400px;
    width: 100%;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

.login-qr-card[b-awd50bjw94] {
    min-width: 260px;
    max-width: 300px;
    width: 100%;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

.qr-code-box[b-awd50bjw94] {
    display: block;
    border-radius: 0.25rem;
    width: 220px;
    height: 220px;
}

.qr-url-label[b-awd50bjw94] {
    font-size: 0.6rem;
    word-break: break-all;
    max-width: 220px;
    opacity: 0.7;
    color: #475569;
    font-family: monospace;
}

/* Mobile */
@media (max-width: 767px) {
    .login-page[b-awd50bjw94] {
        margin-top: -0.75rem;
        padding-top: 0.75rem;
        min-height: calc(100vh - 2.9rem + 0.75rem);
    }

    .login-card-wrapper[b-awd50bjw94] {
        flex-direction: column-reverse !important;
        align-items: center;
    }
    .login-qr-card[b-awd50bjw94] {
        max-width: 400px;
    }
}

/* ==========================================
   Login page dark-mode [data-bs-theme="dark"]
   Bootstrap 5 handles background/body color automatically.
   We only need explicit overrides for our custom cards/buttons.
   ========================================== */
[data-bs-theme="dark"] .login-page[b-awd50bjw94] {
    background: linear-gradient(180deg, #0a1f14 0%, #050d08 100%) !important;
}

[data-bs-theme="dark"] .login-card[b-awd50bjw94] {
    background: var(--kano-bg-soft) !important;
    border-color: var(--kano-line) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    color: var(--kano-text-main) !important;
}

[data-bs-theme="dark"] .login-card .text-muted[b-awd50bjw94] {
    color: var(--kano-text-soft) !important;
}

[data-bs-theme="dark"] .login-card h2[b-awd50bjw94],
[data-bs-theme="dark"] .login-page .fw-bold[b-awd50bjw94] {
    color: var(--kano-glow-strong) !important;
}

[data-bs-theme="dark"] .login-card .fs-1.text-primary[b-awd50bjw94] {
    color: var(--kano-glow) !important;
}

[data-bs-theme="dark"] .login-qr-card[b-awd50bjw94] {
    background: rgba(40, 255, 158, 0.04) !important;
    border-color: var(--kano-line) !important;
}

/* Dark-mode buttons should not use Bootstrap's light-mode defaults */
[data-bs-theme="dark"] .btn-outline-primary[b-awd50bjw94] {
    color: #1bffb4 !important;
    border-color: rgba(40, 255, 158, 0.6) !important;
}

[data-bs-theme="dark"] .btn-outline-primary:hover[b-awd50bjw94],
[data-bs-theme="dark"] .btn-outline-primary:focus[b-awd50bjw94] {
    background-color: rgba(40, 255, 158, 0.15) !important;
    color: #1bffb4 !important;
    border-color: #1bffb4 !important;
}

[data-bs-theme="dark"] .btn-primary[b-awd50bjw94] {
    background: linear-gradient(180deg, rgba(40,255,158,0.3), var(--kano-bg-soft)) !important;
    color: #1bffb4 !important;
    border-color: rgba(40, 255, 158, 0.6) !important;
}

[data-bs-theme="dark"] .card[b-awd50bjw94] {
    background-color: transparent !important;
    border: none !important;
}

/* Dark-mode mobile adjustments */
@media (max-width: 767px) and ( prefers-color-scheme: dark ) {
    /* If someone forces CSS dark-mode manually, adjust layout too */
    .login-page[b-awd50bjw94] { background: var(--kano-bg-main) !important; }
    .login-card[b-awd50bjw94] { 
        background: var(--kano-bg-soft) !important; 
        color: var(--kano-text-main) !important; 
    }
}
