/* style.css */

/* <!-- TAMPILAN TEMA UTAMA --> */
/* Import font */
@import url("https://fonts.googleapis.com/css2?family=Kanit&display=swap");

/* Umum */
body {
    font-family: "Kanit", sans-serif;
    color: white;
    background: linear-gradient(-45deg, #001139, #001139, #001139, #001139);
    background-size: 5000% 5000%;
    /*animation: gradient 5s ease infinite;*/
    height: 100vh;
}

a {
    color: white;
    text-decoration: underline;
}

.text-secondary {
    --bs-text-opacity: 1;
    color: white;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card {
    background: linear-gradient(180deg, #0453bb, #0453bb, #001139, #001139);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgb(191, 255, 255);
    color: #ffffff;
    --bs-card-spacer-y: 2rem;
    --bs-card-spacer-x: 2rem;
    --bs-card-border-radius: 16px;
}

.col-4.col-md-4.col-lg-3.col-xl-2 {
    width: 24.99%;
}

.card-body {
    flex: 1 1 auto;
    padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(180deg, #0453bb, #0453bb, #001139, #001139);
    border: 1px solid rgb(191, 255, 255);
}

.mb-0 {
    margin-bottom: 0 !important;
    color: white;
}

.text-center {
    text-align: center !important;
    color: #ffffff;
}

.p-3 {
    padding: 1rem !important;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    margin: 0 15px;
    padding: 20px;
    color: #ffffff;
}

/* Glassmorphism */
.glassmorphism {
    background: linear-gradient(270deg, #067dec, #067dc8, #067deb, #74dfff);
    background-size: 400% 400%;
    /* animation: gradient 5s ease infinite;*/
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(11.7px);
    border: 2px solid #aaa;
}

.text-gradient {
    font-family: 'Saira Condensed';
    background: -webkit-linear-gradient(#d9d9d9, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Backgrounds */
.bg-primary {
    --bs-bg-opacity: 1;
    background: linear-gradient(to top, rgb(182, 234, 255) 35%, rgb(57, 159, 255) 155%) !important;
}

.bg-dark {
    --bs-bg-opacity: 1;
    background-color: rgb(28 28 28) !important;
}

.bg-white {
    background: linear-gradient(to bottom, #067dec 0%, #033c64 50%, #74dfff 100%) !important;
}

/* Navbar & Menubar */
#navbar-top {
    background: linear-gradient(#001139, #001139, #001139);
}

.menubar.navbar.fixed-bottom.navbar-dark.bg-dark.p-0 {
    border-radius: 25px 25px 0px 0px;
    background: linear-gradient(#001139, #083c86, #001139);
    border-top: 3px solid #067dec;
}

#sidebarCollapse {
    background-image: linear-gradient(144deg, #067dec, #067dec 50%, #067dec);
    border-color: #309EEE;
}

/* Table */
.table {
    --bs-table-color: #ffffff;
    --bs-table-bg: #000000;
    --bs-table-border-color: #067dec;
    --bs-table-accent-bg: #dfbd1300;
    --bs-table-striped-color: #067dec;
    color: #ffffff;
    border-color: #d30000;
}

.table > :not(caption) > * > * {
    background-color: #000000;
}

.table-input .form-control {
    border: 0 !important;
    box-shadow: none;
    text-align: center;
    font-size: 0.8em;
}

/* Form */
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #067dec;
    background-color: #fff;
    background-clip: padding-box;
    border: 2px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Border Animation */
.border-primary {
    animation: borderPulse 1s infinite ease-out;
    border-color: #fad400 !important;
    fill: #fff;
}

@keyframes borderPulse {
    0% { box-shadow: 0px 0px 0px 5px rgba(255, 255, 255, 0.4), 0px 0px 0px 0px rgb(255, 255, 255); }
    100% { box-shadow: 0px 0px 0px 3px rgba(255, 117, 117, 0), 0px 0px 0px 10px rgba(255, 0, 0, 0); }
}

/* Buttons */
/* === Glass base (script pertama) === */
a.btn:not(.no-glass),
button.btn:not(.no-glass),
input.btn:not(.no-glass) {
    position: relative;
    border: none;
    border-radius: 12px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3),
        0 6px 0 rgba(0, 0, 0, 0.3),
        0 8px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.15s ease-in-out;
    top: 0;
    padding: 0.75rem 1.2rem;
    color: #ffffff;
    background-image: linear-gradient(to top, rgb(6 125 210), rgb(6 125 212));
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    overflow: hidden;
}

a.btn:not(.no-glass)::after,
button.btn:not(.no-glass)::after,
input.btn:not(.no-glass)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    z-index: 1;
}

a.btn:not(.no-glass) span,
button.btn:not(.no-glass) span,
input.btn:not(.no-glass) span {
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 2;
}

a.btn:not(.no-glass):hover,
button.btn:not(.no-glass):hover,
input.btn:not(.no-glass):hover {
    color: #fff;
}

a.btn:not(.no-glass):active,
button.btn:not(.no-glass):active,
input.btn:not(.no-glass):active {
    top: 4px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2),
        0 2px 0 rgba(0, 0, 0, 0.3),
        0 4px 6px rgba(0, 0, 0, 0.15);
}

/* === Overrides: terapkan warna & shadow dari script ke-2
   ke selector script pertama (tetap pakai a.btn / button.btn / input.btn) === */

/* Primary */
a.btn.btn-primary:not(.no-glass),
button.btn.btn-primary:not(.no-glass),
input.btn.btn-primary:not(.no-glass) {
    /* warna / gradient & animasi dari script ke-2 */
    background: linear-gradient(270deg,
        rgb(6 125 236) 0%,
        rgb(6 125 200) 21%,
        rgb(6 120 235) 33%,
        rgb(116 223 255) 44%,
        rgb(6 125 236) 60%,
        rgb(6 125 200) 73%,
        rgb(6 125 236) 85%,
        rgb(116 233 255) 100%);
    background-size: 400% 400%;
    animation: gradient 5s ease infinite;
    /* box-shadow dari script ke-2 (mengganti shadow dasar) */
    box-shadow: inset 0 0 5px 3px #0060f1,
                inset 0 2px 0 0 #fff,
                inset 0 0 0 2px #4fb0ff,
                3px 3px 3px 1px rgba(0, 0, 0, .2);
    color: white;
}

/* Secondary */
a.btn.btn-secondary:not(.no-glass),
button.btn.btn-secondary:not(.no-glass),
input.btn.btn-secondary:not(.no-glass) {
    background: linear-gradient(270deg,
        rgb(255, 255, 255) 0%,
        rgb(176, 233, 250) 21%,
        rgb(198, 247, 255) 33%,
        rgb(183, 220, 235) 44%,
        rgb(132, 202, 243) 60%,
        rgb(184, 250, 255) 73%,
        rgb(255, 255, 255) 85%,
        rgb(255, 255, 255) 100%);
    background-size: 400% 400%;
    animation: gradient 5s ease infinite;
    box-shadow: inset 0 0 5px 3px #0060f1,
                inset 0 2px 0 0 #fff,
                inset 0 0 0 2px #4fb0ff,
                3px 3px 3px 1px rgba(0, 0, 0, .2);
    color: #000;
}

/* Danger (mengikuti warna & shadow script ke-2) */
a.btn.btn-danger:not(.no-glass),
button.btn.btn-danger:not(.no-glass),
input.btn.btn-danger:not(.no-glass) {
    background: linear-gradient(270deg,
        rgb(255, 255, 255) 0%,
        rgb(176, 233, 250) 21%,
        rgb(198, 247, 255) 33%,
        rgb(183, 220, 235) 44%,
        rgb(132, 202, 243) 60%,
        rgb(184, 250, 255) 73%,
        rgb(255, 255, 255) 85%,
        rgb(255, 255, 255) 100%);
    background-size: 400% 400%;
    animation: gradient 5s ease infinite;
    box-shadow: inset 0 0 5px 3px #0060f1,
                inset 0 2px 0 0 #fff,
                inset 0 0 0 2px #4fb0ff,
                3px 3px 3px 1px rgba(0, 0, 0, .2);
    color: #330000;
    padding: 0.6em 0.2em;
}

/* Dark */
a.btn.btn-dark:not(.no-glass),
button.btn.btn-dark:not(.no-glass),
input.btn.btn-dark:not(.no-glass) {
    color: #fff;
    background-color: rgb(6 125 236);
    border-color: #309EEE;
    /* jika ingin shadow khusus bisa tambahkan seperti primary */
}

/* Animasi gradient (digunakan oleh semua varian yang memakai background-size/animation) */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn.no-glass {
    all: unset;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background-color: rgb(6 125 236);
    color: #fff;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
}
/* <!-- END TAMPILAN TEMA UTAMA --> */

/* <!-- BUAT NAMA DIBAWAH KOLOM GAME --> */
/* Ensure images maintain aspect ratio and fit within the container */
.col-4.col-md-4.col-lg-3.col-xl-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1px;
}

.col-4.col-md-4.col-lg-3.col-xl-2 a {
    display: block;
    width: 100%;
}

.col-4.col-md-4.col-lg-3.col-xl-2 img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensure image fits without distortion */
    display: block;
    border: 2px solid #aeaeb0;
}

img, svg {
    border-radius: 12px;
}

.menubar {
    background-image: linear-gradient(#001139, #083c86, #001139);
}

.image-label {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #f8f9fa;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* <!-- END BUAT NAMA DIBAWAH KOLOM GAME --> */

/* <!-- APK DOWNLOAD --> */
#container-apk {
    width: 100%;
    padding: 10px;
    font-family: Verdana, Arial, sans-serif;
    color: #fff;
    background: linear-gradient(to right, #1b1b1b 0%, #1b1b1b 50%, #1b1b1b 100%);
    transition: all 0.5s cubic-bezier(0, 1, 0.5, 1) 0s;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 60px; /* Consistent height to prevent layout shifts */
}

#container-apk .app_icon {
    width: 43px;
    margin: 0 0 0 10px;
}

#container-apk .app_icon img {
    display: block;
    max-width: 100%;
}

#container-apk .app_info {
    position: absolute;
    left: 65px;
    top: 10px;
}

#container-apk .app_title {
    font-size: 15px;
    font-weight: bold;
    color: #ffcc00;
}

#container-apk .app_slogan {
    font-size: 11px;
    color: #FFF;
    letter-spacing: 0px;
}

#container-apk .download_button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

#apk-button {
    font-size: 12px;
    padding: 6px 12px;
    color: #000;
    background: linear-gradient(to bottom, #00f5f6 0%, #0b669e 100%);
    border-radius: 20px;
    border: 2px solid #05f4fa;
    box-shadow: 0px 0px 3px #00d3ff;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    line-height: 1;
}

/* <!-- END APK DOWNLOAD --> */

/* <!-- SERVER SLOT --> */
.loader {
    animation-play-state: paused;
}

@keyframes l16 {
    0%, 100% {
        background-position: 0 0;
    }
    50% {
        background-position: 100% 0;
    }
}

/* Responsivitas untuk server selector */
@media (max-width: 768px) {
    #serverSelector {
        margin-bottom: 15px;
    }
}

