    
    /* Pastikan body pakai flex column agar footer tetap di bawah */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 75px;
}

@media (max-width: 768px) {
    .container {
        max-width: 100% !important;
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

          /* Kurangi jarak atas bootstrap */
    .mt-5 {
        margin-top: 0.5rem !important;
    }

    .mt-4 {
        margin-top: 0.5rem !important;
    }
}


a{ text-decoration:none; }
hr {margin-top: 5px;}

/* Konten utama fleksibel untuk mengisi ruang */
.content-wrapper {
    flex: 1; /* isi sisa ruang body */
    min-height: 60vh; /* minimal tinggi konten */
}

.alertx {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;

    width: 85%;
    max-width: 425px;
}

.autocomplete-box {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    top: 100%; /* tepat di bawah input */
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background: #f1f1f1;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 999;
}

.bottom-nav .nav-item {
    text-align: center;
    font-size: 12px;
    color: #666;
    font-weight: 700;
    text-decoration: none;
}

.bottom-nav .nav-item i {
    display: block;
    font-size: 20px;
}

.bottom-nav .nav-item.active {
    color: #0d6efd;
}

/* Pagination styles */
.pagination {
  display: flex;
  padding: 1em 0;
}

.pagination a,
.pagination strong {
  border: 1px solid silver;
  border-radius: 4px;
  color: #777;
  padding:0.4em;
  margin-right: 1em;
  text-decoration: none;
}

.pagination a:hover,
.pagination strong {
  border: 1px solid #777;
  background-color: #777;
  color: white;
}

#selectPage {
    max-height: 150px;  /* tinggi maksimal dropdown */
    overflow-y: auto;   /* scroll jika isi melebihi tinggi */
}

/* Animasi flash untuk order pending */
@keyframes flashHighlight {
  0%, 100% { background-color: #fffbe6; } /* warna awal / normal */
  50% { background-color: #fff3cd; } /* kuning lembut saat flash */
}

.flash-pending {
  border: 2px solid #ffc107; /* border kuning */
  animation: flashHighlight 1.5s ease-in-out 90; /* 3 kali berkedip */
}

.flash-alert {
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);

    z-index: 9998; /* sedikit di bawah tombol install */

    min-width: 280px;
    max-width: 90%;

    padding: 12px 16px;

    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);

    text-align: center;

    backdrop-filter: blur(6px);

    animation: slideDown 0.25s ease-out;
}
.card-terapis {
    background: #fff;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.subtitle {
    font-size: 13px;
    color: #94a3b8;
}

.desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

.box {
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px;
    margin-top: 14px;
}

.box-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.box ul {
    padding-left: 16px;
    margin: 0;
    font-size: 13px;
    color: #475569;
}

.price-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
}

.status-badge{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
}

/* AKTIF */
.status-aktif{
    background: #fff;
    color: green;
}

/* PENDING */
.status-pending{
    background: #fff;
    color: #555;
}

/* MITRA BARU */
.status-new{
    background: #fff;
    color: #777;
}

.btn-primary-elegant {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 13px;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
}

.btn-outline-elegant {
    border: 1px solid #e2e8f0;
    padding: 13px;
    border-radius: 14px;
    text-align: center;
    font-weight: 500;
    color: #0f172a;
    text-decoration: none;
}

.link-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 6px;
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    transition: 0.2s;
}

.link-item:hover {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.link-title {
    font-weight: 600;
    font-size: 13px;
}

.link-sub {
    font-size: 12px;
    color: #94a3b8;
}

.link-item i {
    color: #94a3b8;
    transition: 0.2s;
}

.link-item:hover i {
    color: #0f172a;
    transform: translateX(2px);
}

.pwa-float-btn {
    position: fixed;

    bottom: 15%;   /* bawah */
    right: 10px;    /* kanan */

    z-index: 9999;

    display: none;
    align-items: center;
    gap: 8px;

   background: linear-gradient(135deg, #021a39, #34a853);
   color: #fff;

    border: 1px solid rgba(255,255,255,0.15);

    padding: 10px 16px;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 600;

    box-shadow: 0 10px 25px rgba(0,0,0,0.35);

    cursor: pointer;

    transition: all 0.2s ease;
}