/* style.css */

/* Hapus bagian body background dari sebelumnya */
/* body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('assets/img/golden-stars.gif') repeat center center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #f0f0f0;
} */

/* Gaya untuk Video Background */
#video-background {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    background-size: cover;
    filter: brightness(0.7); /* Agar teks lebih terbaca */
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #f0f0f0; /* Warna teks umum menjadi terang agar terbaca di background gelap */
    position: relative; /* Penting untuk z-index video */
}


.topbar {
    background: rgba(0, 0, 0, 0.4); /* Transparan hitam */
    color: #fff; /* Teks putih */
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.topbar .hamburger-menu {
    font-size: 28px; /* Ukuran lebih besar */
    cursor: pointer;
    color: #fff; /* Warna putih */
    border: none;
    background: transparent;
    padding: 5px 10px; /* Sedikit padding untuk area klik */
}
.topbar .welcome-text {
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700; /* Warna emas */
}
.topbar .saldo-display {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff; /* Saldo juga putih */
}
.topbar .btn-recharge {
    background: #FFD700; /* Tombol isi ulang emas */
    padding: 6px 12px;
    border-radius: 5px;
    color: #333; /* Teks gelap di tombol emas */
    text-decoration: none;
    font-weight: bold;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}
.topbar .btn-recharge:hover {
    background: #FFDD44;
    color: #111;
}

.main-content-wrapper {
    flex: 1;
    display: flex;
    padding-top: 0;
    z-index: 1; /* Pastikan konten di atas video background */
}
.sidebar {
    width: 250px;
    background: rgba(52, 58, 64, 0.95); /* Lebih gelap, sedikit transparan */
    color: white;
    padding: 15px;
    position: fixed;
    height: 100%;
    top: 0;
    left: -250px;
    transition: left 0.3s ease;
    z-index: 1050;
    box-shadow: 2px 0 10px rgba(0,0,0,0.7);
    overflow-y: auto;
}
.sidebar.show {
    left: 0;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin-top: 60px;
}
.sidebar ul li {
    padding: 12px 15px; /* Sedikit lebih besar */
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.sidebar ul li:hover {
    background-color: rgba(73, 80, 87, 0.8); /* Hover sidebar sedikit transparan */
    transform: translateX(5px);
}
.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    font-weight: 500;
}
.sidebar .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}
.content {
    flex: 1;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Transparan gelap untuk konten utama */
    transition: margin-left 0.3s ease;
    border-radius: 10px; /* Agar sudut lebih halus */
    margin: 20px; /* Memberi ruang dari tepi */
}
/* Overlay saat sidebar terbuka */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Lebih gelap */
    z-index: 1040;
    display: none;
}
.overlay.show {
    display: block;
}

.winner-marquee-container {
    background-color: rgba(0, 0, 0, 0.6); /* Transparan hitam */
    padding: 10px 0;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Sedikit border terang */
}
.winner-marquee {
    white-space: nowrap;
    overflow: hidden;
    font-size: 1.1em;
    color: #FFD700; /* Teks marquee emas */
    padding: 5px 0;
    animation: marquee 30s linear infinite; /* Animasi marquee */
}
/* Keyframes untuk animasi marquee */
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.winner-item {
    display: inline-block;
    margin-right: 40px; /* Jarak antar item lebih jauh */
    font-weight: bold;
    color: #FFD700; /* Teks item marquee emas */
}
.winner-item strong {
    color: #FFF; /* Warna putih untuk jenis iPhone */
}

/* Kelas baru untuk teks instruksi */
.instruction-text-bold-center {
    background-color: rgba(0, 0, 0, 0.6); /* Transparan hitam */
    border-left: 5px solid #FFD700; /* Garis emas */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #FFD700; /* Teks instruksi warna emas */
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.iphone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}
.iphone-card {
    background-color: rgba(0, 0, 0, 0.6); /* Transparan gelap */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); 
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #f0f0f0; /* Teks di card iPhone jadi terang */
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.iphone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.7);
}
.iphone-card img {
    width: 100%;
    max-width: 280px;
    height: 200px;
    object-fit: contain;
    border-radius: 5px;
    margin: 0 auto 10px auto;
    display: block;
    background-color: rgba(255, 255, 255, 0.1); /* Background transparan untuk gambar */
}
.iphone-card .iphone-type {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #FFD700; /* Teks type di card iPhone emas */
}
.iphone-card .iphone-price {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 5px;
    line-height: 1;

    /* Properti untuk Efek Mengkilap (Shiny) */
    color: transparent !important; /* Wajib transparan */
    background: linear-gradient(135deg, #FFD700 40%, #FFFFFF 50%, #FFD700 60%);
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 200% 100%;
    
    /* Menerapkan dua animasi sekaligus */
    animation: shine-animation 3s linear infinite, 
               pulse-price 1.5s infinite alternate;
}

/* Animasi untuk efek besar-kecil (jika belum ada) */
@keyframes pulse-price {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05); /* Membesar sedikit */
    }
}

