@import '_content/TTOS.CM.UserInterface/TTOS.CM.UserInterface.k5xbkvh7qo.bundle.scp.css';

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

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

.sidebar[b-ysq899rsgg] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-ysq899rsgg] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row[b-ysq899rsgg]  a,
.top-row[b-ysq899rsgg]  .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
}

.top-row[b-ysq899rsgg]  a:hover,
.top-row[b-ysq899rsgg]  .btn-link:hover {
    text-decoration: underline;
}

.top-row[b-ysq899rsgg]  a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640.98px) {
    .top-row[b-ysq899rsgg] {
        justify-content: space-between;
    }

    .top-row[b-ysq899rsgg]  a,
    .top-row[b-ysq899rsgg]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-ysq899rsgg] {
        flex-direction: row;
    }

    .sidebar[b-ysq899rsgg] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-ysq899rsgg] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-ysq899rsgg]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-ysq899rsgg],
    article[b-ysq899rsgg] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-ysq899rsgg] {
    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-ysq899rsgg] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-x5oz9qexny] {
    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-x5oz9qexny] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-x5oz9qexny] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-x5oz9qexny] {
    font-size: 1.1rem;
}

.bi[b-x5oz9qexny] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill[b-x5oz9qexny] {
    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-gear-fill[b-x5oz9qexny] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z'/%3E%3C/svg%3E");
}

.bi-envelope-fill[b-x5oz9qexny] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555zM0 4.697v7.104l5.803-3.558L0 4.697zM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757zm3.436-.586L16 11.801V4.697l-5.803 3.546z'/%3E%3C/svg%3E");
}

.nav-item[b-x5oz9qexny] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-x5oz9qexny] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-x5oz9qexny] {
        padding-bottom: 1rem;
    }

    .nav-item[b-x5oz9qexny]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-x5oz9qexny]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-x5oz9qexny]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-x5oz9qexny] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-x5oz9qexny] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-x5oz9qexny] {
        display: none;
    }

    .nav-scrollable[b-x5oz9qexny] {
        /* 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/Pages/Home.razor.rz.scp.css */
/* ================================
   MAINBOARD — scalable, auto-fill
   ================================ */

.mainboard-container[b-bbrrjmv84r] {
    min-height: 100vh;
    background: #f0f4f8;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ---- Top bar ---- */
.topbar[b-bbrrjmv84r] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 2.5rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand[b-bbrrjmv84r] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.brand-logo[b-bbrrjmv84r] {
    font-size: 1.5rem;
    color: #3b82f6;
    line-height: 1;
}

.brand-name[b-bbrrjmv84r] {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.03em;
}

/* ---- Main content ---- */
.mainboard-content[b-bbrrjmv84r] {
    flex: 1;
    padding: 2.5rem 2.5rem 3rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ---- Welcome ---- */
.welcome-block[b-bbrrjmv84r] {
    margin-bottom: 2rem;
}

.welcome-title[b-bbrrjmv84r] {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.3rem;
    letter-spacing: -0.02em;
}

.welcome-sub[b-bbrrjmv84r] {
    color: #64748b;
    font-size: 0.975rem;
    margin: 0;
}

/* ================================
   MODULES GRID — auto-fill
   Thêm module mới: chỉ cần thêm
   card vào HTML, grid tự điều chỉnh
   ================================ */
.modules-grid[b-bbrrjmv84r] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* ================================
   MODULE CARD
   ================================ */
.module-card[b-bbrrjmv84r] {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    animation: cardFadeUp-b-bbrrjmv84r .35s ease both;
}

.module-card:hover[b-bbrrjmv84r] {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0,0,0,.1);
    border-color: var(--accent, #3b82f6);
    color: inherit;
    text-decoration: none;
}

/* Staggered entrance animation */
.modules-grid .module-card:nth-child(1)[b-bbrrjmv84r] { animation-delay: .04s; }
.modules-grid .module-card:nth-child(2)[b-bbrrjmv84r] { animation-delay: .08s; }
.modules-grid .module-card:nth-child(3)[b-bbrrjmv84r] { animation-delay: .12s; }
.modules-grid .module-card:nth-child(4)[b-bbrrjmv84r] { animation-delay: .16s; }
.modules-grid .module-card:nth-child(5)[b-bbrrjmv84r] { animation-delay: .20s; }
.modules-grid .module-card:nth-child(6)[b-bbrrjmv84r] { animation-delay: .24s; }
.modules-grid .module-card:nth-child(7)[b-bbrrjmv84r] { animation-delay: .28s; }
.modules-grid .module-card:nth-child(8)[b-bbrrjmv84r] { animation-delay: .32s; }
.modules-grid .module-card:nth-child(9)[b-bbrrjmv84r] { animation-delay: .36s; }
.modules-grid .module-card:nth-child(10)[b-bbrrjmv84r] { animation-delay: .40s; }

@keyframes cardFadeUp-b-bbrrjmv84r {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Colored top accent stripe */
.card-accent-bar[b-bbrrjmv84r] {
    height: 4px;
    background: var(--accent, #3b82f6);
    flex-shrink: 0;
}

/* Card body */
.card-inner[b-bbrrjmv84r] {
    padding: 1.4rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

/* Icon container */
.module-icon-wrap[b-bbrrjmv84r] {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--icon-bg, rgba(59,130,246,.1));
    color: var(--icon-color, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
    transition: transform .2s ease;
}

.module-card:hover .module-icon-wrap[b-bbrrjmv84r] {
    transform: scale(1.1) rotate(-3deg);
}

/* Category badge */
.module-badge[b-bbrrjmv84r] {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--badge-bg, rgba(59,130,246,.1));
    color: var(--badge-color, #3b82f6);
    align-self: flex-start;
}

/* Title */
.module-title[b-bbrrjmv84r] {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

/* Description */
.module-desc[b-bbrrjmv84r] {
    font-size: 0.855rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

/* "Truy cập →" link — slides in on hover */
.card-go[b-bbrrjmv84r] {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent, #3b82f6);
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .2s ease, transform .2s ease;
}

.module-card:hover .card-go[b-bbrrjmv84r] {
    opacity: 1;
    transform: translateX(0);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .modules-grid[b-bbrrjmv84r] {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 640px) {
    .topbar[b-bbrrjmv84r] {
        padding: 0.75rem 1rem;
    }
    .mainboard-content[b-bbrrjmv84r] {
        padding: 1.5rem 1rem 2rem;
    }
    .welcome-title[b-bbrrjmv84r] {
        font-size: 1.35rem;
    }
    .modules-grid[b-bbrrjmv84r] {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
