/* =========================================================
   SISTEM AIS MONITORING
   VMS NUSANTARA TECH
   CLEAN UI SYSTEM
========================================================= */

:root {
    --bg: #06131f;
    --bg-2: #081a29;
    --sidebar: 258px;
    --topbar: 72px;

    --panel: #0b2030;
    --panel-2: #0e2739;
    --input: #081b2a;

    --border: rgba(255,255,255,.08);
    --border-light: rgba(255,255,255,.12);

    --text: #eef7fb;
    --text-2: #a9bbc5;
    --muted: #718895;

    --cyan: #16bfd3;
    --cyan-dark: #0d91a3;
    --green: #27d391;
    --yellow: #f2b84b;
    --red: #f26b6b;

    --radius: 14px;
    --radius-sm: 10px;

    --shadow: 0 10px 30px rgba(0,0,0,.22);
}


/* =========================================================
   RESET
========================================================= */

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

html {
    width: 100%;
    min-height: 100%;
    background: var(--bg);
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;

    background:
        radial-gradient(
            circle at 75% 0%,
            rgba(22,191,211,.07),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: 1.5;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}


/* =========================================================
   APP
========================================================= */

.app-shell {
    width: 100%;
    min-height: 100vh;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: fixed;

    left: 0;
    top: 0;
    bottom: 0;

    width: var(--sidebar);
    min-width: var(--sidebar);
    height: 100vh;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #081c2c 0%,
            #061520 100%
        );

    border-right: 1px solid var(--border);

    z-index: 1000;

    overflow-x: hidden;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.12) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.12);
    border-radius: 10px;
}


/* =========================================================
   SIDEBAR BRAND
========================================================= */

.sidebar-brand {
    width: 100%;
    min-height: 94px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 20px 18px;

    border-bottom: 1px solid var(--border);

    flex-shrink: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--cyan),
            #08758a
        );

    color: #fff;

    font-size: 21px;

    box-shadow:
        0 8px 22px rgba(22,191,211,.20);
}

.brand-text {
    min-width: 0;
    overflow: hidden;
}

.brand-title {
    color: #fff;

    font-size: 12px;
    line-height: 1.35;

    font-weight: 800;

    letter-spacing: .25px;

    white-space: normal;
}

.brand-company {
    margin-top: 4px;

    color: var(--cyan);

    font-size: 10px;
    line-height: 1.3;

    font-weight: 800;

    letter-spacing: .65px;
}

.brand-description {
    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
    line-height: 1.3;
}


/* =========================================================
   SIDEBAR SYSTEM STATUS
========================================================= */

.sidebar-system-status {
    margin: 16px 14px 12px;

    padding: 12px;

    display: flex;
    align-items: center;

    gap: 10px;

    background: rgba(255,255,255,.035);

    border: 1px solid var(--border);

    border-radius: 11px;

    flex-shrink: 0;
}

.system-status-title {
    color: #e9f8f2;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .65px;
}

.system-status-description {
    margin-top: 2px;

    color: var(--muted);

    font-size: 9px;
}


/* =========================================================
   STATUS
========================================================= */

.status-indicator {
    width: 8px;
    height: 8px;

    display: inline-block;

    flex: 0 0 8px;

    border-radius: 50%;
}

.status-indicator.online {
    background: var(--green);

    box-shadow:
        0 0 0 4px rgba(39,211,145,.09),
        0 0 10px rgba(39,211,145,.45);
}

.status-indicator.offline {
    background: var(--red);
}

.status-indicator.unknown {
    background: var(--yellow);
}


/* =========================================================
   NAVIGATION
========================================================= */

.sidebar-navigation {
    width: 100%;

    padding: 2px 12px 14px;

    flex: 0 0 auto;
}

.navigation-label {
    padding: 13px 10px 7px;

    color: #5f7886;

    font-size: 9px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: 1.2px;
}

.navigation-label-secondary {
    margin-top: 7px;
}

.navigation-item {
    width: 100%;
    min-height: 42px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 0 12px;

    margin: 3px 0;

    border: 1px solid transparent;
    border-radius: 9px;

    color: #91a7b3;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.navigation-item:hover {
    color: #fff;

    background: rgba(255,255,255,.045);

    border-color: rgba(255,255,255,.04);
}

