* {
    box-sizing: border-box;
}

:root {
    --bg: #08111f;
    --surface: #0d1828;
    --surface-2: #111f33;
    --border: rgba(255,255,255,.08);
    --text: #f4f7fb;
    --muted: #8090a5;
    --accent: #20d6c7;
    --accent-soft: rgba(32,214,199,.12);
    --good: #35d07f;
    --warning: #ffb84d;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #07101c;
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 26px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #22e4d2, #1687ff);
    color: #001411;
    font-size: 22px;
    font-weight: 800;
}

.brand-name {
    font-weight: 800;
    letter-spacing: 2px;
}

.brand-sub {
    margin-top: 3px;
    font-size: 11px;
    color: var(--muted);
}

.nav-section {
    padding: 18px 12px 8px;
    font-size: 10px;
    letter-spacing: 1.6px;
    color: #52647b;
}

.nav-item {
    display: block;
    margin: 2px 0;
    padding: 11px 12px;
    border-radius: 9px;
    color: #93a3b7;
    text-decoration: none;
    font-size: 14px;
}

.nav-item:hover {
    color: white;
    background: rgba(255,255,255,.04);
}

.nav-item.active {
    color: #eafffc;
    background: var(--accent-soft);
    border: 1px solid rgba(32,214,199,.18);
}

.main {
    width: calc(100% - 250px);
    margin-left: 250px;
    padding: 30px 36px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar h1 {
    margin: 0;
    font-size: 24px;
}

.topbar p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.status-pill {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--surface);
    color: #a9b7c8;
    font-size: 12px;
}

#cloudDot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: var(--warning);
    margin-right: 7px;
}

#cloudDot.online {
    background: var(--good);
    box-shadow: 0 0 10px rgba(53,208,127,.7);
}

.hero {
    margin-top: 28px;
    padding: 34px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 90% 15%, rgba(32,214,199,.15), transparent 30%),
        linear-gradient(120deg, #101d30, #0b1626);
}

.eyebrow {
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero h2 {
    margin: 10px 0 8px;
    font-size: 32px;
}

.hero p {
    margin: 0;
    max-width: 580px;
    color: var(--muted);
    line-height: 1.7;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.card {
    min-height: 145px;
    padding: 18px;
    border-radius: 15px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.card span {
    display: block;
    color: #8797aa;
    font-size: 12px;
}

.card strong {
    display: block;
    margin-top: 24px;
    font-size: 22px;
}

.card small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

@media (max-width: 1000px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .sidebar {
        width: 76px;
        padding: 20px 10px;
    }

    .brand > div:last-child,
    .nav-section {
        display: none;
    }

    .nav-item {
        overflow: hidden;
        white-space: nowrap;
        font-size: 0;
    }

    .nav-item:first-letter {
        font-size: 15px;
    }

    .main {
        width: calc(100% - 76px);
        margin-left: 76px;
        padding: 20px 16px;
    }

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

    .hero h2 {
        font-size: 25px;
    }
}

/* AUTH USER MENU */

.top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 6px 8px 6px 6px;

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

    background: var(--surface);
}

.user-avatar {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background:
        linear-gradient(135deg, #20d6c7, #1687ff);

    color: #041411;

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

.user-info {
    min-width: 85px;
}

.user-info strong {
    display: block;

    color: var(--text);

    font-size: 11px;
}

.user-info span {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 9px;
    text-transform: capitalize;
}

.logout-button {
    border: 1px solid var(--border);

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

    color: #a9b7c8;

    border-radius: 8px;

    padding: 7px 9px;

    cursor: pointer;

    font-size: 10px;

    transition:
        background .2s ease,
        color .2s ease;
}

.logout-button:hover {
    background: rgba(255,255,255,.07);
    color: white;
}

@media (max-width: 760px) {

    .user-info {
        display: none;
    }

    .logout-button {
        padding: 7px;
    }

}

/* =========================================
   RAZ DASHBOARD — INFRASTRUCTURE PANELS
   ========================================= */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hero-badge {
    flex: 0 0 auto;
    min-width: 135px;
    padding: 13px 17px;

    border: 1px solid rgba(32,214,199,.22);
    border-radius: 13px;

    background: rgba(32,214,199,.07);

    color: #91a6b8;
    font-size: 10px;
    line-height: 1.5;
}

.hero-badge span {
    display: block;
    margin-bottom: 3px;

    color: var(--accent);
    font-weight: 800;
    letter-spacing: 1.2px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
    gap: 14px;

    margin-top: 18px;
}

.panel {
    padding: 21px;

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

    background: var(--surface);
}

.panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.panel-title h3 {
    margin: 0;

    color: var(--text);
    font-size: 14px;
}

.panel-title p {
    margin: 5px 0 0;

    color: var(--muted);
    font-size: 11px;
}

.badge {
    padding: 5px 9px;

    border: 1px solid rgba(53,208,127,.20);
    border-radius: 20px;

    background: rgba(53,208,127,.08);

    color: var(--good);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.network-flow {
    display: flex;
    align-items: center;

    margin-top: 28px;
}

.node {
    min-width: 128px;
    padding: 14px;

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

    background: #091523;
}

.node span {
    display: block;

    color: var(--muted);
    font-size: 9px;
}

.node strong {
    display: block;

    margin: 6px 0;

    color: var(--text);
    font-size: 12px;
}

.node small {
    display: block;

    color: #64768c;
    font-size: 8px;
    letter-spacing: .7px;
}

.node.online {
    border-color: rgba(53,208,127,.20);
}

.node.online small {
    color: var(--good);
}

.node.pending {
    border-color: rgba(255,184,77,.18);
}

.node.pending small {
    color: var(--warning);
}

.line {
    flex: 1;
    min-width: 30px;
    height: 1px;
}

.line.active {
    background:
        linear-gradient(
            90deg,
            rgba(53,208,127,.25),
            var(--good),
            rgba(53,208,127,.25)
        );
}

.line.pending {
    background:
        linear-gradient(
            90deg,
            rgba(75,93,115,.5),
            rgba(75,93,115,.16)
        );
}

.status-list {
    margin-top: 17px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 0;

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

    color: #9aacbf;
    font-size: 11px;
}

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

.status-row strong {
    font-size: 10px;
    font-weight: 700;
}

.good {
    color: var(--good);
}

.pending-text {
    color: var(--warning);
}

@media (max-width: 1000px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .hero-badge {
        display: none;
    }

    .network-flow {
        flex-direction: column;
        align-items: stretch;
    }

    .node {
        width: 100%;
    }

    .line {
        flex: none;

        width: 1px;
        height: 22px;
        min-width: 1px;

        margin-left: 28px;
    }
}
