.i-dark {
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236C757D' class='bi bi-moon-stars-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z' /%3E%3Cpath d='M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z' /%3E%3C/svg%3E");
}

.i-light {
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ADB5BD' class='bi bi-brightness-high-fill d-none' viewBox='0 0 16 16'%3E%3Cpath d='M12 8a4 4 0 1 1-8 0 4 4 0 0 1 8 0zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z' /%3E%3C/svg%3E");
}

.i-cart {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ADB5BD" class="bi bi-cart4" viewBox="0 0 16 16"><path d="M0 2.5A.5.5 0 0 1 .5 2H2a.5.5 0 0 1 .485.379L2.89 4H14.5a.5.5 0 0 1 .485.621l-1.5 6A.5.5 0 0 1 13 11H4a.5.5 0 0 1-.485-.379L1.61 3H.5a.5.5 0 0 1-.5-.5M3.14 5l.5 2H5V5zM6 5v2h2V5zm3 0v2h2V5zm3 0v2h1.36l.5-2zm1.11 3H12v2h.61zM11 8H9v2h2zM8 8H6v2h2zM5 8H3.89l.5 2H5zm0 5a1 1 0 1 0 0 2 1 1 0 0 0 0-2m-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0m9-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2m-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0"/></svg>') no-repeat center;
    background-size: 12px 12px;
    width: 28px;
    height: 28px;
    padding: 0;
}

#base {
    padding-top: 70px;
}

/* Flash masuk dari kanan */
.flash-wrapper .alert.animated {
    opacity: 0;
    transform: translateX(100%);
    animation: slideInFromRight 0.4s forwards;
}

/* Keyframe masuk */
@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Flash keluar ke kanan */
.alert.fade-out-right {
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* side nav */
/* Container pembungkus sideNav + tombol */
.side-nav-container {
    position: fixed;
    bottom: 57px;
    /* Dekatkan ke bawah */
    left: 0;
    transform: none;
    /* Hilangkan translateY karena pakai bottom */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Tombol toggle di atas sideNav */
.side-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px 5px 5px 0;
    background-color: inherit;
    border: 1px solid #c1c2c490;
    border-radius: 0 10px 10px 0;
    transition: transform 0.3s ease;
    transform: translate(-80%, 0);
}

.side-nav:hover {
    transform: translate(0, 0);
    transition: all 0.3s ease;
}

/* Nav item */
.side-nav a {
    display: flex;
    align-items: center;
    color: #6c757d;
    text-decoration: none;
    opacity: 0.5;
    transition: all 0.3s ease;
    padding: 5px 5px;
    border-radius: 0 5px 5px 0;
}

.side-nav a svg {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    padding-left: 8px;
}

.side-nav a span {
    display: none;
    white-space: nowrap;
}

.side-nav:hover a span {
    display: inline;
}

.side-nav a:hover {
    opacity: 1;
    color: #84d19f !important;
    background-color: #84d19f33;
}

html,
body {
    font-family: "Nunito", sans-serif;
}

.center-wrapper {
    min-height: 60vh;
    /* Default tinggi */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

a {
    text-decoration: none;
    color: inherit;
}

.text-link {
    color: #3b82f6;
}

.text-auth {
    color: #f97316;
}

.text-main,
.text-inst {
    color: #10b981;
}

.text-store {
    color: #7B6651;
}

.text-clouds {
    color: #8716f9;
}

#toggleTheme {
    cursor: pointer;
}

.btn-pri {
    border: #3b82f6 1px solid;
    background-color: #3b82f6;
    color: #ffffff;
}

.btn-pri:hover {
    border: #2677fa 1px solid;
    background-color: #2563eb;
    color: #ffffff;
}

.btn-pri-out {
    border: #3b82f6 1px solid;
    background-color: transparent;
    color: #3b82f6;
}

.btn-pri-out:hover {
    border: #3b82f6 1px solid;
    background-color: #3b82f6;
    color: #ffffff;
}

.btn-sec-out {
    border: #6c757d 1px solid;
    background-color: transparent;
    color: inherit;
}

.btn-sec-out:hover {
    border: #6c757d 1px solid;
    background-color: #6c757d;
    color: #ffffff;
}

form label {
    font-size: small !important;
}

.blur-bg {
    background-color: rgba(255, 255, 255, 0.041);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.footer-blur {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.fixed-bottom {
    border-top: 1px solid #6c757d89;
}

span.logout-icon svg {
    width: 18px;
    height: 18px;
    margin-bottom: 1px;
}

/* landing */
span.icon svg {
    width: 20px;
    height: 20px;
    margin-bottom: 3px;
}

.mb4Landing {
    margin-bottom: 30px;
}

.hrLanding {
    margin-top: 40px;
    margin-bottom: 20px;
}

#landing_content .apps {
    margin-bottom: 20px;
}

/* auth */

.grecaptcha-badge {
    bottom: 50px !important;
}


#auth,
#auth_register {
    margin-top: 80px;
}

#auth_login {
    margin-top: 90px;
}

