#preloader {
    background: #FFF;
    height: 100%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1031;
}

#back-to-top {
    color: #fff;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1030;
    height: 50px;
    width: 50px;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-color .1s linear;
    -moz-transition: background-color .1s linear;
    -webkit-transition: background-color .1s linear;
    -o-transition: background-color .1s linear;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: #FFF 3px solid;
}

@media screen and (max-width: 1199px) {
    #back-to-top {
        bottom: 80px;
        left: 20px;
        right: auto !important;
    }

    footer.footer {
        margin-bottom: 40px;
    }
}

/* .countdown-time {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
} */
.countdown-value {
    min-width: 2ch; /* Untuk menjaga lebar konsisten */
    text-align: center;
}
/* .countdown-label {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
} */
.countdown-separator {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Untuk desktop */
@media (min-width: 992px) {
    .col-lg-7 {
        text-align: left !important;  /* Pastikan teks rata kiri */
    }
    .col-lg-5 {
        margin: 0 auto;  /* Countdown tetap di tengah */
    }
}

/* ==================== */
/* CHAT BUTTON CONTAINER */
/* ==================== */
.chat-button-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

@media (max-width: 768px) {
    .chat-button-container {
        bottom: 80px; /* Lebih rapat di mobile */
        right: 15px;
    }
    .chat-toggle-btn-ai,
    .chat-toggle-btn-lapor {
        padding: 10px 16px;
        font-size: 12px;
    }
    .ai-chat-end-btn-container {
        width: 90%;
        right: 5%;
        bottom: 120px;
    }
}

@keyframes slide-up {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==================== */
/* AI TOGGLE BUTTON STYLES */
/* ==================== */
.chat-toggle-btn-ai {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    height: 50px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    min-width: 50px;
    border: 2px solid white;
}

.chat-toggle-btn-ai:hover {
    background: #075E54;
    transform: scale(1.05);
}

.chat-toggle-btn-ai i {
    font-size: 16px;
}

/* ==================== */
/* LAPOR TOGGLE BUTTON STYLES */
/* ==================== */
.chat-toggle-btn-lapor {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #dc3545;
    color: white;
    padding: 12px 20px;
    height: 50px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    min-width: 50px;
    border: 2px solid white;
}

.chat-toggle-btn-lapor:hover {
    background: rgba(20, 3, 66, 0.9);
    transform: scale(1.05);
}

.chat-toggle-btn-lapor i {
    font-size: 16px;
}

.chat-button-container {
    animation: slide-up 0.5s ease;
}

/* ==================== */
/* ACTIVE/INACTIVE STATES */
/* ==================== */
.chat-toggle-btn-ai.active {
    background: #075E54;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: 0 0 0 2px rgba(7, 94, 84, 0.3);
    transform: scale(1); /* Pastikan tidak terpengaruh scale inactive */
}

.chat-toggle-btn-lapor.active {
    background: #9c1a27;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: 0 0 0 2px rgba(156, 26, 39, 0.3);
    transform: scale(1); /* Pastikan tidak terpengaruh scale inactive */
}

.chat-toggle-btn-ai.inactive,
.chat-toggle-btn-lapor.inactive {
    opacity: 0.6;
    transform: scale(0.95);
    filter: grayscale(20%);
    cursor: not-allowed;
    transition: all 0.3s ease;
    box-shadow: none;
}

/* Efek hover khusus untuk tombol yang tidak inactive */
.chat-toggle-btn-ai:not(.inactive):hover,
.chat-toggle-btn-lapor:not(.inactive):hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Untuk mobile */
@media (max-width: 480px) {
    /* Pusatkan konten di mobile */
    .mobile-center {
        align-items: center !important;
        text-align: center !important;
    }
    /* Ukuran teks responsive */
    .mobile-text-30 { font-size: 20px !important; }
    .mobile-text-20 { font-size: 16px !important; }
    .mobile-text-16 { font-size: 14px !important; }
    .mobile-text-14 { font-size: 12px !important; }
    /* Atur jarak antar item countdown */
    .countdown-time {
        gap: 2px;  /* ✅ Efektif untuk memberi spacing */
    }
    /* Atur margin teks countdown */
    .countdown-text {
        margin-top: 2px !important;  /* ✅ Memperkecil jarak */
    }
    .text-center {
        text-align: center !important;  /* Force tengah di mobile */
    }
    .col-lg-7 {
        text-align: center !important;
    }
}
