.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background-color: #000000;
    font-family: 'Noto Sans Thai', sans-serif;
    background-image: radial-gradient(at top center, #9eff00 2%, #000000 40%);
}

.navbar-toggler {
    background-color: #9FD201;
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-collapse {
    display: flex;
    justify-content: flex-end;
} 

.btn-login {
    background-color: #9FD201;
    color: #000000;    
    font-weight: bold;
    padding: 8px 30px;
    font-size: 16px; 
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    margin: 6px;
    box-shadow: 0px 0px 8px 2px #F7FF00 inset;
    cursor: pointer;
}

.btn-login:hover {
    background-color: #8BB701;
    color: #fff;
    box-shadow: 0px 0px 8px 2px #F7FF00 inset;
}

@keyframes buttonGlow {
    0% {
        background-color: transparent;
        background-image: linear-gradient(180deg, #61CE7000 0%, #739E04 100%);
        box-shadow: none;
    }
    50% {
        background-color: #8BB701;
        background-image: none;
        box-shadow: 0px 0px 8px 2px #F7FF00 inset;
    }
    100% {
        background-color: transparent;
        background-image: linear-gradient(180deg, #61CE7000 0%, #739E04 100%);
        box-shadow: none;
    }
}

.btn-register {
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    fill: #FFFFFF;
    color: #FFFFFF;
    font-weight: bold;
    background-color: transparent;
    background-image: linear-gradient(180deg, #61CE7000 0%, #739E04 100%);
    border-style: solid;
    padding: 8px 30px;
    font-size: 16px;
    border-width: 1px 1px 1px 1px;
    border-color: #CFFB50;
    margin: 10px;
    border-radius: 6px;
    animation: buttonGlow 0.5s infinite;
}

.btn-register:hover {
    color: #fff;
}

.site-main {
    padding-top: 76px;
}

@media (max-width: 991.98px) { /* Bootstrap's lg breakpoint */
    .btn-login,
    .btn-register {
        display: none;
    }

    /* เพิ่ม CSS สำหรับปุ่มมือถือใหม่ */
    .mobile-buttons {
        display: flex !important;
        gap: 8px;
        align-items: center;
    }
    
    .btn-login-mobile,
    .btn-register-mobile {
        padding: 6px 10px;
        border: none;
        border-radius: 5px;
        color: white;
        text-decoration: none;
        font-size: 11px;
        font-weight: bold;
        white-space: nowrap;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    /* ลบสีแบบ hardcode และให้ใช้ inline style จาก PHP แทน */
    .btn-login-mobile {
        /* สีจะถูกกำหนดผ่าน inline style ใน Header.php */
    }

    .btn-login-mobile:hover {
        text-decoration: none;
        /* สีจะถูกกำหนดผ่าน inline style ใน Header.php */
    }

    .btn-register-mobile {
        /* สีจะถูกกำหนดผ่าน inline style ใน Header.php */
    }

    .btn-register-mobile:hover {
        color: #fff;
        text-decoration: none;
        /* สีจะถูกกำหนดผ่าน inline style ใน Header.php */
    }

    .navbar-collapse.show .btn-login,
    .navbar-collapse.show .btn-register {
        display: none; /* ซ่อนปุ่มเดิมแม้ในโหมด collapse */
    }

    .navbar-collapse.collapsing .btn-login,
    .navbar-collapse.collapsing .btn-register {        
        display: none;
    }
}

/* เพิ่ม CSS สำหรับเดสก์ท็อป */
@media (min-width: 992px) {
    .mobile-buttons {
        display: none !important;
    }
}