body.is-admin { font-family: 'Cairo', system-ui, sans-serif; background: #f4f6fb; color: #212529; }
.ns-admin { display: flex; min-height: 100vh; }
.ns-side { width: 250px; flex: 0 0 250px; background: #0a1a3f; color: #cfd8f2; padding: 1rem 0; overflow-y: auto; }
.ns-brand { display: block; padding: .25rem 1.25rem 1rem; font-weight: 800; font-size: 1.3rem; color: #fff; text-decoration: none; letter-spacing: .5px; }
.ns-brand span { color: #3d8bff; }
.ns-side nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem 1.25rem; color: #cfd8f2; text-decoration: none; font-size: .95rem; }
.ns-side nav a i { width: 1.2rem; text-align: center; opacity: .8; }
.ns-side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.ns-side nav a.active { background: rgba(61,139,255,.25); color: #fff; }
.ns-side nav .badge { margin-inline-start: auto; }
.ns-side-title { padding: 1rem 1.25rem .3rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #7f8db5; }
.ns-main { flex: 1; min-width: 0; }
.ns-top { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; background: #fff; border-bottom: 1px solid #e3e8f4; position: sticky; top: 0; z-index: 10; }
.ns-stat-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-size: 1.2rem; }
.ns-stat-card { border: 0; box-shadow: 0 4px 14px rgba(10,26,63,.06); }
.ns-status { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.ns-status-new { background: #dbeafe; color: #1d4ed8; } .ns-status-pending { background: #fef3c7; color: #92400e; }
.ns-status-in_progress { background: #e0e7ff; color: #4338ca; } .ns-status-completed { background: #dcfce7; color: #166534; }
.ns-status-cancelled { background: #fee2e2; color: #991b1b; }
.ns-login { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: linear-gradient(135deg, #040814, #0a1a3f); }
.ns-login .ns-brand { color: #0a1a3f; padding: 0; }
@media (max-width: 991px) {
    .ns-side { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
    [dir="rtl"] .ns-side { transform: translateX(100%); }
    .ns-side.open { transform: none !important; }
}

/* SPA additions (admin) */
body.is-admin .form-control, body.is-admin .form-select { background-color: #fff; color: #212529; border-color: #ced4da; }
.ns-toast { position: fixed; inset-block-start: 14px; inset-inline-end: 14px; z-index: 2000; max-width: 380px; }
.ns-loading { min-height: 40vh; display: grid; place-items: center; color: var(--ns-muted); }
.ns-spinner { width: 34px; height: 34px; border: 3px solid var(--ns-border); border-top-color: var(--ns-primary); border-radius: 50%; animation: nsspin .8s linear infinite; }
@keyframes nsspin { to { transform: rotate(360deg); } }
