/*====================================================
=                 RESET & ROOT
====================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --navy:#010169;
    --blue:#0D4ABC;
    --white:#FFFFFF;
    --red:#FF0000;
    --darkred:#9C0005;
    --text:#F5F5F5;
}

/*====================================================
=                     BODY
====================================================*/

body{
    font-family:'Poppins',sans-serif;
    background:#02052E;
    color:var(--white);
    overflow-x:hidden;
    min-height:100vh;
}

/*====================================================
=                  BACKGROUND
====================================================*/

.background{
    position:fixed;
    inset:0;
    z-index:-2;

    background:
        radial-gradient(circle at top right,
        rgba(255,0,0,.25),
        transparent 35%),

        radial-gradient(circle at bottom left,
        rgba(13,74,188,.45),
        transparent 45%),

        linear-gradient(
            135deg,
            #010169,
            #02104d,
            #010126
        );
}

.overlay{
    position:absolute;
    inset:0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.02) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.02) 1px,
            transparent 1px
        );

    background-size:45px 45px;

    animation:gridMove 20s linear infinite;
}

@keyframes gridMove{

    from{
        transform:translateY(0);
    }

    to{
        transform:translateY(45px);
    }

}

/*====================================================
=                  HEADER
====================================================*/

header{

    width:100%;

    padding:22px 8%;

    display:flex;
    justify-content:space-between;
    align-items:center;

}

.logo-area{

    display:flex;
    align-items:center;
    gap:15px;

}

.logo-area img{

    width:50px;
    height:auto;

    border-radius:0;
    background:none;
    padding:0;

    box-shadow:none;

}

.logo-area h2{

    font-size:28px;
    font-weight:800;
    letter-spacing:2px;

}

.logo-area p{

    font-size:14px;
    color:#d6d6d6;

}

/*====================================================
=                    HERO
====================================================*/

.hero{

    width:100%;
    min-height:80vh;

    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:60px;

    padding:40px 8%;

}

.hero-left{

    flex:1;

}

.hero-left h1{

    font-size:72px;
    font-weight:800;
    line-height:1.1;

    text-transform:uppercase;

    animation:heroGlow 3s infinite alternate;

}

.hero-left h1 span{

    color:#F7941D;

    text-shadow:
        0 0 15px rgba(247,148,29,.5),
        0 0 35px rgba(247,148,29,.4);

}

.hero-left p{

    width:520px;
    max-width:100%;

    margin-top:25px;

    color:#d6d6d6;

    font-size:18px;
    line-height:1.8;

}

@keyframes heroGlow{

    from{
        text-shadow:none;
    }

    to{
        text-shadow:
            0 0 8px rgba(255,255,255,.25),
            0 0 20px rgba(13,74,188,.55);
    }

}

/*====================================================
=                 LIGHT EFFECT
====================================================*/

body::before{

    content:"";

    position:fixed;
    inset:0;

    pointer-events:none;

    background:
        linear-gradient(
            120deg,
            transparent 48%,
            rgba(255,255,255,.25) 49%,
            rgba(255,255,255,.7) 50%,
            transparent 51%
        );

    opacity:0;

    animation:lightning 10s infinite;

}

@keyframes lightning{

    0%,88%,100%{
        opacity:0;
    }

    89%{
        opacity:.9;
    }

    90%{
        opacity:0;
    }

    91%{
        opacity:.8;
    }

    92%{
        opacity:0;
    }

}
/*====================================================
=                  LOGIN CARD
====================================================*/

.login-card{
    width:430px;
    padding:45px;

    background:rgba(255,255,255,.08);
    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.15);
    border-radius:25px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.35),
        0 0 30px rgba(13,74,188,.25);

    animation:cardFloat 4s ease-in-out infinite;
}

@keyframes cardFloat{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-10px);
    }

    100%{
        transform:translateY(0);
    }

}

/*====================================================
=                     SHIELD
====================================================*/

