/* Ajax Loading Spinner */
    .loading {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .spinner {
        background-image: url('../image/apps/favicon.ico');
        background-size: cover;
        background-position: center;
        border: 4px solid #f3f3f3;
        border-top: 4px solid #3498db;
        border-radius: 50%;
        width: 100px;
        height: 100px;
        animation: spin 2s linear infinite;
    }
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }



    

/* Carousel Home */
.carousel-inner {
    color: white;
    height: 100%; /* Atur tinggi tetap */
}

.carousel-inner img {
    object-fit: contain; /* Menjaga proporsi gambar */
}

.carousel-item {
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0);
    border-radius: 50%;
}
.btn-welcome {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}


/* Welcome Section */
.welcome-section {
    padding-top: 110px;
    /*background: url('../image/Home.jpg') no-repeat center center;*/
    background-size: cover;
    position: relative;
    color: white;
    min-height: 100vh;
}
.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.welcome-section .container {
    position: relative;
}
.fade-in {
    opacity: 0;
    animation: fadeInEffect 2s forwards;
}
@keyframes fadeInEffect {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.welcome-section h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}
.welcome-section p {
    font-size: 1.25rem;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}
.btn-welcome {
    background-color: #4CAF50;
    color: white;
    border-radius: 30px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s;
}
.btn-welcome:hover {
    background-color: #45a049;
    transform: scale(1.05);
}





/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease-in-out;
}
.whatsapp-float img {
    width: 35px;
    height: 35px;
}
@keyframes bounce {
    0%, 100% { transform: translateY(200); }
    50% { transform: translateY(-100px); }
}
.whatsapp-float.scrolled {
    animation: bounce 0.5s ease-in-out;
}










/* Timeline cek dokumen */
.timeline {
    position: relative;
    margin: 50px 0;
    padding: 0;
    list-style: none;
}
.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #007bff;
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
}
.timeline-item .timeline-content {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
}
.timeline-item .timeline-icon {
    font-size: 25px;
    margin-right: 20px;
    color: #007bff;
}
.timeline-item .timeline-text {
    flex: 1;
}
.timeline-item .timeline-title {
    font-weight: 600;
    font-size: 1.1rem;
}
.timeline-item .timeline-date {
    color: #6c757d;
}
.timeline-item .checkmark {
    color: green;
    font-size: 1.5rem;
    margin-left: 10px;
}
.disabled {
    opacity: 0.5;
}




/* General Layout Adjustments */

html, body {

    padding-bottom: 60px;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;

    
}
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    
}


.card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Pastikan semua kartu memiliki tinggi penuh */
}

.card img {
    flex-shrink: 0; /* Pastikan gambar tidak mengecil */
}

.card .bg-light {
    flex-grow: 1; /* Biarkan bagian ini mengisi sisa tinggi kartu */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Card Title */
.card-title i {
    font-size: 0.8rem;
    margin-left: 8px;
}



/* toast */
    .toast {
        background-color: #4CAF50;
        color: white;
        padding: 12px 20px;
        border-radius: 4px;
        margin-bottom: 10px;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        font-size: 14px;
    }
    .toast.show {
        opacity: 1;
    }
    #favorites-grid::-webkit-scrollbar {
        height: 8px;
    }
    #favorites-grid::-webkit-scrollbar-thumb {
        background-color: #d1d5db;
        border-radius: 4px;
    }

    #paket-custom-prompt.opacity-0 {
        opacity: 0;
        transform: translateY(10px);
    }
    #paket-custom-prompt {
        opacity: 1;
        transform: translateY(0);
    }





/* Popup Overlay Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Popup Container Styles (Bottom Sheet) */
.popup-container {
    background: white;
    width: 100%;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
}

/* Popup Open State */
.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-overlay.active .popup-container {
    transform: translateY(0);
    opacity: 1;
}

/* Popup Handle */
.popup-handle {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    margin: 8px auto;
    cursor: grab;
}

/* Popup Content */
.popup-content {
    padding: 16px;
}
