* {
    box-sizing: border-box;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .8rem;
    border-radius: .7rem;
    color: #cbd5e1;
    transition: .2s;
}

.nav-item svg {
    width: 17px;
    height: 17px;
}

.nav-item:hover {
    background: #1e293b;
    color: #fff;
}

.nav-item.active {
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    color: #fff;
    box-shadow: 0 6px 18px rgba(79, 70, 229, .25);
}

.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: .65rem;
    padding: .65rem 1rem;
    font-weight: 600;
    font-size: .875rem;
    transition: .2s;
}

.btn-primary {
    background: #4f46e5;
    color: #fff;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-secondary {
    background: #f1f5f9;
    color: #334155;
}

.btn-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: .65rem;
    padding: .65rem .8rem;
    outline: none;
    background: #fff;
}

.input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
}

label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: .35rem;
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: rgba(99, 102, 241, .06);
    right: -25px;
    top: -25px;
}

.table-wrap {
    overflow: auto;
}

.toast {
    animation: toast .25s ease-out;
}

@keyframes toast {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Login page - framework-independent layout */
.login-page {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 50% -10%, #26346b 0, #11182e 38%, #070b18 72%, #030611 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
}

.login-shell {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.login-shell:before,
.login-shell:after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
}

.login-shell:before {
    width: 420px;
    height: 420px;
    background: rgba(99, 102, 241, .12);
    top: -220px;
    left: -180px;
}

.login-shell:after {
    width: 360px;
    height: 360px;
    background: rgba(139, 92, 246, .10);
    right: -180px;
    bottom: -180px;
}

.login-brand {
    text-align: center;
    color: #fff;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}

.login-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 21px;
    box-shadow: 0 14px 35px rgba(79, 70, 229, .38);
}

.login-brand h1 {
    margin: 0;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.02em;
}

.login-brand p {
    margin: 7px 0 0;
    color: #94a3b8;
    font-size: 14px;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 470px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.login-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.login-card-head h2 {
    margin: 0;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 800;
    color: #0f172a;
}

.login-card-head p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #64748b;
}

.login-lock {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.login-alert {
    padding: 12px 13px;
    margin-bottom: 18px;
    border-radius: 11px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    font-size: 13px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.login-field label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.login-label-row {
    display: flex;
    justify-content: space-between;
}

.login-input-wrap {
    position: relative;
    width: 100%;
}

.login-input-wrap input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 48px 0 43px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
    box-sizing: border-box;
}

.login-input-wrap input::placeholder {
    color: #94a3b8;
}

.login-input-wrap input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .11);
}

.login-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
    z-index: 2;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px;
}

.login-submit {
    width: 100%;
    height: 48px;
    margin-top: 2px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 22px rgba(79, 70, 229, .22);
    transition: transform .15s, box-shadow .15s, background .15s;
}

.login-submit:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 13px 27px rgba(79, 70, 229, .28);
}

.login-arrow {
    font-size: 18px;
    line-height: 1;
}

.demo-box {
    margin-top: 21px;
    padding: 14px 15px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.demo-title {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}

.demo-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #64748b;
    line-height: 1.7;
}

.demo-row span:first-child {
    width: 52px;
    font-weight: 700;
    color: #334155;
}

.demo-row code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 1px 5px;
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #94a3b8;
}

.login-footer a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 700;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-copyright {
    position: relative;
    z-index: 1;
    margin: 18px 0 0;
    color: #64748b;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 520px) {
    .login-shell {
        padding: 25px 14px;
    }

    .login-brand {
        margin-bottom: 20px;
    }

    .login-brand h1 {
        font-size: 23px;
    }

    .login-logo {
        width: 58px;
        height: 58px;
    }

    .login-card {
        padding: 23px 18px;
        border-radius: 18px;
    }

    .login-card-head h2 {
        font-size: 21px;
    }

    .login-footer {
        flex-direction: column;
        gap: 9px;
    }

    .demo-row {
        font-size: 10px;
    }
}
