
@import "colors.css";
@import "tokens.css";
@import "bs5-overrides.css";

:root {
    --em-sidebar-w: 240px;
    --em-topnav-h: 56px;
}

/* ── Base ───────────────────────────────────────────────────────── */
body.em-body { background: #f4f6fb; font-family: 'Segoe UI', sans-serif; }

/* ── Top Nav ────────────────────────────────────────────────────── */
.em-topnav {
    background: var(--brand-primary);
    height: var(--em-topnav-h);
    position: sticky; top: 0; z-index: 1030;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* ── Page wrapper ───────────────────────────────────────────────── */
.em-page-wrapper { min-height: calc(100vh - var(--em-topnav-h)); }

/* ── Sidebar ────────────────────────────────────────────────────── */
.em-sidebar {
    width: var(--em-sidebar-w);
    min-width: var(--em-sidebar-w);
    background: var(--brand-dark);
    min-height: calc(100vh - var(--em-topnav-h));
    padding: 12px 0;
    overflow-y: auto;
    transition: transform .25s;
    flex-shrink: 0;
}

.em-sidebar-section {
    padding: 14px 16px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--brand-primary) 75%, white);
}

.em-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    color: color-mix(in srgb, var(--brand-light) 75%, black);
    text-decoration: none;
    font-size: 13.5px;
    transition: background .15s, color .15s;
    border-left: 3px solid transparent;
}

.em-sidebar-link:hover,
.em-sidebar-link.active {
    background: rgba(255,255,255,.08);
    color: #ffffff;
    border-left-color: #4a90d9;
}

.em-sidebar-link i { font-size: 15px; min-width: 18px; }

/* ── Main content ───────────────────────────────────────────────── */
.em-main { /*max-width: 1400px; */}
.em-page-title { font-size: 1.35rem; font-weight: 700; color: #1e2d3d; margin-bottom: .25rem; }

/* ── Auth (login / register) ────────────────────────────────────── */
.em-auth-bg {
    min-height: 100vh;
   /* background: linear-gradient(135deg,var(--brand-primary) 0%,var(--brand-secondary) 100%);*/
}

/* ── Cards ───────────────────────────────────────────────────────── */
.card { border-radius: .75rem; }

/* ── Tables ──────────────────────────────────────────────────────── */
.em-table-head th {
    background: #f0f4f8;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #5a6878;
    border-bottom: 2px solid #e0e7ef;
    padding: 10px 14px;
}

.table td { padding: 10px 14px; vertical-align: middle; }
.table-hover tbody tr:hover { background: #f7f9fc; }

/* ── Stat icon ───────────────────────────────────────────────────── */
.em-stat-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── Detail table ────────────────────────────────────────────────── */
.em-detail-table td { padding: 8px 16px; }
.em-detail-table tr:nth-child(odd) { background: #f8fafc; }

/* ── Dropzone ────────────────────────────────────────────────────── */
.em-dropzone {
    border: 2px dashed #c0cfe0;
    border-radius: .6rem;
    transition: border-color .2s, background .2s;
    cursor: pointer;
}
.em-dropzone:hover, .em-dropzone.hover { border-color: var(--brand-secondary); background: #f0f6ff; }

/* ── Submission status badges ─────────────────────────────────────── */
.badge-submitted    { background: #0d6efd; color: #fff; }
.badge-notsubmitted { background: #6c757d; color: #fff; }
.badge-unlocked     { background: #fd7e14; color: #fff; }

/* ── Mobile sidebar ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .em-sidebar {
        position: fixed;
        top: var(--em-topnav-h);
        left: 0;
        z-index: 1020;
        transform: translateX(-100%);
        height: calc(100% - var(--em-topnav-h));
    }
    .em-sidebar.em-sidebar-open { transform: translateX(0); }
    .em-main { padding: 1rem !important; }
}
code
{
    color: var(--color-crimson);
}
/* ── Print (hall tickets) ────────────────────────────────────────── */
@media print {
    .em-topnav, .em-sidebar, .btn, .alert {
        display: none !important;
    }

    .em-main {
        margin: 0 !important;
        padding: 0 !important;
    }
}

.btn-crimson {
    border-radius: var(--bs-border-radius);
    background: var(--color-crimson);
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-block;
    letter-spacing: 0.01em;
}

    .btn-crimson:hover {
        background: var(--crimson-700);
        color: #fff;
    }

    .btn-crimson:active {
        color: #fff;
    }

    .btn-crimson:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.btn-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    display: none;
    flex-shrink: 0;
}

.btn-crimson.loading .btn-spinner {
    display: block;
}

.btn-crimson.loading .btn-text {
    display: none;
}
.field
{
    margin-bottom:10px;
}
.btn-login {
    height: 48px;
    background: var(--color-crimson);
    color: #fff;
    border: none;
    font-size: 14.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    letter-spacing: 0.01em;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    box-shadow: 0 2px 10px rgba(26, 60, 94, 0.32);
    margin-top: 6px;
}

    .btn-login:hover {
        background: var(--crimson-700);
        box-shadow: 0 6px 20px rgba(26, 60, 94, 0.4);
        transform: translateY(-1px);
        color: #fff;
    }

    .btn-login:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(26, 60, 94, 0.22);
        color: #fff;
    }

    .btn-login:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.btn-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    display: none;
    flex-shrink: 0;
}

.btn-login.loading .btn-spinner {
    display: block;
}

.btn-login.loading .btn-text {
    display: none;
}
.app-card {
    background: #fff;
    border: 1px solid var(--brand-dark-100);
    border-radius: 6px;
    overflow: hidden;
}

.app-card-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--brand-dark-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary);
    margin: 0;
}

.app-card-body {
    padding: 16px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--brand-dark-100);
    border-radius: 6px;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    transition: box-shadow .2s;
    cursor: pointer;
}

    .stat-card:hover {
        box-shadow: 0 3px 12px rgba(0,0,0,.09);
    }

    .stat-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--brand-primary);
    }

    .stat-card.s-warn::after {
        background: #f59e0b;
    }

    .stat-card.s-succ::after {
        background: #198754;
    }

    .stat-card.s-dngr::after {
        background: #dc3545;
    }

    .stat-card.s-info::after {
        background: #0dcaf0;
    }

.stats-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.stats-figure {
    font-size: 30px;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
}

.stat-card.s-warn .stats-figure {
    color: #92600a;
}

.stat-card.s-succ .stats-figure {
    color: #198754;
}

.stat-card.s-dngr .stats-figure {
    color: #dc3545;
}

.stats-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
}

.stat-bg-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 38px;
    opacity: .06;
    color: var(--brand-primary);
    pointer-events: none;
}
.brand-title {
    font-size: 14px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.7);
}
.tb-right {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 4px;
}

.tb-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 8px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
}

    .tb-user:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .tb-user .dropdown-toggle::after {
        display: none;
    }

.tb-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bs-white);
    color: var(--color-crimson);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.tb-uname {
    font-size: 16px;
    font-weight: 600;
    color: var(--tb-c);
    line-height: 1.2;
}

.tb-urole {
    font-size: 13px;
    color: var(--tb-c);
    margin-top: 1px;
}

.tb-caret {
    font-size: 10px;
    color: var(--tb-c);
}