.shield{

    width:90px;
    height:90px;

    margin:auto;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--navy)
        );

    box-shadow:
        0 0 35px rgba(13,74,188,.55);

}

.shield i{

    font-size:42px;
    color:#fff;

}

.login-card h2{

    text-align:center;
    margin-top:20px;

    font-size:28px;

}

.login-card span{

    display:block;

    text-align:center;

    margin:10px 0 30px;

    color:#ddd;

    font-size:14px;

}

/*====================================================
=                     FORM
====================================================*/

.input-box{

    position:relative;

    margin-bottom:25px;

}

.input-box i{

    position:absolute;

    top:50%;
    left:18px;

    transform:translateY(-50%);

    color:#ffffffcc;

    font-size:18px;

}

.input-box input{

    width:100%;
    height:58px;

    padding:0 20px 0 55px;

    border:none;
    outline:none;

    border-radius:14px;

    background:
        rgba(255,255,255,.10);

    border:1px solid rgba(255,255,255,.15);

    color:#fff;

    font-size:16px;

    transition:.35s;

}

.input-box input::placeholder{

    color:#ddd;

}

.input-box input:focus{

    border:1px solid var(--red);

    box-shadow:
        0 0 12px rgba(255,0,0,.45),
        0 0 28px rgba(255,0,0,.25);

}

/*====================================================
=                    BUTTON
====================================================*/

button{

    width:100%;
    height:58px;

    border:none;
    border-radius:14px;

    cursor:pointer;

    overflow:hidden;

    position:relative;

    font-size:16px;
    font-weight:700;
    letter-spacing:1px;

    color:#fff;

    background:
        linear-gradient(
            90deg,
            var(--darkred),
            var(--red)
        );

    transition:.35s;

}

button i{

    margin-right:10px;

}

button::before{

    content:"";

    position:absolute;

    top:0;
    left:-120%;

    width:60%;
    height:100%;

    background:
        rgba(255,255,255,.25);

    transform:skewX(-30deg);

    transition:.6s;

}

button:hover::before{

    left:130%;

}

button:hover{

    transform:translateY(-3px);

    box-shadow:
        0 12px 30px rgba(255,0,0,.45),
        0 0 30px rgba(255,0,0,.35);

}

/*====================================================
=                     FOOTER
====================================================*/

footer{

    width:100%;

    padding:25px;

    text-align:center;

    color:#d8d8d8;

    font-size:14px;

    letter-spacing:1px;

}
/*====================================================
=                HALAMAN HASIL
====================================================*/

.hasil-card{
    position:relative;

    width:100%;
    max-width:560px;

    margin:40px auto;

    padding:35px;

    background:rgba(255,255,255,.08);
    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.15);
    border-radius:25px;

    overflow:hidden;

    box-shadow:
        0 20px 50px rgba(0,0,0,.35),
        0 0 40px rgba(13,74,188,.25);

    animation:fadeUp .8s ease;
}

.hasil-card::before{

    content:"";

    position:absolute;
    inset:0;

    border-radius:25px;

    padding:2px;

    background:
        linear-gradient(
            135deg,
            transparent,
            rgba(255,255,255,.15),
            transparent
        );

    pointer-events:none;

}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/*====================================================
=                    FOTO
====================================================*/


.hero-icon{
    width:140px !important;
    height:140px !important;
    min-width:140px;
    min-height:140px;
    max-width:140px;
    max-height:140px;

    border-radius:50%;
    overflow:hidden;

    display:flex;
    justify-content:center;
    align-items:center;

    margin:0 auto 25px;
        border:4px solid #ffffff;   /* Border putih */

    box-shadow:0 0 20px rgba(255,0,0,.35);
}
.hero-icon img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/*====================================================
=                    STATUS
====================================================*/

.status{

    text-align:center;

    margin-bottom:20px;

}