/* Responsivitas untuk layar sangat kecil */
@media (max-width: 480px) {
    #serverSelector {
        margin-bottom: 10px;
    }
}

/* <!-- END SERVER SLOT --> */

/* <!-- TOGEL RESULT DI ATAS --> */
/* Styling untuk Pasaran Togel */
#row-togel {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 2.0);
    padding-left: calc(var(--bs-gutter-x) * 2.0);
    margin-right: auto;
    margin-left: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
    z-index: 5;
}

#row-togel h2.p-0.m-0.bg-white.text-black {
    font-size: 2em !important;
    line-height: 100% !important;
}

/* Responsivitas untuk layar kecil */
@media (max-width: 768px) {
    #row-togel {
        --bs-gutter-x: 1rem;
        margin-top: 15px;
        margin-bottom: 15px;
    }
}

/* Responsivitas untuk layar sangat kecil */
@media (max-width: 480px) {
    #row-togel {
        --bs-gutter-x: 0.5rem;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

/* <!-- END TOGEL RESULT DI ATAS --> */

/* <!-- MEMBER WITHDRAW --> */
#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -150px;
    background: linear-gradient(#171717, #000000, #171717); /* Warna hitam gradient*/
    color: #ffffff; /* Warna emas terang */
    text-align: center;
    border-radius: 10px;
    padding: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 5px rgb(0, 0, 0), 0 0 10px #ffcc33;
    position: fixed;
    z-index: 3; /* Paling depan */
    left: 50%;
    bottom: 60px;
    font-size: 14px;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.8s, fadeout 0.8s 4.5s;
    animation: fadein 0.8s, fadeout 0.8s 4.5s;
}

@-webkit-keyframes fadein {
    from { bottom: 0; opacity: 0; }
    to { bottom: 60px; opacity: 1; }
}

@keyframes fadein {
    from { bottom: 0; opacity: 0; }
    to { bottom: 60px; opacity: 1; }
}

@-webkit-keyframes fadeout {
    from { bottom: 60px; opacity: 1; }
    to { bottom: 0; opacity: 0; }
}

@keyframes fadeout {
    from { bottom: 60px; opacity: 1; }
    to { bottom: 0; opacity: 0; }
}

/* <!-- END MEMBER WITHDRAW --> */
    .movie-image {
        width: 100px;
    }
}

.brand-glow {
    border: 2px solid #aaa;
    border-radius: 12px;
    padding: 12px 24px;
    background: linear-gradient(180deg, #555 0%, #222 40%, #000 100%);
    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.3),
        inset 0 -6px 8px rgba(0, 0, 0, 0.7),
        0 10px 15px rgba(0, 0, 0, 0.7),
        0 4px 0 #111,
        0 0 20px rgb(252, 232, 119);
    position: relative;
    overflow: hidden;
    color: #fce877;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}