@import '_content/MPSSiliguri_Shared_comands/MPSSiliguri_Shared_comands.3qxw7f0l21.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* VARIABLES */
:root[b-27mgmozz04] {
    --sidebar-width: 260px;
    --header-height: 60px;
}

/* 1. LAYOUT CONTAINER */
.sf-layout-container[b-27mgmozz04] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* 2. HEADER STYLE */
/* Using ::deep allows styles to penetrate Syncfusion components */
[b-27mgmozz04] .main-appbar {
    z-index: 1200 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e0e0e0;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
}

/* 3. SIDEBAR STYLE */
[b-27mgmozz04] .custom-sidebar {
    /* Dark Gradient Background */
    background: linear-gradient(180deg, #0f2027 0%, #203a43 50%, #2c5364 100%) !important;
    color: #ffffff;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    top: 0 !important;
    height: 100vh !important;
    z-index: 1100 !important;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

/* 4. SPACER STYLE */
.sidebar-spacer[b-27mgmozz04] {
    height: var(--header-height);
    width: 100%;
    display: block;
    background: transparent;
}

.sidebar-header[b-27mgmozz04] {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

/* 5. MAIN CONTENT AREA */
.main-content[b-27mgmozz04] {
    margin-top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background-color: #f4f6f8;
    transition: margin-left 0.3s ease;
}

/* 6. DESKTOP BEHAVIOR (Push content when sidebar opens) */
@media (min-width: 768px) {
    [b-27mgmozz04] .custom-sidebar.e-open ~ .main-content {
        margin-left: var(--sidebar-width);
    }
}

/* 7. ERROR UI (Keep this for debugging) */
#blazor-error-ui[b-27mgmozz04] {
    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: 1300; /* Higher than header */
}

    #blazor-error-ui .dismiss[b-27mgmozz04] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-jnm8iqpik3] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-jnm8iqpik3] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-jnm8iqpik3] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-jnm8iqpik3] {
    font-size: 1.1rem;
}

.bi[b-jnm8iqpik3] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-jnm8iqpik3] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-jnm8iqpik3] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-jnm8iqpik3] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-jnm8iqpik3] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-jnm8iqpik3] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-jnm8iqpik3] {
        padding-bottom: 1rem;
    }

    .nav-item[b-jnm8iqpik3]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-jnm8iqpik3]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-jnm8iqpik3]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-jnm8iqpik3] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-jnm8iqpik3] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-jnm8iqpik3] {
        display: none;
    }

    .nav-scrollable[b-jnm8iqpik3] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* =======================================================
   1. DISPLAY LOGIC (Standard Blazor State Toggles)
   ======================================================= */
.components-reconnect-first-attempt-visible[b-kez5p3mk7o],
.components-reconnect-repeated-attempt-visible[b-kez5p3mk7o],
.components-reconnect-failed-visible[b-kez5p3mk7o],
.components-pause-visible[b-kez5p3mk7o],
.components-resume-failed-visible[b-kez5p3mk7o],
.components-rejoining-animation[b-kez5p3mk7o] {
    display: none;
}

/* Show specific elements based on the modal's state class */
#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-kez5p3mk7o],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-kez5p3mk7o],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-kez5p3mk7o],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-kez5p3mk7o],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-kez5p3mk7o],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-kez5p3mk7o],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-kez5p3mk7o] {
    display: flex; /* Changed to flex to align internal items */
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* =======================================================
   2. THE MODAL WRAPPER (<dialog>)
   ======================================================= */
#components-reconnect-modal[b-kez5p3mk7o] {
    /* Reset default dialog styles */
    position: fixed;
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    /* Transparent background for the dialog itself, 
       because the visual "Card" is the inner container */
    background: transparent;
    border: none;
    /* Flexbox to center the inner card */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Animation entry */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 10000;
    pointer-events: none; /* Let clicks pass through when hidden */
}

    /* Visible State */
    #components-reconnect-modal[open][b-kez5p3mk7o] {
        opacity: 1;
        pointer-events: all; /* Capture clicks when visible */
    }

    /* =======================================================
   3. THE BACKDROP (The Blurred Overlay)
   ======================================================= */
    #components-reconnect-modal[b-kez5p3mk7o]::backdrop {
        /* MPS Dark Blue Tint */
        background-color: rgba(15, 23, 42, 0.6);
        /* Glass Blur Effect */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        /* Animation */
        opacity: 0;
        animation: backdrop-fade-in-b-kez5p3mk7o 0.5s forwards;
    }

@keyframes backdrop-fade-in-b-kez5p3mk7o {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =======================================================
   4. THE CARD (The White Box)
   ======================================================= */
.components-reconnect-container[b-kez5p3mk7o] {
    background-color: white;
    padding: 2.5rem;
    width: 90%;
    max-width: 400px;
    /* Styling */
    border-radius: 12px;
    border-top: 6px solid #234FA7; /* MPS Primary Blue */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    /* Entry Animation for the card specifically */
    transform: translateY(20px);
    animation: card-slide-up-b-kez5p3mk7o 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes card-slide-up-b-kez5p3mk7o {
    to {
        transform: translateY(0);
    }
}

/* =======================================================
   5. TEXT & BUTTONS
   ======================================================= */
#components-reconnect-modal p[b-kez5p3mk7o] {
    color: #334155;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.5;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Retry / Reload Buttons */
#components-reconnect-modal button[b-kez5p3mk7o] {
    border: 0;
    background-color: #234FA7; /* MPS Blue */
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(35, 79, 167, 0.3);
}

    #components-reconnect-modal button:hover[b-kez5p3mk7o] {
        background-color: #FFC107; /* MPS Gold */
        color: #0f172a; /* Dark text for contrast against gold */
        transform: translateY(-1px);
        box-shadow: 0 10px 15px -3px rgba(255, 193, 7, 0.4);
    }

    #components-reconnect-modal button:active[b-kez5p3mk7o] {
        transform: translateY(1px);
    }

/* =======================================================
   6. SPINNER ANIMATION
   ======================================================= */
.components-rejoining-animation[b-kez5p3mk7o] {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
}

    .components-rejoining-animation div[b-kez5p3mk7o] {
        position: absolute;
        border: 4px solid #234FA7; /* MPS Blue */
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-kez5p3mk7o 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-kez5p3mk7o] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-kez5p3mk7o {
    0% {
        top: 28px;
        left: 28px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 28px;
        left: 28px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 56px;
        height: 56px;
        opacity: 0;
    }
}

/* =======================================================
   7. DARK MODE SUPPORT (Optional but Recommended)
   ======================================================= */
@media (prefers-color-scheme: dark) {
    .components-reconnect-container[b-kez5p3mk7o] {
        background-color: #1e293b; /* Dark Slate */
        border-top: 6px solid #60a5fa; /* Lighter Blue for visibility */
    }

    #components-reconnect-modal p[b-kez5p3mk7o] {
        color: #f1f5f9;
    }

    #components-reconnect-modal button[b-kez5p3mk7o] {
        background-color: #60a5fa;
        color: #0f172a;
    }

    .components-rejoining-animation div[b-kez5p3mk7o] {
        border-color: #60a5fa;
    }
}