/* Animasi untuk efek kilap (jika belum ada) */
@keyframes shine-animation {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}
.iphone-card .btn-bid {
    background: #00ffb7f3; /* Tombol bid hijau terang */
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}
.iphone-card .btn-bid:hover {
    background: #05ffa8ff;
    color: #111;
}
.iphone-card .stock-empty {
    background: #dc3545; /* Tetap merah */
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    pointer-events: none;
    opacity: 0.8;
}

.section {
    background-color: rgba(0, 0, 0, 0.6); /* Latar belakang section transparan gelap */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    display: none;
    color: #f0f0f0; /* Teks di section menjadi terang */
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.section h3 {
    color: #FFD700; /* Judul di section menjadi emas */
    margin-bottom: 15px;
}
.section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: rgba(0, 0, 0, 0.3); /* Latar belakang tabel transparan */
    border-radius: 8px;
    overflow: hidden;
}
.section table th, .section table td {
    background-color: rgba(0, 0, 0, 0.4); /* Latar belakang sel tabel transparan */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Border tabel transparan */
    padding: 10px;
    text-align: left;
    color: #f0f0f0; /* Teks di sel tabel menjadi terang */
}
.section table th {
    background-color: rgba(0, 0, 0, 0.5); /* Header tabel sedikit lebih gelap */
    font-weight: bold;
    color: #FFD700; /* Header tabel emas */
}
.section ul {
    list-style: none;
    padding: 0;
}
.section ul li {
    background-color: rgba(0, 0, 0, 0.4); /* Latar belakang list item transparan */
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Border list item transparan */
    border-radius: 5px;
    margin-bottom: 5px;
    color: #f0f0f0;
}
.section ul li:last-child {
    border-bottom: none;
}

/* Gaya untuk ikon mata password */
.password-toggle-icon {
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2); /* Agak transparan agar sesuai form */
    border-color: rgba(255, 255, 255, 0.3);
    border-radius: 0 .25rem .25rem 0; /* Hanya sudut kanan */
}
.password-toggle-icon i {
    font-size: 1.2em;
    color: #f0f0f0; /* Ikon mata terang */
}

/* Perbaikan untuk form di Info Anda */
#info .form-label {
    color: #f0f0f0; /* Label form di Info Anda juga terang */
}
#info .form-control {
    background-color: rgba(0, 0, 0, 0.5); /* Input form sedikit transparan gelap */
    color: #f0f0f0; /* Teks di input form terang */
    border: 1px solid rgba(255, 255, 255, 0.2);
}
#info .form-control:focus {
    background-color: rgba(0, 0, 0, 0.6);
    border-color: #FFD700; /* Border fokus emas */
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}
#info .btn-primary {
    background-color: #FFD700; /* Tombol simpan emas */
    border-color: #FFD700;
    color: #333;
    font-weight: bold;
}
#info .btn-primary:hover {
    background-color: #FFDD44;
    border-color: #FFDD44;
    color: #111;
}

/* Gaya untuk pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.pagination {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 5px 10px;
}
.pagination .page-item .page-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFD700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 2px;
}
.pagination .page-item .page-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFF;
}
.pagination .page-item.active .page-link {
    background-color: #FFD700;
    border-color: #FFD700;
    color: #333;
    font-weight: bold;
}


@media (max-width: 768px) {
    .topbar .welcome-text {
        font-size: 1em;
    }
    .topbar .saldo-display {
        font-size: 0.9em;
        gap: 5px;
    }
    .topbar .btn-recharge {
        padding: 4px 8px;
        font-size: 0.8em;
    }
    .content {
        padding: 15px;
        margin: 10px;
    }
    .sidebar {
        width: 200px;
        left: -200px;
    }
    .iphone-card img {
        width: 100%;
        max-width: 150px;
        height: 110px;
        object-fit: contain;
    }
    .winner-marquee {
        font-size: 0.9em;
    }
    .instruction-text-bold-center {
        font-size: 1em;
    }
}
/* Pastikan teks iPhone Type terlihat */
.iphone-card .iphone-type {
    color: #FFD700; /* Warna kuning emas untuk judul iPhone */
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 5px;
}


/* Jika ada teks "STOK KOSONG", pastikan warnanya kontras */
.iphone-card .stock-empty {
    color: red; /* Warna merah untuk stok kosong */
    font-weight: bold;
    margin-bottom: 15px;
}
/* Custom styles for auction info text (start time, end time, total bids) */
.auction-info-text {
    color: #FFD700; /* Warna emas/kuning, Anda bisa ganti ke warna lain */
    font-size: 0.85em; /* Sedikit lebih kecil agar tidak terlalu menonjol */
    /* Anda bisa tambahkan properti lain seperti: */
    /* font-weight: bold; */
    /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); */
}

