/* =========================================
   STYLE.CSS - TRAVEL FAIR FRESHNEL (FINAL FIX)
   ========================================= */

/* --- 1. GLOBAL SETTINGS --- */
body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* --- 2. SETTING KARTU (CONTAINER) --- */
.card-custom, .result-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.1); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
    overflow: hidden; 
    z-index: 1;
    width: 100%;
}

/* --- 3. HEADER IMAGE (BARU: TIDAK AKAN GEPENG) --- */
.header-image {
    width: 100%;
    height: auto; /* Ini kuncinya: Tinggi menyesuaikan lebar otomatis */
    display: block;
    cursor: pointer; /* Menunjukkan bisa diklik */
    border-bottom: 5px solid #0d6efd;
    transition: opacity 0.3s;
}
.header-image:hover {
    opacity: 0.9; /* Efek saat mouse diarahkan */
}

/* --- 4. POPUP FULL SCREEN (MODAL) --- */
.modal-overlay {
    display: none; /* Sembunyi dulu */
    position: fixed;
    z-index: 9999; /* Paling depan */
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9); /* Latar hitam transparan */
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 20px;
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 95vh; /* Agar tidak melebihi tinggi layar */
    width: auto; height: auto;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    animation: zoom 0.3s;
}
.close-btn {
    position: absolute;
    top: 15px; right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}
@keyframes zoom {
    from {transform:scale(0)} to {transform:scale(1)}
}

/* --- 5. BACKGROUND BERSIH (PUTIH) --- */
/* Tidak ada watermark lagi sesuai request sebelumnya */

/* --- 6. TYPOGRAPHY --- */
.header-logo {
    font-weight: 900; color: #004494; 
    text-transform: uppercase; margin-bottom: 5px;
}
.card-body p.text-muted {
    font-weight: 700 !important; color: #555 !important;
    font-size: 1rem; opacity: 1 !important; margin-bottom: 20px;
}
.form-label, .fw-bold {
    color: #2c3e50; font-weight: 700 !important; margin-bottom: 5px;
}

/* --- 7. INPUT FORMULIR --- */
.form-control, .form-select {
    background-color: #f8f9fa !important; 
    border: 1px solid #ced4da;
    border-radius: 10px; padding: 12px;
    font-size: 1rem; color: #333; transition: all 0.3s;
}
.form-control:focus, .form-select:focus {
    border-color: #0d6efd; background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}
.form-check-label {
    font-weight: 600; margin-right: 15px; cursor: pointer;
}

/* --- 8. TOMBOL DAFTAR --- */
.btn-primary {
    background: rgba(255, 255, 255, 0.25); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(13, 110, 253, 0.3); border-top: 2px solid rgba(13, 110, 253, 0.5);
    border-radius: 50px; color: #000000 !important;
    font-weight: 900; letter-spacing: 1px; padding: 12px 0;
    font-size: 1.1rem; text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); transition: all 0.3s ease-in-out;
}
.btn-primary:hover {
    background: #0d6efd; color: #ffffff !important; border-color: #0d6efd;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3); transform: translateY(-2px);
}

/* --- 9. SCANNER STYLE (Modern) --- */
.icon-container { margin-bottom: 10px; animation: bounceIn 0.8s; }
.success-icon { width: 90px; height: 90px; fill: #198754; filter: drop-shadow(0 5px 10px rgba(25, 135, 84, 0.3)); }
.verified-text { color: #198754; font-weight: 900; font-size: 2.2rem; letter-spacing: 3px; margin-bottom: 5px; text-transform: uppercase; }
.info-box { background-color: #f8f9fa; border-radius: 12px; padding: 15px; margin-bottom: 15px; text-align: left; border-left: 5px solid #ccc; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.info-box.user { border-left-color: #0d6efd; }
.info-box.travel { border-left-color: #6610f2; }
.label-modern { font-size: 0.75rem; color: #888; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: block; }
.value-modern { font-size: 1.4rem; font-weight: 800; color: #212529; line-height: 1.2; word-wrap: break-word; }
.city-badge { background: linear-gradient(135deg, #ff9900, #ffc107); color: white; padding: 15px; border-radius: 15px; font-weight: 800; font-size: 1.1rem; box-shadow: 0 8px 20px rgba(255, 153, 0, 0.3); display: block; width: 100%; border: 2px solid white; margin-top: 10px; text-transform: uppercase; }
@keyframes bounceIn { 0% { transform: scale(0.3); opacity: 0; } 50% { transform: scale(1.05); opacity: 1; } 70% { transform: scale(0.9); } 100% { transform: scale(1); } }
.result-card { background: rgba(255, 255, 255, 0.98) !important; border-radius: 25px; padding-top: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.2) !important; }
#reader { width: 100%; background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* --- 10. PRINT --- */
.ticket-card { background-color: #ffffff; border-top: 5px solid #0d6efd; border-radius: 10px; position: relative; z-index: 1; }
@media print {
    body { background: white; }
    .header-image, .btn-primary { display: none; }
    .card-custom { box-shadow: none !important; border: 1px solid #ccc; }
}