/* Main */
#mzf-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    height: auto;
    padding: 40px 0px;
    opacity: 0;
    animation: fadeInUp 2s forwards;
    animation-delay: 600ms;
    z-index: 5;
}

.mzf-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text);
    gap: 10px;
}

.mzf-button {
    background-color: var(--second-color);
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

.mzf-button:hover {
    transform: translateY(-5px);
    /* Efek hover halus */
}

/* Login */
.mzf-input {
    width: 200px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--third-color);
    outline: none;
    color: var(--text-color);
    font-size: 16px;
    padding: 10px 0;
    text-align: center;
    transition: all 0.3s ease;
    margin: 8px 0;
}

.mzf-input:focus {
    border-color: var(--text-color);
    outline: none;
}

.mzf-label {
    color: var(--text-color);
    font-weight: 300;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 5px 0px;
}

#mzf-login-attention {
    margin: 8px 0px;
}

#mzf-login-button {
    padding: 15px 50px;
}

#mzf-hadir-button {
    padding: 15px 40px;
}

#mzf-hai {
    font-size: calc(1.3rem + 1vw);
    font-weight: 800;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInUp 2s forwards;
    animation-delay: 600ms;

}

#mzf-selamat {
    font-size: calc(1rem + 1vw);
    font-weight: 400;
    letter-spacing: 4px;
    opacity: 0;
    animation: fadeInUp 2s forwards;
    animation-delay: 800ms;
}

/* Scan QR */
#mzf-scanqr-button {
    padding: 30px 30px;
    text-decoration: none;
}

#mzf-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

}

#mzf-scanner-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: 3px dashed var(--second-color);
    pointer-events: none;
    visibility: hidden;
    aspect-ratio: 1 / 1;
    width: auto;
    height: calc(50vh + 0.5vw);
}




/* Result Scan QR */
#mzf-result-scanqr {
    display: flex;
    position: relative;
    top: -10vh;
    margin: auto;
}

.mzf-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    background: var(--second-color);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    width: 70vw;
    max-width: 400px;
}

.mzf-row-card {
    display: flex;
    align-items: center;
    background: var(--second-color);
    font-weight: 600;
    font-size: 0.9em;
    color: var(--primary-color);
    line-height: 1.6;
    margin: 3px 0;
}

.mzf-row-card span:nth-of-type(1) {
    flex: 0.4;
    text-align: left;
}

.mzf-row-card span:nth-of-type(2) {
    flex: 0.05;
    text-align: left;
}

.mzf-row-card span:nth-of-type(3) {
    flex: 1;
    text-align: left;
}

.mzf-label-undian {
    font-size: clamp(1.2em, 5vw, 2em);
    font-weight: 900;
    text-align: center;
    font-style: italic;
    letter-spacing: 1px;
    color: var(--text-color);
}

#mzf-undian {
    font-size: clamp(3em, 5vw, 4em);
}

#mzf-checkin-button {
    padding: 15px 20px;
}



/* Total Scan QR */

#mzf-label-total {
    color: var(--primary-color);
    text-align: center;
    font-size: clamp(0.8em, 5vw, 1.2em);
    font-weight: 900;
}

.mzf-qr-result {
    color: var(--primary-color);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin: auto;
    padding: 5px 0px;
}

#mzf-qr-input {
    font-weight: 600;
    font-size: 3.5em;

}

#mzf-qr-garing {
    padding: 0px 3px;
    font-weight: 100;
    font-size: 3.2em;
}

#mzf-qr-total {
    font-weight: 200;
    font-size: 3em;
}

#mzf-qr-sisa {
    color: var(--primary-color);
    font-weight: 500;
    font-size: clamp(0.8em, 5vw, 1.2em);
    letter-spacing: 2px;
    margin: auto;
}

.mzf-qr-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* isi rata tengah vertikal */
    font-size: 0.9em;
    color: var(--primary-color);
    line-height: 1.3;
    padding: 4px 6px;
    background: var(--second-color);
}

/* Header tetap dan tebal */
.mzf-qr-info.header {
    font-weight: 900;
    font-size: 1em;
    position: sticky;
    /* biar bisa nempel di atas kalau di-scroll */
    top: 0;
    z-index: 2;
}

/* Set lebar kolom supaya lurus antar baris */
.mzf-qr-info>div {
    text-align: center;
    /* isi di tengah horizontal */
    display: flex;
    /* ini penting */
    align-items: center;
    /* tengah vertikal di dalam kolom */
    justify-content: center;
    padding: 2px 4px;
}

.mzf-qr-info>div:nth-of-type(1) {
    width: 46%;
    justify-content: flex-start;
    text-align: left;
}

.mzf-qr-info>div:nth-of-type(2) {
    width: 18%;
}

.mzf-qr-info>div:nth-of-type(3) {
    width: 18%;
}

.mzf-qr-info>div:nth-of-type(4) {
    width: 18%;
}



/* Popup Overlay */
#mzf-popup {
    visibility: hidden;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    margin: auto;
    color: var(--primary-color);
}

.mzf-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Box Popup */
.mzf-popup-box {
    margin: auto;
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    width: 300px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.mzf-popup-box h3 {
    margin: 0 0 10px;
}

.mzf-popup-box p {
    margin-bottom: 15px;
}

.mzf-pop-btn {
    background: var(--second-color);
    border: none;
    margin-top: 20px;
    font-size: 1em;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
}


/* Animasi Styles */
.fadeInUp {
    animation: fadeInUp 2s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

.fadeOut {
    animation: fadeOut 1s forwards;
}


@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}