/* === GENERAL & BACKGROUND === */
body {
    background: #000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    margin: 0;
    /* Properti Flexbox untuk "Sticky Footer" */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#video-background {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -100;
    filter: brightness(0.7);
}

/* Wrapper untuk konten utama agar bisa mendorong footer */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* === FORM CONTAINER === */
.login-register-wrapper {
    background: rgba(0, 0, 0, 0.75);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.5);
    width: 100%;
    max-width: 480px;
    backdrop-filter: blur(5px);
}

/* === SHINY TITLE === */
.shiny-title {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ccc 30%, #ffd700 50%, #ccc 70%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine-animation 4s linear infinite;
}

@keyframes shine-animation {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* === TAB BUTTONS === */
.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}
.tab-button {
    background: none; border: none; padding: 10px 20px;
    cursor: pointer; font-size: 1.1em; font-weight: bold;
    color: #ccc; border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.tab-button.active {
    color: #FFD700;
    border-bottom-color: #FFD700;
}
.tab-button:hover:not(.active) { color: #fff; }

/* === FORM STYLING === */
.form-section { display: none; }
.form-section.active { display: block; }
.form-label { font-weight: bold; color: #ffd700; }
.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #fff;
}
.form-control:focus {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: #FFD700;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
    color: #fff;
}
.form-control::placeholder { color: #999; }
.btn-primary {
    background: #FFD700; border-color: #FFD700; color: #000;
    font-weight: bold; width: 100%; padding: 10px;
}
.btn-primary:hover { background: #e6c200; border-color: #e6c200; }

/* === MESSAGES & HINTS === */
.error, .success {
    padding: 10px; border-radius: 5px; margin-bottom: 15px;
    text-align: center; font-weight: bold;
}
.error { background-color: rgba(255, 0, 0, 0.2); color: #ffcccc; }
.success { background-color: rgba(0, 255, 0, 0.2); color: #ccffcc; }
.small-text { color: #ffc107; } /* Warna hint jadi kuning agar tidak terlihat seperti error */

/* Password toggle icon */
.input-group-text {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.5);
}
.password-toggle-icon i { color: #FFD700; }

/* === FOOTER === */
footer {
    background: rgba(0, 0, 0, 0);
    color: #aaa;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    width: 100%;
}
footer strong {
    color: #FFD700;
}
/* style.css */

/* ... (semua kode CSS Anda yang sudah ada sebelumnya) ... */

.btn-bid:disabled {
    background-color: #6c757d;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.65;
}


/* ▼▼▼ PASTE KODE BARU ANDA DI SINI ▼▼▼ */

/* === EFEK TULISAN MENGKILAP UNTUK KARTU PRODUK === */
.iphone-card .iphone-type.shiny-text-card {
color: transparent;
background: linear-gradient(135deg, #FFD700 40%, #FFFFFF 50%, #FFD700 60%);
-webkit-background-clip: text;
background-clip: text;
background-size: 200% 100%;
animation: shine-animation 3s linear infinite;
}

/* Keyframes untuk animasi gerakan kilap (jika belum ada) */
@keyframes shine-animation {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}
/* === EFEK TOMBOL BID === */
.btn-bid.animate {
    animation: pulse 1s infinite alternate, shine-button 2s infinite alternate;
    position: relative; /* Untuk efek shine agar bekerja relatif terhadap tombol */
    overflow: hidden; /* Menyembunyikan elemen kilauan di luar batas tombol */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

@keyframes shine-button {
    0% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }
}

.btn-bid.animate::before {
    content: '';
    display: block;
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) rotate(-45deg);
    transition: transform 0.3s ease-out;
}

.btn-bid.animate:hover::before {
    transform: translate(50%, 50%) rotate(-45deg);
}
/* === EFEK LABEL BID BERGERAK & BERKILAU === */
.animated-shiny-label {
    /* Efek Mengkilap (Shiny) */
    color: transparent !important; /* Paksa transparan */
    background: linear-gradient(135deg, #FFD700 40%, #FFFFFF 50%, #FFD700 60%);
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 200% 100%;

    /* Terapkan dua animasi sekaligus */
    animation: shine-animation 3s linear infinite, 
               pulse-label 1.5s infinite alternate;
}

/* Animasi untuk efek besar-kecil (pulse) */
@keyframes pulse-label {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.03); /* Sedikit membesar */
    }
}
/* EFEK TEKS SILVER BERGERAK & BERKILAU */
.animated-shiny-silver {
    /* Properti Efek Mengkilap (Shiny) */
    color: transparent !important;
    background: linear-gradient(135deg, #35ff61 40%, #fff 50%, #35ff61 60%);
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 200% 100%;
    
    /* Menerapkan dua animasi sekaligus */
    animation: shine-animation 3s linear infinite, 
               pulse-text 1.5s infinite alternate;
}

/* Animasi untuk efek besar-kecil (pulse) */
@keyframes pulse-text {
    from { transform: scale(1); }
    to { transform: scale(1.03); }
}