.status h1{

    font-size:56px;

    font-weight:800;

    color:#00ff7b;

    text-shadow:
        0 0 10px rgba(0,255,123,.6),
        0 0 30px rgba(0,255,123,.5);

    animation:pulse 2s infinite;

}

.status p{

    margin-top:8px;

    color:#eee;

    font-size:17px;

}

@keyframes pulse{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.05);
    }

    100%{
        transform:scale(1);
    }

}

/*====================================================
=                     BADGE
====================================================*/

.badge{

    display:inline-flex;

    align-items:center;
    justify-content:center;

    margin:22px auto;

    padding:10px 28px;

    border-radius:50px;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--navy)
        );

    color:#fff;

    font-size:15px;
    font-weight:700;

    box-shadow:
        0 0 22px rgba(13,74,188,.45);

}

/*====================================================
=                 BUTTON GROUP
====================================================*/

.button-group{

    display:flex;

    gap:18px;

    margin-top:28px;

}

.button-group button{

    flex:1;

}

.btn-print{

    background:
        linear-gradient(
            90deg,
            var(--blue),
            #1b65ff
        );

}

.btn-print:hover{

    box-shadow:
        0 10px 30px rgba(13,74,188,.45);

}

.btn-download{

    background:
        linear-gradient(
            90deg,
            var(--darkred),
            var(--red)
        );

}

.btn-download:hover{

    box-shadow:
        0 10px 30px rgba(255,0,0,.45);

}
/*====================================================
=                    TABLE
====================================================*/

.data-table{
    width:100%;
    max-width:460px;
    margin:25px auto 0;
    border-collapse:collapse;
}

.data-table tr{
    border-bottom:1px solid rgba(255,255,255,.12);
}

.data-table td{
    padding:12px 8px;
    font-size:16px;
    color:#fff;
    vertical-align:middle;
}

.data-table td:first-child{
    width:145px;
    font-weight:600;
    color:#e8e8e8;
    white-space:nowrap;
}

.data-table td:last-child{
    word-break:break-word;
}

.data-table a{
    color:#4ea5ff;
    text-decoration:none;
    transition:.3s;
}

.data-table a:hover{
    text-decoration:underline;
    color:#7cc3ff;
}

/*====================================================
=               PDF CONTAINER
====================================================*/

#pdf-content{
    width:100%;
    max-width:560px;
    margin:auto;
}

/*====================================================
=                   PRINT
====================================================*/

@media print{

#pdf-content{
    width:180mm;
    max-width:none;
    margin:0 auto;
    page-break-inside:avoid;
    break-inside:avoid;
}

}

/*====================================================
=              DESKTOP (>768px)
====================================================*/

@media (min-width:769px){

.hasil-card{
    max-width:560px;
}

.hero-icon{
    width:100%;
    height:100px;
}

.status h1{
    font-size:52px;
}

.status p{
    font-size:17px;
}

.badge{
    font-size:15px;
    padding:10px 30px;
}

.data-table{
    max-width:430px;
}

.data-table td{
    font-size:15px;
    padding:10px 6px;
}

.data-table td:first-child{
    width:135px;
}

.button-group{
    margin-top:25px;
}

.button-group button{
    height:50px;
}

}
/*====================================================
=                MOBILE (≤768px)
====================================================*/

@media (max-width:768px){

.hasil-card{
    width:92%;
    max-width:360px;
    padding:20px 16px;
    margin:20px auto;
}

/* Foto */
.hero-icon{
    width:70px;
    height:70px;
    margin-bottom:12px;
}

/* Status */
.hero-left h1{
    font-size:30px;
    line-height:1.15;
}

.hero-left h1 span{
    display:block;
}

.hero-left p{
    font-size:13px;
    line-height:1.5;
    margin-top:15px;
}

/* Badge */
.badge{
    width:auto;
    padding:8px 18px;
    font-size:12px;
    margin-top:12px;
}

/* Tabel */
.data-table{
    width:100%;
    margin-top:20px;
}

.data-table td{
    padding:9px 4px;
    font-size:12px;
    vertical-align:top;
}

.data-table td:first-child{
    width:95px;
    white-space:nowrap;
    font-weight:600;
}

/* Tombol */
.button-group{
    flex-direction:column;
    gap:10px;
    margin-top:22px;
}

.button-group button{
    width:100%;
    padding:12px;
    font-size:14px;
}

}
/*====================================================
=                 RESPONSIVE TABLET
====================================================*/