.navigation-item.active {
    color: #fff;

    background:
        linear-gradient(
            90deg,
            rgba(22,191,211,.18),
            rgba(22,191,211,.05)
        );

    border-color: rgba(22,191,211,.15);

    box-shadow:
        inset 3px 0 0 var(--cyan);
}

.navigation-icon {
    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #7893a1;

    font-size: 16px;
    line-height: 1;
}

.navigation-item.active .navigation-icon {
    color: var(--cyan);
}

.navigation-text {
    min-width: 0;

    color: inherit;

    font-size: 13px;
    line-height: 1.2;

    font-weight: 600;

    white-space: nowrap;
}


/* =========================================================
   SIDEBAR FOOTER
========================================================= */

.sidebar-footer {
    width: 100%;

    margin-top: auto;

    padding: 16px 18px 20px;

    text-align: center;

    flex-shrink: 0;
}

.sidebar-footer-line {
    width: 100%;
    height: 1px;

    margin-bottom: 13px;

    background: var(--border);
}

.sidebar-footer-brand {
    color: #9cafb9;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .7px;
}

.sidebar-footer-version {
    margin-top: 4px;

    color: #536b78;

    font-size: 8px;

    letter-spacing: .3px;
}


/* =========================================================
   MOBILE HEADER
========================================================= */

.mobile-header {
    display: none;
}


/* =========================================================
   OVERLAY
========================================================= */

.sidebar-overlay {
    display: none;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {
    width: calc(100% - var(--sidebar));
    min-height: 100vh;

    margin-left: var(--sidebar);

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(
            circle at 85% 0%,
            rgba(22,191,211,.045),
            transparent 32%
        );
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    width: 100%;
    min-height: var(--topbar);
    height: var(--topbar);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 0 28px;

    background: rgba(6,19,31,.92);

    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;

    z-index: 500;

    backdrop-filter: blur(14px);
}

.topbar-left {
    min-width: 0;
}

.topbar-page-title {
    color: #fff;

    font-size: 18px;
    line-height: 1.25;

    font-weight: 750;

    letter-spacing: -.2px;
}

.topbar-page-subtitle {
    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;
    line-height: 1.3;
}

.topbar-right {
    display: flex;
    align-items: center;

    gap: 22px;

    flex-shrink: 0;
}

.topbar-time {
    text-align: right;
}

.topbar-clock {
    color: #eaf8fb;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: .4px;
}

.topbar-date {
    margin-top: 1px;

    color: var(--muted);

    font-size: 9px;
}

.topbar-status {
    min-height: 30px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 0 11px;

    color: #b9cbd3;

    background: rgba(39,211,145,.045);

    border: 1px solid rgba(39,211,145,.12);

    border-radius: 8px;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .6px;
}


/* =========================================================
   PAGE CONTENT
========================================================= */

.page-content {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 28px 30px 36px;
}


/* =========================================================
   DASHBOARD HEADER
========================================================= */

.dashboard-header {
    width: 100%;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 24px;
}

.dashboard-eyebrow {
    color: var(--cyan);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.dashboard-title {
    margin: 5px 0 6px;

    color: #fff;

    font-size: 25px;
    line-height: 1.2;

    font-weight: 750;

    letter-spacing: -.5px;
}

.dashboard-description {
    max-width: 680px;

    color: var(--text-2);

    font-size: 12px;
    line-height: 1.6;
}

.dashboard-header-status {
    min-width: 185px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 12px 14px;

    background: rgba(39,211,145,.035);

    border: 1px solid rgba(39,211,145,.12);

    border-radius: 11px;
}

.dashboard-header-status strong {
    display: block;

    color: #dff9ef;

    font-size: 9px;
    letter-spacing: .6px;
}

.dashboard-header-status small {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 9px;
}


/* =========================================================
   STATISTICS
========================================================= */

.statistics-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 18px;
}

.stat-card {
    min-width: 0;

    padding: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(14,39,57,.96),
            rgba(9,29,44,.96)
        );

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.stat-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-size: 15px;
    font-weight: 800;
}

