/* Animasi untuk card */
.card-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.card-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Jarak antar card saat animasi */
.card-animate:nth-child(1) {
    transition-delay: 0.1s;
}
.card-animate:nth-child(2) {
    transition-delay: 0.2s;
}
.card-animate:nth-child(3) {
    transition-delay: 0.3s;
}

.loading-card {
    display: flex;
    justify-content: center;
    /* Pusatkan secara horizontal */
    align-items: center;
    /* Pusatkan secara vertikal */
    height: 100px;
    /* Tinggi card */
    width: 100%;
    /* Lebar penuh card */
    position: relative;
    /* Untuk memposisikan spinner di dalamnya */
}

.loading-card .spinner {
    width: 50px;
    /* Ukuran spinner */
    height: 50px;
    /* Ukuran spinner */
    border: 5px solid #f3f3f3;
    /* Warna latar belakang */
    border-top: 5px solid #4f46e5;
    /* Warna aktif */
    border-radius: 50%;
    /* Membuat lingkaran */
    animation: spin 1s linear infinite;
    /* Animasi */
}

.card {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

#nbm {
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
    /* transition: border-color 0.3s ease; */
}

#nbm:hover {
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.2);
}

/* Saat input dalam fokus */
#nbm:focus {
    border-color: #0d6efd; /* biru Bootstrap */
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}

/* Saat input memiliki nilai */
#nbm.filled {
    border-color: #198754; /* hijau Bootstrap */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

table th {
    font-weight: bold !important;
}

.bg-dark {
    background-color: #1f2937 !important;
    border: none !important;
}

.btn-dark {
    background-color: #1f2937 !important;
    border: none !important;
}

.btn-dark:hover {
    background-color: #374151 !important;
    border: none !important;
}

