.btn-dan {
    font-size: 14px;
    border-radius: 5px;
    padding: 1px 10px 4px 10px;
    transition: 0.3s;
    display: inline-block;
    border: 1px solid #ef4444;
    background: #ef4444;
    color: #ffffff;
    margin-bottom: 2px;
}

.btn-dan:hover {
    background: #ef444482;
    color: #ffffff;
}

.subBtn {
    border: 1px solid #10b981;
    background: #10b981;
    color: #ffffff;
    width: 100%;
    /* Mengikuti lebar kontainer */
    display: block;
    text-align: center;
    /* size */
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.2rem;
}

.subBtn:hover {
    background: #10b9818b;
    color: #ffffff;
    transition: ease-out 0.5s;
}

.cartBtn {
    border: 1px solid #10b981;
    background: #10b981;
    color: inherit;
    border-radius: 5px;
    padding: 10px 40px;
    transition: .3s;
    font-size: 14px;
    display: inline-block;
    color: #ffffff;
}

.cartBtn:hover {
    border: 1px solid #10b981;
    background: #10b9818e;
    color: #ffffff;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 6, 0.859);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none;
    border: none;
    box-shadow: none
}

#offcanvasNavbar {
    width: 300px;
    transition: all ease .5s
}

#offcanvasNavbar .nav-link {
    padding-left: 15px;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-top: 4px;
    margin-bottom: 4px;
    border-left: 2px solid transparent;
    border-width: 5px;
}

#offcanvasNavbar .nav-link:hover,
#offcanvasNavbar .nav-link.active,
#offcanvasNavbar .nav-link:active {
    color: #84d19f !important;
    background-color: #84d19f33;
    border-color: #84d19f;
    transition: all ease .2s
}

.offcanvas-body {
    padding: 0 !important;
}

/* inst */

.copy-line {
    padding: 0.25rem 0;
    border-bottom: 1px solid #dee2e624;
}

.icon-box {
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.text-box {
    flex-grow: 1;
    padding-left: 0.5rem;
    word-break: break-all;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.badge-status {
    background-color: rgba(103, 103, 103, 0.129);
    /* Semi-transparent */
    color: inherit;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

#install form,
#accordionInstall {
    max-width: 700px;
}

#history {
    max-width: 695px;
    padding-top: 10px;
}

#orders {
    max-width: 695px;
}

.instHistory {
    max-width: 695px;
}

/* Optional: Add some custom styling for the modal */
.modal-backdrop.show {
    opacity: 0.8;
}

.bottom-nav .nav-link {
    color: #6c757d;
    /* warna default, abu-abu */
    text-align: center;
    font-size: 14px;
    padding: 15px 0 15px 0;
    transition: all 0.2s ease-in-out;
}

.bottom-nav .nav-link:hover {
    color: #84d19f !important;
    background-color: #84d19f33;
    transition: all ease .2s
}

.bottom-nav .nav-link.active {
    color: #84d19f !important;
    background-color: #84d19f33;
    border-bottom: #84d19f solid 1px;
    transition: all ease .2s
}

.bottom-nav .nav-item {
    flex: 1;
}

.topup-highlight {
    display: block;
    text-decoration: none;
    text-align: center;
    animation: animate 3s linear infinite;
    border: #3b82f6 1px solid;
    background-color: #3b82f6 !important;
    border-radius: 0.75rem;
    padding: 0.85rem 0.8rem;
    font-weight: 600;
    color: #ffffff !important;
}

.topup-highlight:hover,
.circle-topup:hover {
    background-color: #3b83f68c !important;
    border: #3b82f6 1px solid;
    transition: all ease .2s;
}

.circle-topup {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 75px;
    right: 25px;
    z-index: 10;

    /* Flexbox untuk center isi */
    display: flex;
    align-items: center;
    justify-content: center;

    animation: animate 3s linear infinite;
    border: #3b82f6 1px solid;
    background-color: #3b82f6;
    border-radius: 50%;
    /* untuk benar-benar bulat */
    font-weight: 500;
    font-size: 0.45rem;
    box-shadow: 0 0 0 0 rgba(74, 122, 255, 0.7);
    transition: box-shadow 0.3s ease;
    padding: 0;
    /* padding dihilangkan agar tidak mengganggu posisi ikon */
}

.dashtd {
    width: 200px;
}

.store-card {
    width: 400px;
}

.spad {
    padding-top: 15px;
}

@keyframes animate {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 122, 255, 0.7), 0 0 0 0 rgba(74, 158, 255, 0.7)
    }

    40% {
        box-shadow: 0 0 0 20px rgb(255, 109, 74, 0), 0 0 0 0 rgba(74, 140, 255, 0.7)
    }

    80% {
        box-shadow: 0 0 0 20px rgb(255, 109, 74, 0), 0 0 0 20px rgb(255, 109, 74, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgb(255, 109, 74, 0), 0 0 0 20px rgb(255, 109, 74, 0)
    }
}

/* button small */
.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.2rem;
}

.text-xs {
    font-size: 0.75rem !important;
}

.cloudsLanding {
    margin-top: 170px;
}

.histHeight {
    height: 450px;
}

.alert-text a {
    color: #3b82f6 !important;
}

.pcart img {
    width: 40%;
}

.pcart .card {
    max-width: 300px;
}

.pcart td {
    font-size: small;
}

#checkout {
    max-width: 300px;
}

#checkout button {
    font-size: small;
}

#checkout button svg {
    margin-bottom: 2px;
}

/* Hide the main content until the disclaimer is accepted */
@media (max-width: 768px) {
    h4 {
        font-size: medium;
    }

    .navbar-toggler-icon {
        width: 20px;
        height: 20px;
        background-size: contain;
    }

    .navbar-toggler {
        padding: 5px;
    }

    #offcanvasNavbar a,
    table td,
    .card-header,
    .alert {
        font-size: small !important;
    }

    .dashtd {
        width: 100px;
    }

    .accordion-button,
    .accordion-body {
        font-size: 12px !important;
    }

    .instHistory,
    #history,
    .pmain {
        padding-top: 0 !important;
    }

    .spad {
        padding-top: 10px;
    }

    .hd {
        margin-top: 10px;
    }

    .cloudsLanding {
        margin-top: 150px;
    }

    .cloudsLanding h5 {
        font-size: 1rem;
    }

    .histHeight {
        height: 410px;
    }

    .store-item:nth-child(odd) {
        padding-left: 10px;
        padding-right: 5px;
    }

    .store-item:nth-child(even) {
        padding-left: 5px;
        padding-right: 10px;
    }

    .cloudsBdNav .nav-link,
    .storeBdNav .nav-link,
    .admBdNav .nav-link,
    .insBdNav .nav-link {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .loading-overlay {
        background: rgba(0, 0, 0, 0.747);
    }

    #loadingText {
        font-size: 0.75rem;
    }

    .pcart h5 {
        font-size: small !important;
    }

    .pcart td {
        font-size: 0.65rem;
    }

    .pcart .card {
        max-width: 300px;
    }

    .pcart {
        padding-top: 5px !important;
    }

    .pcart .col {
        margin-top: 17px;
    }

    .circle-topup {
        width: 45px;
        height: 45px;
        bottom: 55px !important;
        right: 17px !important;
    }

    .text-mXs {
        font-size: 0.7rem !important;
    }

}