/* Global Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html,
.bg-gray-50 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0A192F !important;
    /* Pastikan ini diterapkan */
    color: #333;
    overflow-x: visible;
    line-height: 1.6;
}

header {
    background-color: #0A192F !important;
    /* Mengganti warna latar belakang header */
    position: sticky;
    top: 0;
    z-index: 50;
}

a,
button {
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

/* Banner Slider */
.swiper.banner-slider {
    width: 100%;
    height: 100%;
    /* Ganti dengan 100% agar tinggi disesuaikan secara proporsional */
    border-radius: 16px;
    overflow: hidden;
    margin: 0 auto;
    background-color: #0A192F;
    /* Menambahkan latar belakang ke banner slider */
}

/* Gambar di dalam slider */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Memastikan gambar tetap terpotong dengan baik */
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* === Button Login & Register Modern === */
.button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 0 1rem;
}

.btn-login,
.btn-register {
    flex: 1 1 220px;
    /* Membuat tombol lebih besar dengan lebar yang lebih fleksibel */
    padding: 16px 30px;
    /* Padding yang lebih besar */
    font-size: 1.2rem;
    /* Ukuran font lebih besar */
    border: none;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    /* Ukuran minimum tombol */
}

.btn-login {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.btn-login:hover {
    background: linear-gradient(135deg, #1f5f8b, #2a7ac0);
}

.btn-register {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.btn-register:hover {
    background: linear-gradient(135deg, #1e8b4c, #28b463);
}

/* Styling untuk Slider Provider */
.swiper.provider-slider {
    padding-top: 30px;
    padding-bottom: 30px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

.swiper-slide:hover {
    transform: scale(1.05);
}

.swiper-pagination {
    position: absolute;
    bottom: 10px;
    text-align: center;
    z-index: 10;
}

/* === Game Card Layout Fix === */

.game-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background-color: #112240;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.game-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 0;
}

/* Kontainer konten game agar teks dan bar rtp tetap di bawah */
.game-item .p-4 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    text-align: center;
    padding: 1rem;
}

/* Judul Game */
.game-item h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.25rem;
    word-break: break-word;
    line-height: 1.4;
    min-height: 2.5rem;
    /* biar tinggi tetap rata meskipun judul panjang */
}

/* Label Sedang Ramai */
.game-item .hot-label {
    color: #ff4c4c;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Jumlah Pemain Aktif */
.game-item .active-players {
    font-size: 0.75rem;
    color: #b0b0b0;
    margin-bottom: 0.5rem;
}

/* RTP BAR Container */
.game-item .rtp-bar-container {
    position: relative;
    height: 20px;
    background-color: #374151;
    /* gray-700 */
    border-radius: 9999px;
    overflow: hidden;
}

/* RTP Bar Filled */
.game-item .rtp-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.4s ease-in-out;
}

/* RTP Text di Tengah Bar */
.game-item .rtp-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

.game-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.game-card-footer {
    margin-top: auto;
}

tr {
    transition: background-color 0.3s ease, opacity 0.3s ease;
}
.gradient-bg {
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        }

        .card-hover {
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }

        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        }

        .highlight-box {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border-left: 4px solid #3b82f6;
        }

        .provider-badge {
            transition: all 0.3s ease;
        }

        .provider-badge:hover {
            transform: scale(1.05);
        }

/* Transisi baris baru */
.fade-row {
    opacity: 0;
    transform: translateY(-8px);
    animation: fadeInSlide 0.4s ease-out forwards;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

tr:hover {
    background-color: #132542;
}

@media (max-width: 768px) {

    .btn-login,
    .btn-register {
        flex: 1 1 100%;
        /* Menyesuaikan tombol menjadi full-width di mobile */
        font-size: 1.1rem;
        /* Ukuran font sedikit lebih kecil untuk mobile */
        padding: 14px 24px;
        /* Mengurangi padding sedikit */
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
        color: white;
    }
}