body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s;
    overflow: auto;
    z-index: 10000; /* Pastikan nilai cukup besar */
}

.popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.popup {
    margin: 15px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
    max-height: 80%;
    z-index: 10001; /* Pastikan nilai cukup besar */
}


@keyframes fadeIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-header {
    padding: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

.popup-header .close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 18px;
    cursor: pointer;
}

.popup-content {
    padding: 20px;
    overflow-y: auto;
    /* Make content scrollable */
    max-height: 80vh;
    /* Limit height of content */
}

.popup-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.popup-content .text {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .popup {
        width: 90%;
    }

    .popup-header {
        font-size: 16px;
    }

    .popup-content .text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .popup {
        width: 100%;
        border-radius: 10px;
    }

    .popup-header {
        font-size: 14px;
        padding: 8px;
    }

    .popup-content {
        padding: 15px;
    }

    .popup-content .text {
        font-size: 12px;
    }
}

/* Popup Chat*/

        .chat-icon {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.409);
            position: fixed;
            bottom: 70px;
            right: 20px;
            background-color: #2596be;
            color: white;
            border-radius: 50%;
            padding: 15px;
            font-size: 24px;
            cursor: pointer;
        }

        .popup-chat {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.409);
            position: fixed;
            bottom: 140px;
            left: 30px;
            right: 30px;
            background-color: white;
            color: #2596be;
            border: 1px solid #2596be;
            border-radius: 10px;
            padding: 10px 20px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            opacity: 0;
            transform: scale(0.8);
            transition: opacity 0.3s ease, transform 0.3s ease;
            display: none;
        }

        .popup-chat.show {
            opacity: 1;
            transform: scale(1);
            display: block;
        }
        
/* Kategori section */

.kategori-section {
    padding: 30px;
    background-color: #fff;
    margin-bottom: 10px;
}

.kategori-section h2 {
    font-size: 18px;
    margin: 0 0 5px 0;
}

.kategori-cards {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;

}

.kategori-card {
    border-radius: 15px;
    border: 2px solid #006400;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
    width: 180px;
    flex-shrink: 0;
    text-align: center;
    position: relative;
}

.kategori-card img {
    border-radius: 15px;
    width: 100%;
    height: 180px;
    display: block;
}


.kategori-card .details p {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

@media screen and (min-width: 768px) {
    .kategori-section h2 {
        font-size: 32px;
        margin: 0 0 5px 0;
    }
    .kategori-cards {
        justify-content: center; /* Menempatkan card di tengah */
        gap: 20px; /* Opsional: Memberikan jarak antar card */
    }
}


.container {
    max-width: 375px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.header .greeting {
    flex-grow: 1;
    margin-left: 10px;
}

.header .greeting h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.header .greeting p {
    margin: 0;
    font-size: 14px;
    color: #888;
}

.header .notification {
    font-size: 20px;
    color: #888;
}

.svg-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.svg-container img {
    width: 70%;
    height: auto;
}

.quick-send,
.transaction {
    padding: 20px;
    margin-top: -170px;
    margin-bottom: 60px;
}

.see-all {
    background-color: rgb(190, 228, 241);
    color: #2596be;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 10px;
    cursor: pointer;
    text-decoration: none;
}

.quick-send .header,
.transaction .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Card Program */
.judul-program {
    text-align: center;
    color: #2596be;
    margin-top: 20px;
}

.promo-section {
    padding: 20px;
    background-color: #fff;
    margin-bottom: 10px;
}

.promo-section h2 {
    font-size: 18px;
    margin: 0 0 5px 0;
}

.promo-section p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.promo-section .see-all {
    background-color: rgb(190, 228, 241);
    color: #2596be;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 10px;
    cursor: pointer;
    text-decoration: none;
}

.promo-cards {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    margin: 10px;
}

.promo-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
    width: 200px;
    flex-shrink: 0;
}

.promo-card img {
    width: 100%;
    height: 120px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

@media (min-width: 768px) {
    .promo-cards {
        justify-content: center;
        gap: 20px;
    }

    .promo-card {
        width: 350px;
    }

    .promo-card img {
        height: 250px;
    }
}

.promo-card .details {
    padding: 10px;
}

.promo-card .details .amount {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #2596be;
}

.badge {
    display: inline-block;
    background-color: rgb(193, 229, 243);
    color: #2596be;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 10px;
}

.promo-card .details h2 {
    font-size: 24px;
}

.promo-card .details p {
    margin: 3px 0;
    font-size: 12px;
}


.text-container {
    display: flex;
    justify-content: space-between;
    margin: 0;
}

.progress-bar {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar div {
    width: 5%;
    height: 10px;
    background-color: #2596be;
}

/* Responsif untuk layar kecil */
@media (min-width: 768px) {

    .badge {
        font-size: 10px;
        /* Ukuran font lebih kecil untuk layar kecil */
        padding: 4px 8px;
        /* Padding lebih kecil untuk menghemat ruang */
    }
}

/* Responsif untuk layar sangat kecil (ponsel kecil) */
@media (max-width: 480px) {

    .promo-card {
        width: 260px;
    }

    .promo-card img {
        height: 200px;
    }

    .badge {
        font-size: 12px;
        /* Ukuran font lebih kecil */
        padding: 3px 6px;
        /* Padding lebih kecil lagi */
    }
}


/* Riwayat */

.transaction .transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
}

.transaction .transaction-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.transaction .transaction-item .details {
    flex-grow: 1;
    margin-left: 10px;
}

.transaction .transaction-item .details h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.transaction .transaction-item .details p {
    margin: 0;
    font-size: 12px;
    color: #888;
}

.transaction .transaction-item .amount {
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

/* Maps Section */
.maps-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 100px;
}

.maps-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

@media (max-width: 768px) {
    .maps-container iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .maps-container iframe {
        height: 250px;
    }
}
/* Footer Style */
.footer {
    background-color: #2596be;
    color: white;
    padding: 20px;
    text-align: left    ;
    margin-top: 20px;
}

.footer h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer p {
    color: white;
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    margin-bottom: 50px;
}

/* bottom navbar */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2596be;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.bottom-navbar .nav-link {
    color: white;
    text-align: center;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bottom-navbar .nav-link:hover {
    color: yellow;
}

.bottom-navbar .nav-link i {
    font-size: 24px;
    margin-bottom: 5px;
}

.bottom-navbar .nav-text {
    display: block;
    font-size: 12px;
}

@media (max-width: 768px) {
    .bottom-navbar .nav-link i {
        font-size: 20px;
    }

    .bottom-navbar .nav-text {
        font-size: 10px;
    }
}

/* Media queries for larger screens */
@media (min-width: 768px) {
    .container {
        max-width: 100%;
    }

    .balance h1 {
        font-size: 48px;
    }

    .balance .actions button {
        padding: 15px 30px;
        font-size: 18px;
    }
}

/* Media queries for small screens */
@media (max-width: 375px) {
    .balance h1 {
        font-size: 28px;
    }

    .balance .actions button {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* Loading animation */
#loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ddd;
    border-top: 5px solid #2596be;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.judul-section {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #2596be;
    margin: 20px 0;
    border-bottom: 2px solid #2596be;
    padding-bottom: 10px;
}

