/* =========================================
   BAYAN TABANG - RESPONSIVE HEADER
   ========================================= */

:root {
    --bayan-blue: #0759a8;
    --bayan-blue-dark: #063d78;
    --bayan-cyan: #08aeea;
    --bayan-green: #39b54a;
    --bayan-green-light: #9ee33b;
    --bayan-navy: #062d55;
    --white: #ffffff;
}

/* Header */
.bayan-header {
    position: relative;
    width: 100%;
    min-height: 82px;
    overflow: hidden;

    background:
        linear-gradient(105deg,
            #063d78 0%,
            #0759a8 25%,
            #08aeea 55%,
            #39b54a 82%,
            #9ee33b 100%);

    box-shadow:
        0 3px 12px rgba(0, 0, 0, .18);

    z-index: 1000;
}


/* Decorative background */
.header-bg {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, .10) 0%,
            transparent 35%,
            rgba(255, 255, 255, .08) 65%,
            transparent 100%);

    pointer-events: none;
}


/* Decorative diagonal shape */
.header-bg::before {
    content: "";

    position: absolute;

    width: 45%;
    height: 160%;

    left: 25%;
    top: -30%;

    background: rgba(255, 255, 255, .08);

    transform: rotate(25deg);

    border-radius: 30px;
}


/* Second decorative shape */
.header-bg::after {
    content: "";

    position: absolute;

    width: 25%;
    height: 200%;

    left: 42%;
    top: -50%;

    background: rgba(255, 255, 255, .06);

    transform: rotate(25deg);

    border-radius: 40px;
}


/* Container */
.header-container {
    position: relative;

    max-width: 1400px;

    min-height: 82px;

    margin: auto;

    padding:
        10px 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


/* =========================================
   BRAND
   ========================================= */

.bayan-brand {
    display: flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;

    color: white;

    position: relative;

    z-index: 2;
}


/* Logo */
.bayan-brand img {
    width: 58px;
    height: 58px;

    object-fit: contain;

    flex-shrink: 0;

    filter:
        drop-shadow(0 3px 4px rgba(0, 0, 0, .25));
}


/* Brand text */
.brand-text {
    display: flex;

    flex-direction: column;

    line-height: 1.15;

    color: white;
}


/* Project name */
.brand-text strong {
    font-size: 18px;

    font-weight: 800;

    letter-spacing: .3px;

    text-shadow:
        0 2px 4px rgba(0, 0, 0, .25);
}


/* System name */
.brand-text span {
    margin-top: 4px;

    font-size: 13px;

    font-weight: 500;

    letter-spacing: .7px;

    opacity: .95;
}


/* =========================================
   RIGHT INFO
   ========================================= */

.header-info {
    display: flex;

    align-items: center;

    gap: 8px;

    color: white;

    font-size: 13px;

    font-weight: 600;

    padding: 8px 14px;

    border-radius: 30px;

    background: rgba(0, 0, 0, .14);

    backdrop-filter: blur(6px);

    border:
        1px solid rgba(255, 255, 255, .2);
}


/* Status */
.status-dot {
    width: 9px;
    height: 9px;

    background: #62ff72;

    border-radius: 50%;

    box-shadow:
        0 0 0 4px rgba(98, 255, 114, .18),
        0 0 10px rgba(98, 255, 114, .8);
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 992px) {

    .bayan-header {
        min-height: 72px;
    }

    .header-container {
        min-height: 72px;

        padding:
            8px 20px;
    }

    .bayan-brand img {
        width: 50px;
        height: 50px;
    }

    .brand-text strong {
        font-size: 16px;
    }

    .brand-text span {
        font-size: 11px;
    }

    .header-info {
        font-size: 12px;

        padding:
            7px 11px;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {

    .bayan-header {
        min-height: 64px;
    }

    .header-container {
        min-height: 64px;

        padding:
            7px 14px;
    }


    .bayan-brand {
        gap: 9px;
    }


    .bayan-brand img {
        width: 44px;
        height: 44px;
    }


    .brand-text strong {
        font-size: 14px;

        letter-spacing: 0;
    }


    .brand-text span {
        font-size: 9px;

        letter-spacing: .3px;
    }


    /* Hide status on mobile */
    .header-info {
        display: none;
    }
}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 480px) {

    .header-container {
        padding:
            6px 10px;
    }


    .bayan-brand img {
        width: 39px;
        height: 39px;
    }


    .brand-text strong {
        font-size: 12px;
    }


    .brand-text span {
        font-size: 8px;
    }
}


/* =========================================
   VERY SMALL SCREEN
   ========================================= */

@media (max-width: 360px) {

    .brand-text strong {
        font-size: 11px;
    }

    .brand-text span {
        display: none;
    }
}