.stat-icon-blue,
.stat-icon-cyan {
    color: var(--cyan);
    background: rgba(22,191,211,.09);
}

.stat-icon-green {
    color: var(--green);
    background: rgba(39,211,145,.09);
}

.stat-icon-amber {
    color: var(--yellow);
    background: rgba(242,184,75,.09);
}

.stat-label {
    margin-left: auto;

    color: var(--muted);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .9px;
}

.stat-value {
    margin-top: 15px;

    color: #fff;

    font-size: 27px;
    line-height: 1;

    font-weight: 750;
}

.stat-description {
    margin-top: 7px;

    color: var(--muted);

    font-size: 9px;
}


/* =========================================================
   DASHBOARD GRID
========================================================= */

.dashboard-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(340px, .95fr);

    gap: 18px;

    margin-bottom: 18px;
}


/* =========================================================
   PANELS
========================================================= */

.panel {
    min-width: 0;

    background:
        linear-gradient(
            145deg,
            rgba(11,32,48,.98),
            rgba(8,27,42,.98)
        );

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;
}

.panel-header {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 16px 18px;

    border-bottom: 1px solid var(--border);
}

.panel-eyebrow {
    color: var(--cyan);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1px;
}

.panel-title {
    margin-top: 3px;

    color: #fff;

    font-size: 15px;
    line-height: 1.25;

    font-weight: 700;
}

.panel-action {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: var(--cyan);

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}

.panel-action:hover {
    color: #fff;
}


/* =========================================================
   SITE LIST
========================================================= */

.site-list {
    width: 100%;
}

.site-row {
    min-height: 70px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        auto
        28px;

    align-items: center;

    gap: 12px;

    padding: 11px 18px;

    border-bottom: 1px solid rgba(255,255,255,.045);
}

.site-row:last-child {
    border-bottom: 0;
}

.site-main {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 10px;
}

.site-status {
    flex: 0 0 auto;
}

.site-information {
    min-width: 0;
}

.site-name {
    color: #edf7fb;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-customer {
    margin-top: 2px;

    color: var(--muted);

    font-size: 9px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-network {
    min-width: 100px;

    text-align: right;
}

.site-ip {
    color: #9eb6c1;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 9px;
}

.site-ip.empty {
    color: #536b78;
}

.site-status-label {
    min-width: 65px;

    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 23px;

    padding: 0 8px;

    border-radius: 6px;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .4px;
}

.badge-online {
    color: var(--green);
    background: rgba(39,211,145,.08);
    border: 1px solid rgba(39,211,145,.12);
}

.badge-offline {
    color: var(--red);
    background: rgba(242,107,107,.08);
    border: 1px solid rgba(242,107,107,.12);
}

.badge-unknown {
    color: var(--yellow);
    background: rgba(242,184,75,.08);
    border: 1px solid rgba(242,184,75,.12);
}

.site-arrow {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #6f8996;

    border-radius: 7px;
}

.site-arrow:hover {
    color: var(--cyan);
    background: rgba(22,191,211,.07);
}


/* =========================================================
   EMPTY
========================================================= */

.empty-state {
    padding: 45px 20px;

    text-align: center;
}

.empty-icon {
    color: #52717f;

    font-size: 25px;
}

.empty-title {
    margin-top: 10px;

    color: #d9e8ed;

    font-size: 13px;
    font-weight: 700;
}

.empty-description {
    max-width: 320px;

    margin: 5px auto 17px;

    color: var(--muted);

    font-size: 10px;
}

.empty-mini {
    padding: 20px;

    color: var(--muted);

    font-size: 10px;

    text-align: center;
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    min-height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 14px;

    border-radius: 8px;

    border: 1px solid transparent;

    font-size: 10px;
    font-weight: 700;
}

.button-primary {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--cyan-dark)
        );

    box-shadow:
        0 6px 16px rgba(22,191,211,.15);
}

.button-primary:hover {
    filter: brightness(1.08);
}


/* =========================================================
   TAILSCALE
========================================================= */

.tailscale-self {
    min-height: 70px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 13px 18px;

    border-bottom: 1px solid var(--border);
}

