body {
    background: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    background-size: 220vh 220vh;
    animation: gradientShift 15s ease infinite;
    font-family: 'Poppins', sans-serif;
    object-fit: fill;
    position: fixed;
}
#tbAbsensi {
    display: none;
    width: 100%;
    overflow-x: auto;
    top: 0;

}
.tg {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    align-items: center;
    justify-content: center;
    display: none;


}

.tg td {
    color: rgb(255, 255, 255);
    padding: 19%;
    width: 9%;
    border-color: rgb(255, 255, 255);
    border-style: solid;
    border-width: 1px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    overflow: hidden;
    padding: 10px 5px;
    word-break: normal;





   
}

.tg th {
    color: white;
    padding: 9%;
    border-color: rgb(255, 255, 255);
    border-style: solid;
    border-width: 1px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: normal;
    overflow: hidden;
    padding: 15px 5px;
    word-break: normal;
   

}

.tg-0lax {
    text-align: center;
    padding: 5%;



}

hr {
    color: white;
}

/* CORAUSEL */
.carousel {
    display: block;
    position: relative;
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.3);
    max-width: 100%;
    height: 5%;
    margin: 0 auto;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.slides {
    display: flex;
    width: 100%;
    /* 3 slides, masing-masing 100% */
    overflow-x: auto;
    /* Izinkan scroll horizontal */
    scroll-snap-type: x mandatory;
    /* Snap ke slide saat geser */
    scroll-behavior: smooth;
    /* Transisi halus */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling di iOS */
    align-items: center;
    justify-content: center;
}

.slide {
    flex: 0 0 100%;
    /* Setiap slide lebar 100% */
    position: relative;
    text-align: center;
    aspect-ratio: 4 / 3;
    /* Tetap rasio 16:9 */
    overflow: hidden;
    scroll-snap-align: start;
    /* Snap ke awal slide */
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center;
    align-items: center;
    justify-content: center;
}

.slide h2 {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

/* Navigasi dots */
.navigation {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.dot {
    width: 15px;
    height: 15px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Kontrol dots dengan :checked (tetap berfungsi) */
#slide1:checked~.slides {
    scroll-snap-type: x mandatory;
    /* Tetap snap */
}

#slide2:checked~.slides {
    /* Tidak ada transform, dots manual */
}

#slide3:checked~.slides {
    /* Dots hanya untuk navigasi manual */
}

/* Efek simulasi swipe untuk desktop (hover drag) */
.slides:hover {
    cursor: grab;
}

.slides:active {
    cursor: grabbing;
}

/* Untuk touch: Pastikan geser halus tanpa scrollbar */
.slides::-webkit-scrollbar {
    display: none;
    /* Sembunyikan scrollbar di webkit */
}

/*  */

.parent-menu {
    display: flex;
    gap: 7px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5vh;
    font-weight: 500;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    font-variant-ligatures: normal;
    font-variant-caps: normal;
    letter-spacing: normal;
    text-align: center;
    color: rgb(0, 0, 0);
    right: 0;
    font-size: 20px;
    padding: 5px 20px;
    bottom: 0;
    z-index: 10;
    width: 100%;
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.3);
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: fixed;
    right: 0;
    background-color: #fffafa;
}

.parent-menu-atas {
    display: flex;
    gap: 7px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5vh;
    font-weight: 1000;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    font-variant-ligatures: normal;
    font-variant-caps: normal;
    letter-spacing: normal;
    text-align: center;
    color: white;
    right: 0;
    font-size: 20px;
    padding: 5px 20px;
    top: 0;
    z-index: 10;
    width: 100%;
    background: linear-gradient(135deg, #031e43, #031e43);
    position: fixed;
    z-index: 2;
    box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.223);
    right: 0;
}





/* Logo di sebelah kiri */
.logo {
    font-weight: bold;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    max-width: 10%;
    border-radius: 50;

    left: 1;
    position: relative;
    align-items: flex-start;
    justify-content: flex-start;
}

.menu-atas {
    position: relative;
    color: rgb(255, 255, 255);
    right: 0;
}

.menu {
    cursor: pointer;
    transition: color 0.3s;
    background-color: #ffffff2d;
    padding: 10px 20px;
    box-shadow: #f9fcff 1px 1px 1px 0.5px;
    align-items: center;
    justify-content: center;
    position: relative;


}
.menu:hover {
    cursor: pointer;
    transition: color 0.3s;
    font-size: large;
    padding: 10px 20px;
    align-items: center;
    justify-content: center;
    position: relative;


}

