/* Uzmansoft NOC — Professional SaaS design system (mockup-aligned) */
:root {
    --uz-sidebar: #0f172a;
    --uz-sidebar-2: #1e1b4b;
    --uz-sidebar-text: #94a3b8;
    --uz-sidebar-text-active: #ffffff;
    --uz-accent: #7c3aed;
    --uz-accent-2: #6366f1;
    --uz-accent-grad: linear-gradient(135deg, #7c3aed 0%, #6366f1 55%, #3b82f6 100%);
    --uz-bg: #f1f5f9;
    --uz-surface: #ffffff;
    --uz-surface-2: #f8fafc;
    --uz-border: #e2e8f0;
    --uz-text: #0f172a;
    --uz-muted: #64748b;
    --uz-ok: #16a34a;
    --uz-ok-bg: #dcfce7;
    --uz-warn: #d97706;
    --uz-warn-bg: #fef3c7;
    --uz-crit: #dc2626;
    --uz-crit-bg: #fee2e2;
    --uz-info: #2563eb;
    --uz-info-bg: #dbeafe;
    --uz-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --uz-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --uz-radius: 16px;
    --uz-radius-sm: 12px;
    --uz-sidebar-w: 272px;
    --uz-sidebar-w-collapsed: 80px;
    --uz-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --noc-bg: var(--uz-bg);
    --noc-panel: var(--uz-surface);
    --noc-panel-2: var(--uz-surface-2);
    --noc-border: var(--uz-border);
    --noc-text: var(--uz-text);
    --noc-muted: var(--uz-muted);
    --noc-accent: var(--uz-accent);
    --noc-ok: var(--uz-ok);
    --noc-warn: var(--uz-warn);
    --noc-crit: var(--uz-crit);
    --noc-sidebar-w: var(--uz-sidebar-w);
}

*, *::before, *::after { box-sizing: border-box; }

body.noc-body {
    margin: 0;
    font-family: var(--uz-font);
    background: var(--uz-bg);
    color: var(--uz-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

#noc-wrapper { min-height: 100vh; }

/* ——— Sidebar ——— */
.noc-sidebar {
    width: var(--uz-sidebar-w);
    min-height: 100vh;
    background:
        radial-gradient(800px 400px at 20% 100%, rgba(124, 58, 237, .35), transparent 60%),
        linear-gradient(180deg, var(--uz-sidebar) 0%, #111827 40%, var(--uz-sidebar-2) 100%);
    color: var(--uz-sidebar-text);
    position: sticky;
    top: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    z-index: 40;
    transition: width .2s ease;
}

.noc-sidebar.collapsed { width: var(--uz-sidebar-w-collapsed); }
.noc-sidebar.collapsed .brand-text,
.noc-sidebar.collapsed .nav-section,
.noc-sidebar.collapsed .nav-link span,
.noc-sidebar.collapsed .sidebar-stats { display: none; }
.noc-sidebar.collapsed .nav-link { justify-content: center; padding: .7rem; }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.15rem 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--uz-accent-grad);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 8px 20px rgba(124, 58, 237, .35);
    flex-shrink: 0;
}

.brand-text .brand-title { color: #fff; font-weight: 700; font-size: .98rem; line-height: 1.2; }
.brand-text .brand-sub { color: #94a3b8; font-size: .72rem; }

.noc-sidebar .nav { flex: 1; overflow-y: auto; padding: .75rem .65rem 1rem; }
.noc-sidebar .nav-section {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin: .85rem .65rem .35rem;
    font-weight: 600;
}

.noc-sidebar .nav-link {
    color: var(--uz-sidebar-text);
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .52rem .75rem;
    margin-bottom: .12rem;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 500;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.noc-sidebar .nav-link i, .noc-sidebar .nav-link svg {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    opacity: .9;
}
.noc-sidebar .nav-link:hover {
    background: rgba(148, 163, 184, .1);
    color: #e2e8f0;
}
.noc-sidebar .nav-link.active {
    background: var(--uz-accent-grad);
    color: #fff;
    box-shadow: 0 8px 18px rgba(124, 58, 237, .35);
}
.noc-sidebar .nav-link.active-parent {
    background: rgba(124, 58, 237, .18);
    color: #e9d5ff;
}

.nav-group { margin-bottom: .15rem; }
.nav-group-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    position: relative;
}
.nav-group-toggle .nav-caret {
    margin-left: auto;
    width: .9rem !important;
    height: .9rem !important;
    transition: transform .2s ease;
    opacity: .7;
}
.nav-group.is-open > .nav-group-toggle .nav-caret { transform: rotate(180deg); }
.nav-submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-left: .35rem;
    transition: max-height .22s ease, opacity .18s ease;
}
.nav-group.is-open > .nav-submenu {
    max-height: 280px;
    opacity: 1;
}
.nav-sublink {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: .82rem;
    padding: .4rem .75rem .4rem 2.35rem;
    border-radius: 10px;
    margin: .1rem 0;
    transition: background .15s, color .15s;
}
.nav-sublink:hover { color: #e2e8f0; background: rgba(148,163,184,.08); }
.nav-sublink.active {
    color: #fff;
    background: rgba(124, 58, 237, .35);
    font-weight: 600;
}
.noc-sidebar.collapsed .nav-submenu,
.noc-sidebar.collapsed .nav-caret { display: none; }
.noc-sidebar.collapsed .nav-group-toggle { justify-content: center; padding: .7rem; }

/* Auth / guest */
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(900px 420px at 10% 0%, rgba(124,58,237,.35), transparent 55%),
        radial-gradient(700px 380px at 90% 100%, rgba(37,99,235,.28), transparent 50%),
        linear-gradient(160deg, #0f172a 0%, #1e1b4b 45%, #0f172a 100%);
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(226,232,240,.9);
    box-shadow: 0 24px 60px rgba(15,23,42,.35);
    padding: 1.6rem 1.5rem 1.4rem;
}
.auth-brand { text-align: center; margin-bottom: 1.25rem; color: #fff; }
.auth-brand .brand-mark { margin: 0 auto .75rem; }
.auth-brand h1 { color: #fff; font-size: 1.35rem; font-weight: 800; margin: 0; }
.auth-brand p { color: #cbd5e1; margin: .25rem 0 0; font-size: .9rem; }
.password-wrap { position: relative; }
.password-wrap .toggle-pass {
    position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: var(--uz-muted); cursor: pointer;
    width: 34px; height: 34px; border-radius: 8px;
}
.password-wrap .toggle-pass:hover { color: var(--uz-accent); background: #f5f3ff; }
.auth-card .btn-uz-primary { width: 100%; justify-content: center; }

.notif-dropdown { min-width: 320px; max-width: 360px; padding: .5rem 0; border-radius: 14px !important; }
.notif-dropdown .nd-item {
    display: block; padding: .65rem 1rem; text-decoration: none; color: inherit;
    border-bottom: 1px solid var(--uz-border);
}
.notif-dropdown .nd-item:hover { background: #f8fafc; }
.notif-dropdown .nd-item.unread { background: #f5f3ff; }
.notif-dropdown .nd-title { font-size: .85rem; font-weight: 600; }
.notif-dropdown .nd-meta { font-size: .72rem; color: var(--uz-muted); }

.sidebar-stats {
    margin: .5rem .75rem 1rem;
    padding: .9rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, .45);
    border: 1px solid rgba(148, 163, 184, .15);
    font-size: .78rem;
}
.sidebar-stats .ss-title { color: #cbd5e1; font-weight: 600; margin-bottom: .55rem; display: flex; align-items: center; gap: .4rem; }
.sidebar-stats .ss-row { display: flex; justify-content: space-between; color: #94a3b8; margin-top: .35rem; }
.sidebar-stats .ss-row strong { color: #f8fafc; font-weight: 600; }
.ss-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--uz-ok); box-shadow: 0 0 0 3px rgba(22, 163, 74, .25); }

.sidebar-collapse-btn {
    margin: 0 .75rem 1rem;
    border: 1px solid rgba(148, 163, 184, .2);
    background: transparent;
    color: #94a3b8;
    border-radius: 10px;
    padding: .45rem;
    cursor: pointer;
}
.sidebar-collapse-btn:hover { color: #fff; border-color: rgba(148, 163, 184, .4); }

/* ——— Main / Topbar ——— */
.noc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.noc-topbar {
    min-height: 68px;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--uz-border);
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.25rem;
}
.noc-content { padding: 1rem 1.2rem 1.5rem; }
.dash-row { margin-bottom: .85rem !important; }

.noc-search {
    position: relative;
    flex: 1;
    max-width: 520px;
}
.noc-search i, .noc-search .search-icon {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--uz-muted);
    width: 1rem;
    height: 1rem;
}
.noc-search input {
    width: 100%;
    border: 1px solid var(--uz-border);
    background: var(--uz-surface-2);
    border-radius: 12px;
    padding: .6rem 4.5rem .6rem 2.4rem;
    color: var(--uz-text);
    font-size: .9rem;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.noc-search input:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .15);
    background: #fff;
}
.noc-search .kbd {
    position: absolute;
    right: .55rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .68rem;
    color: var(--uz-muted);
    background: #fff;
    border: 1px solid var(--uz-border);
    border-radius: 6px;
    padding: .15rem .4rem;
}

.topbar-actions { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.env-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    color: #166534;
    background: var(--uz-ok-bg);
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: .35rem .7rem;
}
.env-pill .dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--uz-ok); }

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid var(--uz-border);
    background: #fff;
    color: var(--uz-muted);
    display: grid;
    place-items: center;
    position: relative;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--uz-accent); border-color: #c4b5fd; background: #f5f3ff; }
.icon-btn .badge-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--uz-crit);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 2px solid #fff;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid var(--uz-border);
    background: #fff;
    border-radius: 12px;
    padding: .3rem .65rem .3rem .35rem;
    cursor: pointer;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--uz-accent-grad);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .8rem;
}
.user-meta { line-height: 1.15; text-align: left; }
.user-meta .name { font-size: .82rem; font-weight: 600; color: var(--uz-text); }
.user-meta .role { font-size: .68rem; color: var(--uz-muted); }

/* ——— Cards / stats ——— */
.stat-card, .panel-card, .uz-card {
    background: var(--uz-surface);
    border: 1px solid var(--uz-border);
    border-radius: var(--uz-radius);
    box-shadow: var(--uz-shadow-sm);
}
.stat-card {
    padding: .85rem .95rem;
    height: 100%;
    min-height: 0;
    transition: transform .15s ease, box-shadow .15s ease;
}
.stat-card.tint-purple { background: linear-gradient(180deg, #f5f3ff 0%, #fff 70%); }
.stat-card.tint-green { background: linear-gradient(180deg, #ecfdf5 0%, #fff 70%); }
.stat-card.tint-red { background: linear-gradient(180deg, #fef2f2 0%, #fff 70%); }
.stat-card.tint-orange { background: linear-gradient(180deg, #fffbeb 0%, #fff 70%); }
.stat-card.tint-blue { background: linear-gradient(180deg, #eff6ff 0%, #fff 70%); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--uz-shadow); }
.stat-card .label { color: var(--uz-muted); font-size: .75rem; font-weight: 600; }
.stat-card .value { font-size: 1.45rem; font-weight: 750; line-height: 1.1; margin-top: .3rem; letter-spacing: -.02em; }
.stat-card .hint { color: var(--uz-muted); font-size: .7rem; margin-top: .2rem; }
.stat-card .stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-icon.green { background: var(--uz-ok-bg); color: var(--uz-ok); }
.stat-icon.red { background: var(--uz-crit-bg); color: var(--uz-crit); }
.stat-icon.orange { background: var(--uz-warn-bg); color: var(--uz-warn); }
.stat-icon.blue { background: var(--uz-info-bg); color: var(--uz-info); }

.panel-card { padding: 1.15rem 1.2rem; height: 100%; }
.panel-card h2, .panel-card .panel-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .85rem;
    color: var(--uz-text);
}

/* Hero */
.dash-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--uz-radius);
    padding: 1rem 1.2rem;
    margin-bottom: .9rem;
    background:
        radial-gradient(600px 220px at 0% 0%, rgba(124, 58, 237, .12), transparent 55%),
        radial-gradient(500px 200px at 100% 0%, rgba(59, 130, 246, .1), transparent 50%),
        #fff;
    border: 1px solid var(--uz-border);
    box-shadow: var(--uz-shadow-sm);
}
.dash-hero h1 {
    font-size: clamp(1.2rem, 1.7vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 .25rem;
}
.dash-hero p { color: var(--uz-muted); margin: 0; max-width: 40rem; font-size: .86rem; }

.btn-uz {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 11px;
    border: 1px solid transparent;
    padding: .55rem .95rem;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.btn-uz:hover { transform: translateY(-1px); }
.btn-uz-primary {
    background: var(--uz-accent-grad);
    color: #fff;
    box-shadow: 0 8px 18px rgba(124, 58, 237, .28);
}
.btn-uz-ghost {
    background: #fff;
    border-color: var(--uz-border);
    color: var(--uz-text);
}
.btn-uz-ghost:hover { border-color: #c4b5fd; color: var(--uz-accent); }

/* Featured server (dark) — compact, reference-aligned */
.featured-server {
    background:
        radial-gradient(420px 180px at 92% 8%, rgba(124, 58, 237, .32), transparent 55%),
        linear-gradient(145deg, #0f172a 0%, #1e1b4b 55%, #172554 100%);
    color: #e2e8f0;
    border-radius: var(--uz-radius);
    padding: 1rem 1.1rem .85rem;
    border: 1px solid rgba(148, 163, 184, .15);
    box-shadow: var(--uz-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.featured-server .fs-name { font-size: 1.1rem; font-weight: 750; color: #fff; }
.featured-server .fs-meta { color: #94a3b8; font-size: .78rem; }
.featured-server .metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
    margin-top: .75rem;
}
.featured-server .metric-tile {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 11px;
    padding: .55rem .65rem .45rem;
    display: flex;
    flex-direction: column;
    min-height: 88px;
    max-height: 96px;
    overflow: hidden;
}
.featured-server .metric-tile .m-label { font-size: .68rem; color: #94a3b8; font-weight: 600; }
.featured-server .metric-tile .m-value { font-size: 1.05rem; font-weight: 700; color: #fff; margin-top: .1rem; line-height: 1.15; }
.featured-server .metric-tile .m-sub { font-size: .65rem; color: #64748b; margin-top: .05rem; }
.spark-wrap {
    margin-top: auto;
    width: 100%;
    height: 28px;
    max-height: 28px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.spark-wrap canvas {
    display: block !important;
    width: 100% !important;
    height: 28px !important;
    max-height: 28px !important;
}
.spark-empty {
    height: 28px;
    display: flex;
    align-items: flex-end;
    color: #64748b;
    font-size: .62rem;
}
.fs-footer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
    margin-top: .75rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(148, 163, 184, .15);
    font-size: .72rem;
    color: #94a3b8;
}
.fs-footer strong { display: block; color: #e2e8f0; font-weight: 600; margin-top: .1rem; }
.fs-actions .btn-uz { font-size: .74rem; padding: .35rem .6rem; }
.fs-actions .btn-uz-ghost { background: rgba(255,255,255,.06); border-color: rgba(148,163,184,.25); color: #e2e8f0; }
@media (max-width: 991.98px) {
    .featured-server .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fs-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .2rem .55rem;
    font-size: .72rem;
    font-weight: 700;
}
.badge-online { background: rgba(22, 163, 74, .2); color: #4ade80; }
.badge-offline { background: rgba(220, 38, 38, .2); color: #f87171; }
.badge-warn { background: rgba(217, 119, 6, .2); color: #fbbf24; }
.badge-light-online { background: var(--uz-ok-bg); color: #166534; }
.badge-light-offline { background: var(--uz-crit-bg); color: #991b1b; }
.badge-light-warn { background: var(--uz-warn-bg); color: #92400e; }
.badge-sev-critical { background: var(--uz-crit-bg); color: #991b1b; }
.badge-sev-high { background: #ffedd5; color: #9a3412; }
.badge-sev-medium { background: var(--uz-warn-bg); color: #92400e; }

/* AI card — compact, matches featured height */
.ai-card {
    background: #fff;
    border: 1px solid var(--uz-border);
    border-radius: var(--uz-radius);
    padding: 1rem 1.05rem;
    height: 100%;
    box-shadow: var(--uz-shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.ai-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .68rem;
    font-weight: 700;
    color: #6d28d9;
    background: #ede9fe;
    border-radius: 999px;
    padding: .15rem .5rem;
}
.ai-item {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    border: 0;
    border-radius: 0;
    padding: .55rem 0;
    background: transparent;
    margin-top: 0;
    border-bottom: 1px solid var(--uz-border);
}
.ai-item:last-of-type { border-bottom: 0; }
.ai-item .ai-ico {
    width: 28px; height: 28px; border-radius: 8px;
    display: grid; place-items: center; flex-shrink: 0;
    background: #ede9fe; color: #7c3aed;
}
.ai-item .ai-k { font-size: .7rem; color: var(--uz-muted); font-weight: 700; letter-spacing: .02em; }
.ai-item .ai-v { font-size: .82rem; margin-top: .1rem; color: var(--uz-text); line-height: 1.35; }
.ai-card .panel-title { margin-bottom: .35rem; font-size: .95rem; }

/* Category cards */
.cat-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--uz-border);
    border-radius: var(--uz-radius-sm);
    padding: .85rem .9rem;
    box-shadow: var(--uz-shadow-sm);
    transition: transform .15s, box-shadow .15s, border-color .15s;
    height: 100%;
}
.cat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--uz-shadow);
    border-color: #c4b5fd;
    color: inherit;
}
.cat-card .cat-icon {
    width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center;
    background: #ede9fe; color: #7c3aed; margin-bottom: .5rem;
}
.cat-card .cat-title { font-weight: 700; font-size: .88rem; }
.cat-card .cat-sub { color: var(--uz-muted); font-size: .74rem; margin-top: .15rem; }

/* Charts */
.chart-box {
    background: #fff;
    border: 1px solid var(--uz-border);
    border-radius: var(--uz-radius);
    padding: .9rem 1rem;
    box-shadow: var(--uz-shadow-sm);
    height: 100%;
}
.chart-box .panel-title { font-size: .9rem; margin-bottom: .5rem; }
.chart-canvas-wrap {
    position: relative;
    height: 160px;
    max-height: 160px;
    width: 100%;
}
.chart-canvas-wrap canvas {
    display: block !important;
    width: 100% !important;
    height: 160px !important;
    max-height: 160px !important;
}

/* Lists / tables */
.event-row {
    display: flex;
    gap: .75rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--uz-border);
    text-decoration: none;
    color: inherit;
}
.event-row:last-child { border-bottom: 0; }
.event-row:hover .er-title { color: var(--uz-accent); }
.er-ico {
    width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center; flex-shrink: 0;
}
.er-title { font-weight: 600; font-size: .88rem; }
.er-meta { font-size: .75rem; color: var(--uz-muted); }

.table-noc {
    --bs-table-bg: transparent;
    --bs-table-color: var(--uz-text);
    --bs-table-border-color: var(--uz-border);
    --bs-table-hover-bg: #f8fafc;
    width: 100%;
    font-size: .88rem;
}
.table-noc thead th {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--uz-muted);
    font-weight: 700;
    border-bottom-width: 1px;
}
.table-noc tbody tr { transition: background .12s; }
.table-responsive-uz { overflow-x: auto; }

.status-dot {
    width: .6rem; height: .6rem; border-radius: 50%;
    display: inline-block; vertical-align: middle;
}
.status-online { background: var(--uz-ok); box-shadow: 0 0 0 3px rgba(22,163,74,.2); }
.status-offline, .status-critical { background: var(--uz-crit); }
.status-unknown { background: var(--uz-muted); }
.status-api_auth_error, .status-connection_error, .status-monitoring_error { background: var(--uz-warn); }

.server-card {
    background: #fff;
    border: 1px solid var(--uz-border);
    border-radius: var(--uz-radius);
    padding: 1rem;
    box-shadow: var(--uz-shadow-sm);
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.server-card:hover {
    transform: translateY(-2px);
    border-color: #c4b5fd;
    box-shadow: var(--uz-shadow);
}

.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--uz-muted); }
.alert { border-radius: 12px; }

.form-control, .form-select {
    border-radius: 11px !important;
    border-color: var(--uz-border) !important;
    padding: .55rem .75rem;
}
.form-control:focus, .form-select:focus {
    border-color: #a78bfa !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .15) !important;
}
.btn-primary {
    background: var(--uz-accent-grad) !important;
    border: none !important;
    border-radius: 11px !important;
    font-weight: 600;
}
.btn-outline-primary, .btn-outline-secondary, .btn-outline-info, .btn-outline-warning {
    border-radius: 11px !important;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 35;
}
.sidebar-backdrop.show { display: block; }

@media (max-width: 991.98px) {
    .noc-sidebar {
        position: fixed;
        left: 0; top: 0;
        transform: translateX(-100%);
        transition: transform .22s ease;
        height: 100vh;
    }
    .noc-sidebar.open { transform: translateX(0); }
    .noc-search { max-width: none; min-width: 0; }
    .env-pill .env-label { display: none; }
    .user-meta { display: none; }
}

@media (max-width: 575.98px) {
    .noc-content { padding: 1rem; }
    .dash-hero { padding: 1rem; }
    .stat-card .value { font-size: 1.3rem; }
}