.tailscale-self-icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 32px;

    color: var(--green);

    background: rgba(39,211,145,.08);

    border-radius: 8px;

    font-size: 13px;
}

.tailscale-self-info {
    min-width: 0;

    flex: 1;
}

.tailscale-self-title {
    color: #dfeef3;

    font-size: 11px;
    font-weight: 700;
}

.tailscale-self-ip {
    margin-top: 2px;

    color: var(--muted);

    font-family: monospace;

    font-size: 9px;
}

.network-summary {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    padding: 15px 18px;

    border-bottom: 1px solid var(--border);
}

.network-summary-item {
    text-align: center;

    border-right: 1px solid var(--border);
}

.network-summary-item:last-child {
    border-right: 0;
}

.network-summary-value {
    color: #fff;

    font-size: 19px;
    font-weight: 750;
}

.network-summary-label {
    margin-top: 3px;

    color: var(--muted);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .6px;
}

.online-text {
    color: var(--green);
}

.offline-text {
    color: var(--red);
}

.device-list {
    padding: 4px 0;
}

.device-row {
    min-height: 55px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 8px 18px;

    border-bottom: 1px solid rgba(255,255,255,.035);
}

.device-row:last-child {
    border-bottom: 0;
}

.device-status {
    flex: 0 0 auto;
}

.device-information {
    min-width: 0;

    flex: 1;
}

.device-hostname {
    color: #dceaf0;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.device-ip {
    margin-top: 1px;

    color: var(--muted);

    font-family: monospace;

    font-size: 8px;
}

.device-os {
    color: #647e8b;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .5px;
}


/* =========================================================
   SYSTEM OVERVIEW
========================================================= */

.system-panel {
    margin-bottom: 18px;
}

.system-overview-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    padding: 4px 0;
}

.system-overview-item {
    min-width: 0;

    min-height: 75px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 13px 18px;

    border-right: 1px solid var(--border);
}

.system-overview-item:last-child {
    border-right: 0;
}

.system-overview-icon {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--cyan);

    background: rgba(22,191,211,.07);

    border-radius: 8px;

    font-size: 14px;
}

.system-overview-label {
    color: var(--muted);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .8px;
}