/* Primary Button */
.btn-primary {
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background-color: #4338ca !important;
    border-color: #4338ca !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

/* Success Button */
.btn-success {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background-color: #059669 !important;
    border-color: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-secondary {
    background-color: #6b7280 !important; /* Gray-500 */
    border-color: #6b7280 !important;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(107, 114, 128, 0.2);
}

.btn-secondary:hover {
    background-color: #4b5563 !important; /* Gray-600 */
    border-color: #4b5563 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(107, 114, 128, 0.3);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.2);
}

/* Danger Button */
.btn-danger {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* Light Button */
.btn-light {
    background-color: #f9fafb !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(209, 213, 219, 0.2);
}

.btn-light:hover {
    background-color: #e5e7eb !important;
    border-color: #9ca3af !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(209, 213, 219, 0.3);
}

.btn-light:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(209, 213, 219, 0.2);
}

/* Optional: Outline Buttons */
.btn-outline-primary:hover {
    background-color: #4f46e5 !important;
    color: white !important;
    border-color: #4f46e5 !important;
}

.btn-outline-success:hover {
    background-color: #10b981 !important;
    color: white !important;
    border-color: #10b981 !important;
}

.btn-outline-danger:hover {
    background-color: #ef4444 !important;
    color: white !important;
    border-color: #ef4444 !important;
}

/* General Badge Style */
.badge {
    display: inline-block !important;
    padding: 0.35em 0.65em !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    color: #fff !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Badge Primary */
.badge-primary {
    background-color: #4f46e5 !important;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.badge-primary:hover {
    background-color: #4338ca !important;
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

/* Badge Success */
.badge-success {
    background-color: #10b981 !important;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.badge-success:hover {
    background-color: #059669 !important;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Badge Danger */
.badge-danger {
    background-color: #ef4444 !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.badge-danger:hover {
    background-color: #dc2626 !important;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* Badge Light */
.badge-light {
    background-color: #f9fafb !important;
    color: #374151;
    box-shadow: 0 2px 4px rgba(209, 213, 219, 0.2);
}

.badge-light:hover {
    background-color: #e5e7eb !important;
    box-shadow: 0 4px 8px rgba(209, 213, 219, 0.3);
}

.swal-custom-text {
    font-size: 14px;
}

.swal2-title {
    font-size: 22px;
    font-weight: bold;
}

th,
td {
    white-space: nowrap;
}

.card {
    border-radius: 12px !important;
}

.skeleton {
    padding: 15px;
    width: 100%;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.skeleton .square {
    height: 80px;
    border-radius: 5px;
    background: rgba(130, 130, 130, 0.2);
    background: -webkit-gradient(
        linear,
        left top,
        right top,
        color-stop(8%, rgba(130, 130, 130, 0.2)),
        color-stop(18%, rgba(130, 130, 130, 0.3)),
        color-stop(33%, rgba(130, 130, 130, 0.2))
    );
    background: linear-gradient(
        to right,
        rgba(130, 130, 130, 0.2) 8%,
        rgba(130, 130, 130, 0.3) 18%,
        rgba(130, 130, 130, 0.2) 33%
    );
    background-size: 800px 100px;
    animation: wave-squares 2s infinite ease-out;
}
.skeleton .line {
    height: 12px;
    margin-bottom: 6px;
    border-radius: 2px;
    background: rgba(130, 130, 130, 0.2);
    background: -webkit-gradient(
        linear,
        left top,
        right top,
        color-stop(8%, rgba(130, 130, 130, 0.2)),
        color-stop(18%, rgba(130, 130, 130, 0.3)),
        color-stop(33%, rgba(130, 130, 130, 0.2))
    );
    background: linear-gradient(
        to right,
        rgba(130, 130, 130, 0.2) 8%,
        rgba(130, 130, 130, 0.3) 18%,
        rgba(130, 130, 130, 0.2) 33%
    );
    background-size: 800px 100px;
    animation: wave-lines 2s infinite ease-out;
}
.skeleton-right {
    flex: 1;
}
.skeleton-left {
    flex: 2;
    padding-right: 15px;
}
.flex1 {
    flex: 1;
}
.flex2 {
    flex: 2;
}
.skeleton .line:last-child {
    margin-bottom: 0;
}
.h8 {
    height: 8px !important;
}
.h10 {
    height: 10px !important;
}
.h12 {
    height: 12px !important;
}
.h15 {
    height: 15px !important;
}
.h17 {
    height: 17px !important;
}
.h20 {
    height: 20px !important;
}
.h25 {
    height: 25px !important;
}
.w25 {
    width: 25% !important;
}
.w40 {
    width: 40% !important;
}
.w50 {
    width: 50% !important;
}
.w75 {
    width: 75% !important;
}
.m10 {
    margin-bottom: 10px !important;
}
.circle {
    border-radius: 50% !important;
    height: 80px !important;
    width: 80px;
}
@keyframes wave-lines {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}
@keyframes wave-squares {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

/* bg hero */

/* .bg-wave {
    position: relative;
    background: #4f46e5;
    padding-bottom: -20px;
    border-bottom-left-radius: 50% 80px;
    border-bottom-right-radius: 50% 80px;
}

.bg-wave::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background-size: cover;
} */

/* Carousel Border Radius */
.carousel-inner {
    border-radius: 12px;
}

/* Menyembunyikan beberapa tombol di mobile */
@media (max-width: 767px) {
    .fc-header-toolbar .fc-left,
    .fc-header-toolbar .fc-right {
        display: none;
        /* Sembunyikan tombol 'prev', 'next', 'today' di mobile */
    }

    /* Menampilkan tombol navigasi dengan ukuran lebih kecil */
    .fc-header-toolbar .fc-center {
        font-size: 14px;
        /* Ukuran font untuk 'title' lebih kecil */
    }

    .fc-toolbar-chunk h2 {
        font-size: 12px !important;
        /* Ukuran font untuk 'title' lebih kecil */
    }

    .fc-header-toolbar .fc-button {
        padding: 4px 8px;
        /* Mengurangi padding tombol */
        font-size: 10px;
        /* Mengatur ukuran font tombol lebih kecil */
    }

    /* Membuat tombol yang lebih besar di desktop */
    .fc-header-toolbar .fc-left,
    .fc-header-toolbar .fc-right {
        display: flex;
    }

    .fc-col-header-cell-cushion {
        font-size: 8px !important;
    }

    .fc table {
        font-size: 8px !important;
    }
}

/* Menyusun tombol di desktop */
@media (min-width: 768px) {
    .fc-header-toolbar .fc-center {
        font-size: 16px;
        /* Ukuran font yang lebih besar untuk title */
    }
}

/* ckeditor */
.ck-editor__editable {
    height: 500px;
}

.qr-container {
    background-color: #ffffff; /* Background putih */
    padding: 10px; /* Tambahkan padding agar QR Code tidak menempel ke tepi */
    display: inline-block; /* Supaya ukuran tetap mengikuti QR Code */
    border-radius: 5px; /* Opsional: tambahkan sudut melengkung */
}

.text-active {
    color: #4f46e5 !important;
}

.single-plan-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* .bank-logos {
            display: flex;
            align-items: center;
            gap: 0;
        } */

.bank-logos img {
    width: 80px;
    aspect-ratio: 3/2;
    object-fit: contain;
    mix-blend-mode: color-burn;
}

@media (max-width: 768px) {
    .single-plan-check {
        flex-direction: column;
        align-items: flex-start;
    }

    .bank-logos {
        margin-top: 2px;
    }
}

.fc-event-time {
    display: none;
}

.fc-day-today {
    /* font-weight: bold; */
}

.fc-daygrid-day-number {
}

.accordion-header {
    border-bottom: none !important;
}

.accordion-item {
    border: none !important;
    box-shadow: none !important;
}

.bayar-sebelum-container {
    display: flex;
    align-items: center;
    gap: 12px; /* Jarak antara ikon dan teks */
    /* background: #fff; */
    border-radius: 8px;
}

.icon-container {
    width: 40px;
    height: 40px;
    /* background: #FFD700; */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.icon-container i {
    font-size: 20px;
    color: #333;
}

.bayar-sebelum-content {
    flex-grow: 1;
}

.bayar-sebelum-content .title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 2px;
}

.bayar-sebelum-content .tanggal {
    font-size: 14px;
    color: #666;
    margin: 0;
}

#countdown-container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: bold;
    color: #d32f2f; /* Warna merah */
    background: rgba(211, 47, 47, 0.1); /* Background merah muda */
    padding: 6px 10px;
    border-radius: 20px;
}

#countdown {
    min-width: 70px;
    text-align: center;
    letter-spacing: 2px;
}

.bi-clock {
    font-size: 18px;
    color: #d32f2f;
}

@media (max-width: 767px) {
    #countdown-container {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        /* font-weight: bold; */
        color: #d32f2f;
        background: rgba(211, 47, 47, 0.1);
        padding: 4px 8px;
        border-radius: 20px;
    }

    #countdown {
        min-width: 30px;
        text-align: center;
        letter-spacing: 2px;
    }

    .bi-clock {
        font-size: 12px;
        color: #d32f2f;
    }

    logo-background {
        display: none;
    }
}

/* blog */

/* .blog-list-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    background-color: white;
    margin-bottom: 8px;
}

.blog-list-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
} */

.card-blog-img {
    width: 120px;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 12px 0 0 12px;
    flex-shrink: 0;
}

.card-blog-content {
    padding: 8px;
    flex-grow: 1;
}

.blog-date {
    font-size: 11px;
    color: var(--secondary-color);
    letter-spacing: 0.2px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.blog-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    line-height: 1.4;
    text-decoration: none;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title:hover {
    color: var(--primary-color);
}

.read-more {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.read-more:hover {
    color: #3a36c9;
}

.read-more i {
    margin-left: 4px;
    transition: var(--transition);
    font-size: 10px;
}

.read-more:hover i {
    transform: translateX(2px);
}

.page-item.active .page-link {
    color: var(--white);
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
}
