.navbar {

    display: flex;
    align-items: center;

    justify-content: space-between;

    padding: 18px 22px;

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

    background:
        linear-gradient(
            180deg,
            rgba(21,25,34,0.92) 0%,
            rgba(17, 20, 27, 0.96) 100%
        );

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 4px 24px rgba(0,0,0,0.12);

    position: sticky;

    top: 0;

    z-index: 50;

    overflow: hidden;

}
.navbar::before {

    content: '';

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.04),
            transparent
        );

    pointer-events: none;
}

/* =========================
   USER
========================= */

.navbar-user {

    font-weight: 600;

    color: var(--color-white);

}

/* =========================
   RIGHT
========================= */

.navbar-right {

    display: flex;

    align-items: center;

    gap: 20px;

}

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

.navbar-status {

    display: flex;
    align-items: center;

    gap: 10px;

    color: var(--color-text-muted);

    font-size: 14px;

}

/* =========================
   DOT
========================= */

.status-dot {

    width: 10px;

    height: 10px;

    border-radius: 50%;

    background: var(--color-success);

    box-shadow:
    0 0 10px rgba(34,197,94,0.7);

}

/* =========================
   MQTT CONNECTED
========================= */

.navbar-status.connected {

    color: var(--color-text-muted);

}

.navbar-status.connected .status-dot {

    background: var(--color-success) !important;

    box-shadow:
    0 0 10px rgba(34,197,94,0.7) !important;

}

/* =========================
   MQTT DISCONNECTED
========================= */

.navbar-status.disconnected {

    color: var(--color-text-muted);

}

.navbar-status.disconnected .status-dot {

    background: #EF4444;

    box-shadow:
    0 0 10px rgba(239,68,68,0.7);

}

/* =========================
   CLOCK
========================= */

#live-clock {

    color: var(--color-text-muted);

    font-size: 14px;

}
.navbar-status-text {

    display: inline-block;
}
@media screen and (max-width: 900px) {

    .navbar-status-text {

        display: none;
    }
}

.logout-link {

    width: 36px;

    height: 36px;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(255,255,255,0.04);

    color: var(--color-text-muted);

    transition: 0.2s ease;
}

.logout-link:hover {

    background:
        rgba(239,68,68,0.12);

    color: #EF4444;
}