.system-overview-value {
    margin-top: 3px;

    color: #dcebf0;

    font-size: 9px;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   DASHBOARD FOOTER
========================================================= */

.dashboard-brand-footer {
    padding: 12px 0 4px;

    text-align: center;
}

.dashboard-brand-line {
    width: 80px;
    height: 1px;

    margin: 0 auto 10px;

    background: rgba(22,191,211,.25);
}

.dashboard-brand-name {
    color: #6f8996;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .8px;
}

.dashboard-brand-tagline {
    margin-top: 3px;

    color: #435c69;

    font-size: 8px;
}


/* =========================================================
   GENERAL FORM / PAGE COMPONENTS
   Untuk halaman AIS Sites / Relay / Tailscale /
   Logs / Settings agar tetap konsisten.
========================================================= */

.panel-body {
    padding: 18px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;

    margin-bottom: 6px;

    color: #a9bdc7;

    font-size: 10px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;

    min-height: 38px;

    padding: 8px 11px;

    color: #e8f4f8;

    background: var(--input);

    border: 1px solid var(--border-light);

    border-radius: 8px;

    outline: none;
}

textarea {
    min-height: 100px;

    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(22,191,211,.45);

    box-shadow:
        0 0 0 3px rgba(22,191,211,.06);
}

table {
    width: 100%;

    border-collapse: collapse;
}

th {
    padding: 11px 12px;

    color: #718895;

    background: rgba(255,255,255,.025);

    border-bottom: 1px solid var(--border);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .7px;

    text-align: left;
}

td {
    padding: 11px 12px;

    color: #c7d8df;

    border-bottom: 1px solid rgba(255,255,255,.045);

    font-size: 10px;
}


/* =========================================================
   MAIN FOOTER
========================================================= */

.main-footer {
    width: 100%;

    margin-top: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 15px 20px 20px;

    color: #526b78;

    font-size: 8px;

    letter-spacing: .4px;
}

.footer-divider {
    color: #304b59;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    :root {
        --sidebar: 258px;
        --topbar: 62px;
    }

    .sidebar {
        transform: translateX(-100%);

        transition:
            transform .22s ease;

        box-shadow:
            15px 0 40px rgba(0,0,0,.35);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;

        inset: 0;

        display: block;

        background: rgba(0,0,0,.58);

        opacity: 0;
        visibility: hidden;

        transition:
            opacity .2s ease,
            visibility .2s ease;

        z-index: 900;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-header {
        width: 100%;
        height: 62px;

        display: flex;
        align-items: center;

        gap: 12px;

        padding: 0 15px;

        position: sticky;
        top: 0;

        z-index: 800;

        background: rgba(6,19,31,.96);

        border-bottom: 1px solid var(--border);

        backdrop-filter: blur(14px);
    }

    .mobile-menu-button {
        width: 38px;
        height: 38px;

        flex: 0 0 38px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 4px;

        padding: 0;

        border: 1px solid var(--border-light);

        border-radius: 8px;

        background: rgba(255,255,255,.035);
    }

    .mobile-menu-button span {
        width: 17px;
        height: 2px;

        display: block;

        background: #b9cbd3;

        border-radius: 2px;
    }

    .mobile-brand {
        min-width: 0;
        flex: 1;
    }

    .mobile-brand-title {
        color: #fff;

        font-size: 10px;
        font-weight: 800;

        letter-spacing: .3px;
    }

    .mobile-brand-subtitle {
        margin-top: 2px;

        color: var(--cyan);

        font-size: 8px;
        font-weight: 800;

        letter-spacing: .5px;
    }

    .mobile-status-dot {
        width: 8px;
        height: 8px;

        flex: 0 0 8px;

        border-radius: 50%;

        background: var(--green);

        box-shadow:
            0 0 0 4px rgba(39,211,145,.08),
            0 0 10px rgba(39,211,145,.4);
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }

    .topbar {
        display: none;
    }

    .page-content {
        width: 100%;

        padding: 20px 16px 28px;
    }

    .dashboard-header {
        flex-direction: column;
    }

    .dashboard-header-status {
        width: 100%;
    }

    .statistics-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .system-overview-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .system-overview-item:nth-child(2) {
        border-right: 0;
    }

    .system-overview-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    .page-content {
        padding: 17px 12px 24px;
    }

    .dashboard-title {
        font-size: 21px;
    }

    .dashboard-description {
        font-size: 11px;
    }

    .statistics-grid {
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .stat-card {
        padding: 13px;
    }

    .stat-icon {
        width: 30px;
        height: 30px;
    }

    .stat-label {
        font-size: 7px;
    }

    .stat-value {
        font-size: 22px;
    }

    .dashboard-grid {
        gap: 12px;
    }

    .panel-header {
        min-height: 64px;

        padding: 13px 14px;
    }

    .panel-title {
        font-size: 14px;
    }

    .site-row {
        grid-template-columns:
            minmax(0, 1fr)
            auto
            26px;

        gap: 8px;

        padding: 10px 13px;
    }

    .site-network {
        display: none;
    }

    .site-status-label {
        min-width: auto;
    }

    .site-name {
        font-size: 11px;
    }

    .site-customer {
        font-size: 8px;
    }

    .system-overview-grid {
        grid-template-columns: 1fr;
    }

    .system-overview-item,
    .system-overview-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .system-overview-item:last-child {
        border-bottom: 0;
    }

    .network-summary {
        padding: 13px 10px;
    }

    .tailscale-self {
        padding: 12px 13px;
    }

    .device-row {
        padding: 8px 13px;
    }

    .device-os {
        display: none;
    }

    .main-footer {
        padding-bottom: 15px;
    }
}


/* =========================================================
   VERY SMALL
========================================================= */

@media (max-width: 380px) {

    .statistics-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-title {
        font-size: 20px;
    }

    .mobile-header {
        padding-left: 10px;
        padding-right: 10px;
    }

    .page-content {
        padding-left: 10px;
        padding-right: 10px;
    }
}
