/* ============================================================
   HEADER
   RAG + ABSA PEMERINTAH KABUPATEN WAJO
============================================================ */

:root {
    --header-height: 72px;
}


/* ============================================================
   HEADER UTAMA
============================================================ */

.site-header {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    width: 100%;
    height: var(--header-height);

    z-index: 1000;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    box-shadow:
        0 1px 10px
        rgba(
            15,
            23,
            42,
            0.035
        );
}


/* ============================================================
   HEADER CONTAINER
============================================================ */

.header-container {
    width: 100%;
    height: 100%;

    padding: 0 30px;

    box-sizing: border-box;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* ============================================================
   BRAND
============================================================ */

.header-brand {
    display: flex;

    align-items: center;

    min-width: 0;
}


.brand-link {
    display: flex;

    align-items: center;

    gap: 12px;

    color: inherit;

    text-decoration: none;
}


/* ============================================================
   LOGO
============================================================ */

.brand-logo {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #2563eb
        );

    font-size: 16px;

    box-shadow:
        0 7px 18px
        rgba(
            37,
            99,
            235,
            0.20
        );
}


/* ============================================================
   BRAND INFORMATION
============================================================ */

.brand-information {
    display: flex;

    flex-direction: column;

    min-width: 0;
}


.brand-name {
    color: #172033;

    font-size: 14px;

    font-weight: 800;

    line-height: 1.25;

    letter-spacing: -0.01em;
}


.brand-government {
    margin-top: 3px;

    color: #7c8aa0;

    font-size: 9px;

    font-weight: 600;

    line-height: 1.25;
}


/* ============================================================
   HEADER RIGHT
============================================================ */

.header-right {
    display: flex;

    align-items: center;

    gap: 14px;
}


/* ============================================================
   SYSTEM STATUS
============================================================ */

.system-status {
    min-height: 34px;

    padding: 0 13px;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    border: 1px solid #e2e8f0;

    border-radius: 999px;

    background: #ffffff;

    color: #64748b;

    font-size: 10px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        all 0.2s ease;
}


/* ============================================================
   STATUS INDICATOR
============================================================ */

.status-indicator {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #f59e0b;
}


/* CHECKING */

.system-status.checking {
    color: #b45309;

    border-color: #fde68a;

    background: #fffbeb;
}

.system-status.checking
.status-indicator {
    background: #f59e0b;

    box-shadow:
        0 0 0 4px
        rgba(
            245,
            158,
            11,
            0.10
        );
}


/* ONLINE */

.system-status.online {
    color: #15803d;

    border-color: #bbf7d0;

    background: #f0fdf4;
}

.system-status.online
.status-indicator {
    background: #22c55e;

    box-shadow:
        0 0 0 4px
        rgba(
            34,
            197,
            94,
            0.10
        );
}


/* OFFLINE */

.system-status.offline {
    color: #b91c1c;

    border-color: #fecaca;

    background: #fef2f2;
}

.system-status.offline
.status-indicator {
    background: #ef4444;

    box-shadow:
        0 0 0 4px
        rgba(
            239,
            68,
            68,
            0.10
        );
}


/* ============================================================
   MOBILE MENU BUTTON
============================================================ */

.header-menu-toggle {
    width: 38px;
    height: 38px;

    display: none;

    align-items: center;
    justify-content: center;

    border: 1px solid #e2e8f0;

    border-radius: 9px;

    color: #475569;

    background: #ffffff;

    cursor: pointer;

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.header-menu-toggle:hover {
    color: #2563eb;

    border-color: #bfdbfe;

    background: #eff6ff;
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 900px) {

    .header-container {
        padding: 0 16px;
    }


    .header-menu-toggle {
        display: flex;
    }


    .system-status {
        padding: 0 10px;

        font-size: 9px;
    }


    .brand-logo {
        width: 38px;
        height: 38px;

        flex-basis: 38px;

        font-size: 14px;
    }


    .brand-name {
        font-size: 12px;
    }


    .brand-government {
        font-size: 8px;
    }

}


@media (max-width: 520px) {

    .system-status {
        display: none;
    }

}