.landing {
    margin-top: 70px;
}

/* store */

.store-img {
    width: 70%;
}

.pcart {
    padding-top: 10px;
}

#store .card {
    max-width: 250px;
    height: 380px;
}

/* Mobile CSS */
@media (max-width: 768px) {

    #base {
        padding-top: 55px;
    }

    .navbar-brand {
        font-size: small;
    }

    .center-wrapper {
        min-height: 55vh;
        /* Lebih kecil untuk mobile */
    }

    .alert,
    p,
    #auth p.lead {
        font-size: small;
    }

    form label {
        font-size: small;
    }

    .btn {
        padding-top: 5px;
        padding-bottom: 5px;
        font-size: 12px;
    }

    .footer-blur {
        background-color: rgba(255, 255, 255, 0.041);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    /* landing */
    span.icon svg {
        width: 14px;
        height: 14px;
    }

    .mb4Landing {
        margin-bottom: 15px;
    }

    .hrLanding {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .landing {
        margin-top: 30px;
    }

    .landing h3 {
        font-size: 18px;
    }

    #landing_content .apps {
        margin-bottom: 0 !important;
    }

    #landing_content .appList h3 {
        font-size: medium;
    }

    #landing_content .appList p {
        font-size: 0.75rem;
    }

    #landing_content .appList .card-body {
        padding: 10px !important;
    }

    #about {
        margin-top: 15px;
    }

    #about .accordion-body,
    #terms .accordion-body,
    #install .accordion-body,
    #terms p {
        font-size: 0.75rem;
    }

    #about h2.accordion-header button,
    #terms h2.accordion-header button,
    #install h2.accordion-header button {
        font-size: 0.8rem;
    }

    #about h4,
    #about h5,
    #terms h1 {
        font-size: 1rem;
    }

    #about .accordion-button,
    #terms .accordion-button,
    #install .accordion-button,
    .instHistory .accordion-button {
        font-size: 14px;
        /* Ukuran teks */
        padding: 10px 15px;
        /* Padding di dalam tombol */
    }

    /* auth */

    #auth {
        margin-top: 50px;
    }

    #auth_login {
        margin-top: 100px;
    }

    #auth h1 {
        font-size: 24px;
    }

    /* clouds */
    .fs-6 {
        font-size: 0.8rem !important;
    }

    /* store */

    #store .card {
        max-width: 180px;
        height: 270px;
    }

    #store h5 {
        font-size: small;
    }

    /*  side nav */
    .side-nav {
        background-color: rgba(255, 255, 255, 0.041);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        padding: 5px 20px 5px 0;
        transform: translate(-75%, 0);
    }

    .side-nav:hover {
        padding: 5px 5px 5px 0;
        transform: translate(0, 0);
        transition: all 0.3s ease;
    }

    .side-nav a svg {
        width: 16px;
        height: 16px;
        margin-right: 4px;
        padding-left: 4px;
    }

    .side-nav a {
        font-size: 0.65rem;
    }

    .side-nav a svg {
        margin-bottom: 3px;
    }

    #toggleButton {
        background-color: rgba(255, 255, 255, 0.041);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        width: 35px;
    }

    .side-nav-container {
        bottom: 52px;
    }

    iframe {
        width: 90% !important;
    }
}