@media (max-width:1024px){

.hero{
    flex-direction:column;
    justify-content:center;
    text-align:center;
    gap:45px;
}

.hero-left h1{
    font-size:58px;
}

.hero-left p{
    margin:20px auto;
}

.login-card{
    width:100%;
    max-width:430px;
}

}

/*====================================================
=                 RESPONSIVE MOBILE
====================================================*/

@media (max-width:768px){

header{
    padding:18px 20px;
}

.logo-area{
    gap:10px;
}

.logo-area img{
    width:42px;
}

.logo-area h2{
    font-size:22px;
}

.logo-area p{
    font-size:12px;
}

.hero{
    padding:25px 20px;
    gap:35px;
}

.hero-left h1{
    font-size:42px;
    line-height:1.2;
}

.hero-left p{
    font-size:15px;
    line-height:1.6;
}

.login-card{
    padding:30px 22px;
}

.input-box input{
    height:52px;
}

button{
    height:52px;
}

}

/*====================================================
=                  SMALL MOBILE
====================================================*/

@media (max-width:480px){

.hasil-card{
    width:95%;
    padding:22px 16px;
}

.hero-icon{
    width:80px;
    height:80px;
}

.status h1{
    font-size:32px;
}

.status p{
    font-size:14px;
}

.badge{
    font-size:13px;
    padding:10px 14px;
}

.data-table td{
    font-size:12px;
}

.data-table td:first-child{
    width:95px;
}

.button-group{
    margin-top:20px;
}

button{
    font-size:14px;
}

footer{
    font-size:12px;
}

}

/*====================================================
=                    ANIMATION
====================================================*/

.fade{
    animation:fadeUp .8s ease;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/*====================================================
=                  SCROLLBAR
====================================================*/

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-track{
    background:#08103d;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(var(--blue),var(--red));
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:linear-gradient(#1b65ff,#ff2f2f);
}

/*====================================================
=                     FIXES
====================================================*/

/* Hilangkan garis bawah tabel terakhir */
.data-table tr:last-child{
    border-bottom:none;
}

/* Semua gambar responsif */
img{
    max-width:100%;
    display:block;
}

/* Link tidak keluar card */
a{
    overflow-wrap:anywhere;
}

/* Tombol rata tengah */
.button-group{
    justify-content:center;
    align-items:center;
}

/* Footer */
footer{
    text-align:center;
    padding:20px;
    color:#d9d9d9;
}

/*====================================================
=                  IMPORTANT
====================================================*/

/*
1. HAPUS semua CSS .data-table yang lama
2. HAPUS semua @media(max-width:768px) yang duplikat
3. HAPUS #pdf-content yang lama
4. Sisakan hanya CSS yang saya kirim
*/

@media (max-width:768px){

.hero-left{
    transform: scale(.67);
    transform-origin: top center;
}

}

@media (max-width:768px){

    .login-card{
        margin-top: -100px;
    }

}

@media (max-width:768px){
    .logo-area h2{
        font-size:18px;
    }
}

/* ==============================
   Kecilkan hasil-card di Mobile
================================= */
@media (max-width:768px){

    .hasil-card{
        width:92% !important;
        max-width:450px !important;
    }

}

/* ===== DESKTOP ONLY ===== */
@media (min-width: 769px){

    .info td:first-child{
        padding-left: 100px;
    }

}

/* ===== DESKTOP ONLY ===== */
@media (min-width: 769px){

    table td:first-child{
        padding-left: 50px !important;
    }

}