.menu-qr {
    cursor: pointer;
    transition: color 0.3s;
    padding: 6px 15px;
    box-shadow: #f9fcff 1px 1px 1px 0.5px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #031e43, #031e43);
    border-radius: 30%;
    display: inline-block;
    font-size: 4vh;
    color: white;
    z-index: 4;
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.3);

}



/* Responsif untuk desktop (sembunyikan hamburger jika lebar > 768px) */
@media (min-width: 768px) {
#tbAbsensi{
    margin: auto;
    align-items: center;
    justify-content: center;
    width: 50%;
}

.tg {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin: auto;
    display: none;


}

.tg td {
    color: rgb(255, 255, 255);
    padding: 19%;
    width: 9%;
    border-color: rgb(255, 255, 255);
    border-style: solid;
    border-width: 1px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    overflow: hidden;
    padding: 10px 5px;
    word-break: normal;





   
}

.tg th {
    color: white;
    padding: 9%;
    border-color: rgb(255, 255, 255);
    border-style: solid;
    border-width: 1px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: normal;
    overflow: hidden;
    padding: 15px 5px;
    word-break: normal;
   

}

.tg-0lax {
    text-align: center;
    padding: 5%;



}
    .logo {
        max-width: 5%;
        display: none;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        -ms-border-radius: 50%;
        -o-border-radius: 50%;
        border-radius: 50%;
    }


    .carousel {
        position: relative;
        align-items: center;
        justify-content: center;
        max-width: 50%;
        height: 5%;
        border-radius: 10%;

        
        overflow: hidden;
        /* Sembunyikan scrollbar jika perlu */
    }

    .slides {
        margin-top: 5%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: auto;
        width: 100%;
        /* 3 slides, masing-masing 100% */
        overflow-x: auto;
        /* Izinkan scroll horizontal */
        scroll-snap-type: x mandatory;
        /* Snap ke slide saat geser */
        scroll-behavior: smooth;
        /* Transisi halus */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling di iOS */
    }

    .slide {
        flex: 0 0 100%;
        /* Setiap slide lebar 100% */
        position: relative;
        text-align: center;
        align-items: center;
        margin: auto;
        width: 100%;
        justify-content: center;
        aspect-ratio: 16 / 9;
        /* Tetap rasio 16:9 */
        overflow: hidden;
        scroll-snap-align: start;
        /* Snap ke awal slide */
    }

    .slide img {
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 158%;
        object-fit: cover;

        object-position: center;
    }
}



#container-getApi {
    color: white;

}

.dropdownDaftar {
    margin-bottom: 2%;

}

.container-ig {
    position: relative;
}

.ig-content {
    display: flex;
    max-width: 20%;
    max-height: 50%;
    object-fit: fill;
}

.loader {
    margin-left: 2%;
    position: absolute;
    width: 4vh;
    height: 4vh;
    border: 5px solid #FFF;
    border-bottom-color: #FF3D00;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader-data {
    margin-left: 2%;
    position: absolute;
    width: 4vh;
    height: 4vh;
    border: 5px solid #FFF;
    border-bottom-color: #FF3D00;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


p {
    font-size: small;
}

.bg {
    background: linear-gradient(#e5870c, #945b06, #150f96, #aa6f11, #e5870c);
    position: fixed;
    padding: 0;
    z-index: 0;
    height: 400%;
    width: 400%;
    opacity: 60%;
    animation: gradientShift 15s ease infinite;

    font-family: 'Poppins', sans-serif;


}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
}

.form-card {
    transition: all .5s ease;
    transform: translateY(0);
    animation: slideUp 0.8s ease-out;
    padding: auto;
    width: 100%;
    backdrop-filter: blur(5px);
    background-color: #747b8435;

}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.basket-icon {

    height: 60px;
    fill: #F97316;
    display: flex;
    gap: 50%;
    margin-left: 2%;
    animation: slideUp 0.5s ease-out;


}

.input-icon::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

#position.input-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233B82F6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

#nim.input-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233B82F6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z'/%3E%3C/svg%3E");
}

#nama.input-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233B82F6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E");
}

#telepon.input-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233B82F6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E");
}

input.input-icon,
select.input-icon {
    padding-left: 45px;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.input-error {
    border-color: #dc2626 !important;
    background-color: #fef2f2;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

select,
input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

select:focus,
input:focus {
    outline: none;
    border-color: #F97316;
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25);
    transform: translateY(-1px);
}

.submit-btn {
    background: linear-gradient(135deg, #031e43, #031e43);
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(249, 115, 22, 0.4);
    background: linear-gradient(135deg, #031e43, #F97316);
}

.hidden {
    display: none;
}

.footer-text {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
}

#announ {
    display: none;
}