/* =========================================================
   PWA HOME UTU
   RESET TOTAL — VERSION 1
========================================================= */
/* FIX KHUSUS: Hanya memunculkan Bottom Nav di semua halaman tanpa mengubah layout lain */
.pwa-bottom-nav {
  display: flex !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
}
/* FULL-WIDTH BOTTOM NAVIGATION (MATCH WITH PROFILE MENU) */
.pwa-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 62px;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.pwa-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: #64748b;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.pwa-bottom-nav .nav-item i {
  font-size: 1.3rem;
  margin-bottom: 2px;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Status Aktif: Ungu Elegan (#6d28d9) */
.pwa-bottom-nav .nav-item.active {
  color: #6d28d9 !important;
  font-weight: 700;
}

.pwa-bottom-nav .nav-item.active i {
  transform: translateY(-2px);
  color: #7c3aed;
}

/* Indikator Bar Oranye di Atas Menu Aktif */
.pwa-bottom-nav .nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #fb923c);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.5);
}

/* Padding Bawah Body/Section agar konten tidak tertutup Bottom Bar */
body, .pwa-app {
  padding-bottom: 70px !important;
}

/* =========================================================
   01. PWA MODE — MATIKAN WEBSITE NORMAL
========================================================= */

/*
   Saat aplikasi berjalan sebagai PWA:
   SEMUA elemen langsung di dalam body disembunyikan.
   Hanya .pwa-app yang boleh tampil.
*/
html.pwa-home-mode body > * {
    display: none !important;
}

html.pwa-home-mode body > .pwa-app {
    display: block !important;
}
/* Container Utama Hero */
.pwa-hero-premium {
    background: linear-gradient(135deg, #0b5ed7 0%, #023e8a 100%);
    padding: 18px 16px 16px;
    border-radius: 0 0 20px 20px;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(11, 94, 215, 0.15);
}

/* Flexbox Antara Teks dan Gambar (Sejajar Kesamping) */
.pwa-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

/* Bagian Teks */
.pwa-hero-title {
    flex: 1;
}

.pwa-hero-title span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.pwa-hero-title h1 {
    font-size: 18px;
    line-height: 1.2;
    margin: 0 0 6px 0;
    font-weight: 400;
}

.pwa-hero-title h1 strong {
    font-weight: 800;
}

.pwa-hero-title p {
    font-size: 11px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.35;
}

/* Bagian Gambar Gedung (Rapi & Tidak Makan Space Vertikal) */
.pwa-hero-image {
    position: relative;
    width: 120px;
    flex-shrink: 0;
}

.pwa-hero-image img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    display: block;
}

.pwa-building-glow {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

/* Box Pencarian Ramping Tepat Di Bawah */
.pwa-search-box form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 4px 6px 4px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pwa-search-box form > i {
    color: #6c757d;
    font-size: 14px;
    margin-right: 8px;
}

.pwa-search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 12px;
    color: #333333;
    padding: 6px 0;
    background: transparent;
}

.pwa-search-box button {
    background: #0d6efd;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.pwa-search-box button:hover {
    background: #0b5ed7;
}
/* =========================================================
   02. PWA APP
========================================================= */
.pwa-hero-premium {
    background: linear-gradient(135deg, #0b5ed7 0%, #023e8a 100%);
    padding: 24px 18px 20px;
    border-radius: 0 0 24px 24px;
    color: #ffffff;
    position: relative;
    box-shadow: 0 8px 20px rgba(11, 94, 215, 0.15);
}

.pwa-hero-content {
    margin-bottom: 16px;
}

.pwa-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.pwa-hero-content h1 {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 6px 0;
    font-weight: 400;
}

.pwa-hero-content h1 strong {
    font-weight: 800;
    color: #fff;
}

.pwa-hero-content p {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

/* Box Pencarian Ramping */
.pwa-search-box form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 14px;
    padding: 4px 6px 4px 14px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.pwa-search-box .search-icon {
    color: #6c757d;
    font-size: 16px;
    margin-right: 8px;
}

.pwa-search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 13px;
    color: #333;
}

.pwa-search-box button {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.pwa-search-box button:hover {
    background: #0b5ed7;
}

html.pwa-mode .pwa-app {
    display: block !important;

    width: 100%;
    min-height: 100vh;

    margin: 0;
    padding: 0 0 88px;

    background: #f6f8fc;

    color: #172b4d;

    font-family:
        "Plus Jakarta Sans",
        Arial,
        sans-serif;

    overflow-x: hidden;
}
/* Sembunyikan Bottom Nav PWA secara default di Layar Besar (Desktop/Laptop) */
.pwa-bottom-nav {
    display: none !important;
}

/* Tampilkan Bottom Nav HANYA jika dibuka lewat Layar HP (Maksimal 768px) */
@media (max-width: 768px) {
    .pwa-bottom-nav {
        display: flex !important;
    }
}

/* =========================================================
   03. RESET INTERNAL PWA
========================================================= */

html.pwa-mode .pwa-app *,
html.pwa-mode .pwa-app *::before,
html.pwa-mode .pwa-app *::after {
    box-sizing: border-box;
}


/* =========================================================
   04. PWA HEADER
========================================================= */

html.pwa-mode .pwa-header {
    width: 100%;
    height: 72px;

    display: flex !important;

    align-items: center;
    justify-content: space-between;

    padding: 9px 16px;

    background: #ffffff;

    border-bottom: 1px solid #e8edf4;

    box-shadow:
        0 4px 18px rgba(20, 40, 70, .07);

    position: relative;

    z-index: 100;
}


/* =========================================================
   05. BRAND
========================================================= */

html.pwa-mode .pwa-brand {
    display: flex !important;

    align-items: center;

    gap: 9px;

    min-width: 0;

    text-decoration: none;
}

html.pwa-mode .pwa-brand img {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    object-fit: contain;
}

html.pwa-mode .pwa-brand > div {
    min-width: 0;
}

html.pwa-mode .pwa-brand strong {
    display: block;

    margin: 0;

    color: #003e7e;

    font-size: 14px;
    font-weight: 800;

    line-height: 1.1;
}

html.pwa-mode .pwa-brand span {
    display: block;

    margin-top: 3px;

    color: #6f8094;

    font-size: 8px;
    font-weight: 600;

    line-height: 1.2;

    white-space: nowrap;
}


/* =========================================================
   06. HEADER BUTTON
========================================================= */

html.pwa-mode .pwa-header-actions {
    display: flex !important;

    align-items: center;

    gap: 6px;

    flex-shrink: 0;
}

html.pwa-mode .pwa-notification-btn,
html.pwa-mode .pwa-menu-btn {
    width: 40px;
    height: 40px;

    display: flex !important;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 13px;

    background: #f2effb;

    color: #4f2d9a;

    font-size: 20px;

    position: relative;

    cursor: pointer;
}


/* =========================================================
   07. BADGE
========================================================= */

html.pwa-mode .pwa-notification-badge {
    position: absolute;

    top: -3px;
    right: -3px;

    min-width: 17px;
    height: 17px;

    padding: 0 4px;

    display: flex !important;

    align-items: center;
    justify-content: center;

    border-radius: 50px;

    background: #e53935;

    color: #ffffff;

    font-size: 8px;
    font-weight: 800;

    border: 2px solid #ffffff;
}

/* =========================================================
   PWA HOME — HERO COLORFUL RESPONSIVE
   Khusus beranda PWA
========================================================= */

html.pwa-home-mode,
html.pwa-home-mode body {
    overflow-x: hidden;
}

html.pwa-home-mode .pwa-hero-premium {
    position: relative;
    width: 100%;
    min-height: 390px;
    overflow: hidden;
    isolation: isolate;

    color: #ffffff;
    background:
        radial-gradient(circle at 90% 12%, rgba(255, 208, 84, .72) 0 7%, transparent 8%),
        radial-gradient(circle at 10% 92%, rgba(117, 80, 255, .55) 0 14%, transparent 15%),
        linear-gradient(135deg, #003b80 0%, #075fac 48%, #3d2ca5 100%);
}

/* Ornamen warna */
html.pwa-home-mode .pwa-hero-premium::before,
html.pwa-home-mode .pwa-hero-premium::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
}

html.pwa-home-mode .pwa-hero-premium::before {
    width: 250px;
    height: 250px;
    top: -145px;
    right: -105px;
    background: rgba(116, 214, 255, .23);
}

html.pwa-home-mode .pwa-hero-premium::after {
    width: 230px;
    height: 230px;
    bottom: -150px;
    left: -115px;
    background: rgba(255, 187, 62, .20);
}

/* Area utama */
html.pwa-home-mode .pwa-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 390px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 112px;
}

/* Teks hero */
html.pwa-home-mode .pwa-hero-title {
    position: relative;
    z-index: 4;
    width: 54%;
    max-width: 450px;
    padding-top: 26px;
}

html.pwa-home-mode .pwa-hero-title > span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 11px;
    margin-bottom: 9px;

    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    box-shadow: 0 8px 20px rgba(0, 20, 75, .14);

    color: #fff4b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
    line-height: 1;
}

html.pwa-home-mode .pwa-hero-title h1,
html.pwa-home-mode .pwa-hero-title h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(23px, 6vw, 43px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.7px;
    text-shadow: 0 3px 14px rgba(0, 28, 91, .22);
}

html.pwa-home-mode .pwa-hero-title p {
    max-width: 360px;
    margin: 11px 0 0;

    color: rgba(255, 255, 255, .88);
    font-size: clamp(11px, 2.7vw, 15px);
    font-weight: 500;
    line-height: 1.55;
}

/* Gambar gedung di sisi kanan */
html.pwa-home-mode .pwa-hero-image,
html.pwa-home-mode .pwa-hero-visual {
    position: absolute;
    z-index: 2;
    top: 22px;
    right: -7%;
    width: 56%;
    height: 245px;
    overflow: hidden;

    border: 5px solid rgba(255, 255, 255, .18);
    border-radius: 38px 0 0 38px;
    background: #0d569b;
    box-shadow: -12px 18px 35px rgba(0, 20, 77, .28);
}

html.pwa-home-mode .pwa-hero-image::after,
html.pwa-home-mode .pwa-hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(20, 25, 105, .36) 0%,
        rgba(20, 25, 105, .06) 60%,
        rgba(255, 185, 50, .12) 100%
    );
    pointer-events: none;
}

html.pwa-home-mode .pwa-hero-image img,
html.pwa-home-mode .pwa-hero-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Search tetap di bawah hero */
html.pwa-home-mode .pwa-hero-search,
html.pwa-home-mode .pwa-search-hero {
    position: absolute;
    z-index: 6;
    right: 20px;
    bottom: 26px;
    left: 20px;
    width: auto;
    max-width: 720px;
    margin: 0 auto;
}

/* Jika search memakai form */
html.pwa-home-mode .pwa-hero-search form,
html.pwa-home-mode .pwa-search-hero form {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 5px 7px 5px 17px;

    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 17px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 14px 30px rgba(0, 22, 79, .24);
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 575px) {
    html.pwa-home-mode .pwa-hero-premium {
        min-height: 405px;
    }

    html.pwa-home-mode .pwa-hero-content {
        min-height: 405px;
        padding: 20px 16px 103px;
    }

    html.pwa-home-mode .pwa-hero-title {
        width: 57%;
        padding-top: 25px;
    }

    html.pwa-home-mode .pwa-hero-title > span {
        padding: 5px 8px;
        margin-bottom: 7px;
        font-size: 8px;
        letter-spacing: .45px;
    }

    html.pwa-home-mode .pwa-hero-title h1,
    html.pwa-home-mode .pwa-hero-title h2 {
        font-size: clamp(22px, 7vw, 31px);
        line-height: 1.1;
    }

    html.pwa-home-mode .pwa-hero-title p {
        margin-top: 9px;
        font-size: 11px;
        line-height: 1.45;
    }

    html.pwa-home-mode .pwa-hero-image,
    html.pwa-home-mode .pwa-hero-visual {
        top: 41px;
        right: -20px;
        width: 53%;
        height: 205px;

        border-width: 4px;
        border-radius: 30px 0 0 30px;
    }

    html.pwa-home-mode .pwa-hero-search,
    html.pwa-home-mode .pwa-search-hero {
        right: 16px;
        bottom: 21px;
        left: 16px;
    }

    html.pwa-home-mode .pwa-hero-search form,
    html.pwa-home-mode .pwa-search-hero form {
        min-height: 50px;
        border-radius: 15px;
    }
}

/* HP sangat kecil */
@media (max-width: 360px) {
    html.pwa-home-mode .pwa-hero-premium,
    html.pwa-home-mode .pwa-hero-content {
        min-height: 385px;
    }

    html.pwa-home-mode .pwa-hero-title {
        width: 59%;
        padding-top: 18px;
    }

    html.pwa-home-mode .pwa-hero-title h1,
    html.pwa-home-mode .pwa-hero-title h2 {
        font-size: 21px;
    }

    html.pwa-home-mode .pwa-hero-title p {
        font-size: 10px;
    }

    html.pwa-home-mode .pwa-hero-image,
    html.pwa-home-mode .pwa-hero-visual {
        top: 38px;
        right: -26px;
        width: 51%;
        height: 185px;
    }
}

/* Tablet dan desktop */
@media (min-width: 768px) {
    html.pwa-home-mode .pwa-hero-premium,
    html.pwa-home-mode .pwa-hero-content {
        min-height: 440px;
    }

    html.pwa-home-mode .pwa-hero-content {
        padding: 38px 42px 120px;
    }

    html.pwa-home-mode .pwa-hero-title {
        padding-top: 38px;
    }

    html.pwa-home-mode .pwa-hero-image,
    html.pwa-home-mode .pwa-hero-visual {
        top: 32px;
        right: -1%;
        width: 52%;
        height: 290px;
        border-radius: 50px 0 0 50px;
    }
}

/* =========================================================
   12. SEARCH
========================================================= */

html.pwa-mode .pwa-search-box {
    position: absolute;

    left: 18px;
    right: 18px;
    bottom: 22px;

    z-index: 10;

    padding: 6px;

    display: flex;
    align-items: center;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 12px 30px rgba(20,20,50,.20);
}

html.pwa-mode .pwa-search-box > i {
    margin-left: 11px;

    color: #6c42d8;

    font-size: 16px;
}

html.pwa-mode .pwa-search-box form {
    width: 100%;

    display: flex;

    align-items: center;
}

html.pwa-mode .pwa-search-box input {
    flex: 1;

    min-width: 0;

    height: 42px;

    padding: 0 10px;

    border: 0;

    outline: 0;

    background: transparent;

    color: #172b4d;

    font-family: inherit;

    font-size: 11px;
}

html.pwa-mode .pwa-search-box input::placeholder {
    color: #9aa6b5;
}

html.pwa-mode .pwa-search-box button {
    height: 40px;

    padding: 0 13px;

    border: 0;

    border-radius: 11px;

    background: #4f2d9a;

    color: #ffffff;

    font-family: inherit;

    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   13. SECTION
========================================================= */

html.pwa-mode .pwa-section {
    width: 100%;

    padding: 25px 16px;
}


/* =========================================================
   14. SECTION TITLE
========================================================= */

html.pwa-mode .pwa-section-title {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 15px;
}

html.pwa-mode .pwa-section-title > div {
    min-width: 0;
}

html.pwa-mode .pwa-section-title span {
    color: #4f2d9a;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .5px;
}

html.pwa-mode .pwa-section-title a {
    display: inline-flex;

    align-items: center;

    gap: 3px;

    flex-shrink: 0;

    color: #4f2d9a;

    font-size: 9px;

    font-weight: 700;

    text-decoration: none;
}


/* =========================================================
   15. AKSES CEPAT
========================================================= */

html.pwa-mode .pwa-access-section {
    padding-top: 25px;

    background: #f6f8fc;
}

html.pwa-mode .pwa-access-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;
}

html.pwa-mode .pwa-access-card {
    min-width: 0;

    min-height: 105px;

    padding: 12px 8px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    border-radius: 17px;

    color: #ffffff;

    text-decoration: none;

    box-shadow:
        0 8px 20px rgba(25,35,60,.10);

    position: relative;

    overflow: hidden;
}

html.pwa-mode .pwa-access-card::after {
    content: "";

    position: absolute;

    width: 70px;
    height: 70px;

    right: -30px;
    top: -30px;

    border-radius: 50%;

    background: rgba(255,255,255,.12);
}

html.pwa-mode .pwa-access-icon {
    width: 42px;
    height: 42px;

    margin-bottom: 7px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(255,255,255,.18);

    font-size: 19px;

    position: relative;

    z-index: 2;
}

html.pwa-mode .pwa-access-card strong {
    position: relative;

    z-index: 2;

    font-size: 9px;

    font-weight: 800;

    line-height: 1.2;
}

html.pwa-mode .pwa-access-card small {
    position: relative;

    z-index: 2;

    margin-top: 4px;

    color: rgba(255,255,255,.78);

    font-size: 7px;

    font-weight: 600;
}


/* WARNA AKSES CEPAT */

html.pwa-mode .card-blue {
    background: linear-gradient(135deg,#0066a8,#003e7e);
}

html.pwa-mode .card-orange {
    background: linear-gradient(135deg,#f59e0b,#e76f00);
}

html.pwa-mode .card-purple {
    background: linear-gradient(135deg,#6d4aff,#4f2d9a);
}

html.pwa-mode .card-green {
    background: linear-gradient(135deg,#18b66b,#087f50);
}


/* =========================================================
   16. DASHBOARD
========================================================= */

html.pwa-mode .pwa-dashboard {
    width: 100%;

    padding: 0 16px 25px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

html.pwa-mode .pwa-panel {
    min-width: 0;

    padding: 15px;

    background: #ffffff;

    border: 1px solid #edf0f5;

    border-radius: 19px;

    box-shadow:
        0 8px 24px rgba(25,35,60,.07);
}


/* =========================================================
   17. PANEL HEADER
========================================================= */

html.pwa-mode .pwa-panel-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-bottom: 13px;
}

html.pwa-mode .pwa-panel-header h2 {
    margin: 0;

    color: #253858;

    font-size: 10px;

    font-weight: 800;

    line-height: 1.3;
}

html.pwa-mode .pwa-panel-header h2 i {
    color: #4f2d9a;

    margin-right: 3px;
}

html.pwa-mode .pwa-panel-header a {
    color: #4f2d9a;

    font-size: 8px;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;
}


/* =========================================================
   18. NOTIFICATION
========================================================= */

html.pwa-mode .pwa-notification-list {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

html.pwa-mode .pwa-notification-item {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 9px;

    border-radius: 13px;

    background: #f8f9fc;

    min-width: 0;
}

html.pwa-mode .pwa-notification-icon {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    color: #ffffff;

    font-size: 13px;
}

html.pwa-mode .notification-green .pwa-notification-icon {
    background: #18b66b;
}

html.pwa-mode .notification-blue .pwa-notification-icon {
    background: #2878c8;
}

html.pwa-mode .notification-purple .pwa-notification-icon {
    background: #6d4aff;
}

html.pwa-mode .pwa-notification-content {
    min-width: 0;

    flex: 1;
}

html.pwa-mode .pwa-notification-content span {
    display: block;

    color: #6d4aff;

    font-size: 7px;

    font-weight: 800;

    text-transform: uppercase;
}

html.pwa-mode .pwa-notification-content strong {
    display: block;

    margin-top: 2px;

    color: #27364d;

    font-size: 8px;

    line-height: 1.35;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}

html.pwa-mode .pwa-notification-content small {
    display: block;

    margin-top: 2px;

    color: #8b97a7;

    font-size: 7px;

    line-height: 1.3;
}

html.pwa-mode .pwa-notification-item time {
    flex-shrink: 0;

    color: #9aa5b3;

    font-size: 6px;
}


/* =========================================================
   19. BUTTON PANEL
========================================================= */

html.pwa-mode .pwa-all-button {
    margin-top: 10px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 30px;

    border-radius: 10px;

    background: #f1edff;

    color: #4f2d9a;

    font-size: 8px;

    font-weight: 800;

    text-decoration: none;
}


/* =========================================================
   20. STATISTIK
========================================================= */

html.pwa-mode .pwa-stat-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;
}

html.pwa-mode .pwa-stat-card {
    min-width: 0;

    padding: 10px;

    border-radius: 13px;

    color: #ffffff;

    overflow: hidden;
}

html.pwa-mode .pwa-stat-card i {
    font-size: 15px;
}

html.pwa-mode .pwa-stat-card strong {
    display: block;

    margin-top: 5px;

    font-size: 16px;

    line-height: 1;
}

html.pwa-mode .pwa-stat-card span {
    display: block;

    margin-top: 4px;

    font-size: 7px;

    font-weight: 700;

    opacity: .9;
}

html.pwa-mode .pwa-stat-card small {
    display: block;

    margin-top: 6px;

    font-size: 6px;

    opacity: .75;
}

html.pwa-mode .stat-blue {
    background: linear-gradient(135deg,#087fc1,#005a91);
}

html.pwa-mode .stat-green {
    background: linear-gradient(135deg,#18b66b,#087f50);
}

html.pwa-mode .stat-purple {
    background: linear-gradient(135deg,#7555e8,#4f2d9a);
}

html.pwa-mode .stat-orange {
    background: linear-gradient(135deg,#f59e0b,#dc6900);
}


/* =========================================================
   21. BERITA WEBSITE
========================================================= */

/*
   Berita lama tetap dipakai.
   Untuk sekarang hanya kita pisahkan dari layout PWA.
*/

html.pwa-mode .news-section {
    display: block !important;

    width: 100%;

    padding: 25px 16px 30px;

    background: #f6f8fc;
}


/* =========================================================
   22. BOTTOM NAVIGATION
========================================================= */

html.pwa-mode .pwa-bottom-nav {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 72px;

    display: flex !important;

    align-items: center;
    justify-content: space-around;

    padding: 4px 3px;

    background: rgba(255,255,255,.98);

    border-top: 1px solid #e7ebf2;

    box-shadow:
        0 -8px 25px rgba(20,35,60,.09);

    z-index: 99999;
}

html.pwa-mode .pwa-bottom-nav a,
html.pwa-mode .pwa-bottom-menu {
    flex: 1;

    height: 100%;

    display: flex !important;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 3px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #8995a5;

    font-family: inherit;

    text-decoration: none;

    cursor: pointer;
}

html.pwa-mode .pwa-bottom-nav i {
    font-size: 19px;
}

html.pwa-mode .pwa-bottom-nav span {
    font-size: 7px;

    font-weight: 700;

    white-space: nowrap;
}

html.pwa-mode .pwa-bottom-nav a.active {
    color: #4f2d9a;
}


/* =========================================================
   23. MOBILE
========================================================= */

@media (max-width: 600px) {

    html.pwa-mode .pwa-hero-premium {
        min-height: 410px;

        padding: 35px 17px 105px;
    }

    html.pwa-mode .pwa-hero-title h1 {
        font-size: 28px;
    }

    html.pwa-mode .pwa-hero-title p {
        max-width: 260px;

        font-size: 10px;
    }

    html.pwa-mode .pwa-hero-image {
        width: 55%;

        right: -10px;

        bottom: 45px;
    }

    html.pwa-mode .pwa-search-box {
        left: 14px;
        right: 14px;
    }

    html.pwa-mode .pwa-access-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 9px;
    }

    html.pwa-mode .pwa-access-card {
        min-height: 105px;
    }

    html.pwa-mode .pwa-dashboard {
        grid-template-columns: 1fr 1fr;

        gap: 9px;

        padding-left: 14px;
        padding-right: 14px;
    }

    html.pwa-mode .pwa-panel {
        padding: 11px;
    }

    html.pwa-mode .pwa-panel-header h2 {
        font-size: 9px;
    }

    html.pwa-mode .pwa-stat-card strong {
        font-size: 14px;
    }

    html.pwa-mode .pwa-news-section {
        padding-left: 14px;
        padding-right: 14px;
    }
}


/* =========================================================
   24. HP SANGAT KECIL
========================================================= */

@media (max-width: 380px) {

    html.pwa-mode .pwa-brand strong {
        font-size: 12px;
    }

    html.pwa-mode .pwa-brand span {
        font-size: 6px;
    }

    html.pwa-mode .pwa-hero-title h1 {
        font-size: 25px;
    }

    html.pwa-mode .pwa-access-card {
        min-height: 98px;
    }

    html.pwa-mode .pwa-access-card strong {
        font-size: 8px;
    }

    html.pwa-mode .pwa-dashboard {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   FIX: KONTEN BERITA AMAN DARI BOTTOM NAVIGATION
========================================================= */

@media (max-width: 600px) {
    /*
      Menambah ruang SETELAH berita.
      Saat pengguna sampai akhir berita, tombol tidak lagi
      berada di belakang navigasi fixed setinggi 72px.
    */
    html.pwa-mode .news-section,
    html.pwa-mode .pwa-news-section {
        padding-bottom: 110px !important;
    }

    /*
      Berlaku untuk tombol/link terakhir di dalam area berita,
      walaupun tombol dibungkus elemen lain.
    */
    html.pwa-mode .news-section a:last-child,
    html.pwa-mode .news-section button:last-child,
    html.pwa-mode .pwa-news-section a:last-child,
    html.pwa-mode .pwa-news-section button:last-child {
        position: relative !important;
        z-index: 2 !important;
        margin-bottom: 0 !important;
    }
}
/* Styling Bottom Navigation Bar */
.pwa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 9999;
    padding: 0 10px;
}

/* Item Menu */
.pwa-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8e9aaf;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 20%;
}

.pwa-bottom-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
    transition: transform 0.2s ease;
}

/* State Aktif (Menu yang sedang dibuka) */
.pwa-bottom-nav .nav-item.active {
    color: #004987; /* Warna biru UTU */
    font-weight: 700;
}

.pwa-bottom-nav .nav-item.active i {
    transform: translateY(-2px);
}

/* Memberi jarak bawah pada body/konten agar tidak tertutup Bottom Nav */
.pwa-app {
    padding-bottom: 80px !important;
}
/* =========================================================
   FIX RESPONSIVE & LAYAR HP MELEBAR (PASTIKAN PAS DI HP)
========================================================= */

/* 1. Kunci viewport agar tidak bisa bergeser ke kanan/kiri */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 2. Kunci Container Utama PWA agar Pas Layar HP */
.pwa-app {
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

/* 3. Mencegah Gambar atau Visual Banner Meluap Keluar Layar */
.pwa-hero-premium,
.pwa-hero-content,
.pwa-hero-image,
.pwa-hero-visual,
.pwa-search-box {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 4. Fix Grid Akses Cepat & Dashboard di HP */
@media (max-width: 768px) {
  .pwa-hero-image,
  .pwa-hero-visual {
    right: 0 !important; /* Mencegah gambar offscreen ke kanan */
  }
}
/* =========================================================
   FIX RESPONSIVE LAYAR HP & PENGHILANG SPACE KOSONG
========================================================= */

/* 1. KUNCI POTONGAN KANAN/KIRI AGAR TIDAK ZOOM-OUT DI HP */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pwa-app {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* 2. POTONG ELEMEN HERO YANG MELUAP KE KANAN LAYAR */
.pwa-hero-premium {
  min-height: auto !important;
  overflow: hidden !important; /* Memotong right: -7% agar tidak dorong layar HP */
}

/* 3. RAPETKAN JARAK HERO DENGAN AKSES CEPAT & NOTIFIKASI BERITA */
.pwa-hero-content {
  min-height: auto !important;
  padding-bottom: 35px !important; /* Mengecilkan ruang kosong bawah hero dari 112px */
}

.pwa-hero-title {
  padding-top: 10px !important;
}

/* 4. PENYESUAIAN KHUSUS RESPONSIVE MOBILE (HP) */
@media (max-width: 600px) {
  .pwa-hero-premium {
    padding-bottom: 25px !important;
  }
  
  .pwa-hero-image,
  .pwa-hero-visual {
    right: 0 !important;
    width: 48% !important;
    height: 180px !important;
  }
  
  .pwa-hero-title {
    width: 55% !important;
  }

  .pwa-search-box {
    position: relative !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 15px 16px 0 !important;
  }
  
  /* Tarik area berita & dashboard lebih naik ke atas */
  .pwa-access-grid,
  .pwa-dashboard {
    margin-top: 0 !important;
    padding-top: 10px !important;
  }
}
/* =========================================================
   FORCE PWA MODE ON REAL MOBILE DEVICES (MAX-WIDTH: 400PX)
========================================================= */
@media (max-width: 768px) {
  /* 1. Paksa Body & Container Utama Mengikuti Ukuran HP */
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 2. Aktifkan Komponen PWA Tanpa Syarat Class .pwa-mode */
  .pwa-app {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* 3. Kunci Banner Hero Supaya Tidak Melebar ke Kanan */
  .pwa-hero-premium {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  .pwa-hero-image, 
  .pwa-hero-visual {
    right: -10px !important;
    width: 50% !important;
  }

  /* 4. Tampilkan Bottom Nav secara Mutlak di Layar HP */
  .pwa-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
  }
}
/* =========================================================
   FIX TOTAL RESPONSIVE MOBILE (SESUAI GAMBAR 2 & 3)
========================================================= */

/* 1. Hilangkan Space Kosong Raksasa di Bawah Konten */
.pwa-app, body {
  padding-bottom: 75px !important;
  margin-bottom: 0 !important;
  min-height: auto !important;
}

/* 2. Paksa Semua Konten Masuk 1 Kolom di HP (Anti Zoom-Out) */
@media (max-width: 768px) {
  /* Kunci Layar Pas 100% Mobile */
  html, body, .pwa-app {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Ubah Dashboard & Notifikasi Jadi 1 Kolom Bertumpuk ke Bawah */
  .pwa-dashboard {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 0 16px 15px !important;
  }

/* Buat panel statistik bertumpuk dari atas ke bawah */
.pwa-dashboard .pwa-panel:nth-child(2) {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

/* Buat 4 kartunya saja yang tersusun 2x2 di bawah judul */
.pwa-stat-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

  /* Rapatkan Jarak Berita Terbaru ke Atas */
  .pwa-news-section,
  .news-section,
  #berita-terbaru {
    margin-top: 10px !important;
    padding-top: 0 !important;
  }
}
/* =========================================================
   FIX SKALA VIEWPORT HP ANDROID (ANTI ZOOM-OUT DESKTOP)
========================================================= */

@media screen and (max-width: 768px) {
  /* 1. Paksa Container Utama Berukuran Tepat Layar HP */
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .pwa-app {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* 2. Matikan Lebar Berlebih pada Hero Banner */
  .pwa-hero-premium, 
  .pwa-hero-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 3. Susun Notifikasi & Statistik Jadi 1 Kolom Utuh (Besar & Jelas) */
  .pwa-dashboard {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 12px !important;
    gap: 14px !important;
  }

  .pwa-panel {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 4. Buat Grid Akses Cepat Jadi 3 Kolom atau 2 Kolom Proporsional */
  .pwa-access-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 12px !important;
  }

  .pwa-access-card {
    min-height: 85px !important;
    padding: 8px 4px !important;
  }

  /* 5. Perbesar Font Judul Agar Nyaman Dibaca di Layar HP */
  .pwa-hero-title h1 {
    font-size: 20px !important;
  }
}
/* =========================================================
   FIX TOTAL RESPONSIVE & TABEL PROFILE (ANTI MODE PC)
========================================================= */

/* 1. KUNCI VIEWPORT HP ANDROID (MENGEMBALIKAN UKURAN ASLI) */
html, body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100% !important;
}

.pwa-app, main, container {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* 2. AMPUNAN TABEL PINJAMAN (DIBUAT BISA DI-SCROLL AGAR TIDAK MENDORONG LAYAR) */
table {
  width: 100% !important;
  display: block !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch;
}

.table-responsive, 
[class*="table"] {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  display: block !important;
}

/* 3. NORMALKAN SCALE KARTU PROFIL & ACCESS */
@media screen and (max-width: 768px) {
  /* Hilangkan Min-Width Elemen yang Terlalu Lebar */
  * {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  
  /* Buat Kartu Profil & Konten Pas Lebar Layar Mobile */
  .profile-card,
  .pwa-panel,
  .card {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
/* =========================================================
   PWA MOBILE OVERRIDE
   PERPUSTAKAAN UTU
   ========================================================= */

@media screen and (max-width: 900px) {

    /* -----------------------------------------------------
       GLOBAL
    ----------------------------------------------------- */

    html.pwa-mode,
    body.pwa-mode {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    html.pwa-mode .pwa-app {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }


    /* -----------------------------------------------------
       AKSES CEPAT
       HP = 2 KOLOM
    ----------------------------------------------------- */

    html.pwa-mode .pwa-services-grid,
    html.pwa-mode .pwa-quick-grid,
    html.pwa-mode .quick-access-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
    }


    /* -----------------------------------------------------
       CARD AKSES CEPAT
    ----------------------------------------------------- */

    html.pwa-mode .pwa-service-card,
    html.pwa-mode .pwa-access-card {
        width: 100% !important;
        min-width: 0 !important;
        height: 94px !important;
        min-height: 94px !important;
        padding: 12px !important;
        border-radius: 17px !important;
    }


    /* -----------------------------------------------------
       HERO
    ----------------------------------------------------- */

    html.pwa-mode .pwa-hero-premium {
        width: 100% !important;
        min-height: 360px !important;
        height: auto !important;

        padding: 30px 18px 85px !important;

        overflow: hidden !important;
    }


    /* HERO CONTENT */

    html.pwa-mode .pwa-hero-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }


    /* JUDUL */

    html.pwa-mode .pwa-hero-title {
        width: 58% !important;
        max-width: 58% !important;
        position: relative !important;
        z-index: 5 !important;
    }

    html.pwa-mode .pwa-hero-title h1 {
        font-size: 25px !important;
        line-height: 1.05 !important;
    }

    html.pwa-mode .pwa-hero-title p {
        font-size: 10px !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
    }


    /* -----------------------------------------------------
       GAMBAR GEDUNG
    ----------------------------------------------------- */

    html.pwa-mode .pwa-hero-image {
        position: absolute !important;

        right: -5px !important;
        top: 45px !important;
        bottom: auto !important;

        width: 57% !important;
        max-width: 57% !important;

        z-index: 3 !important;
    }

    html.pwa-mode .pwa-hero-image img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }


    /* -----------------------------------------------------
       SEARCH HERO
    ----------------------------------------------------- */

    html.pwa-mode .pwa-hero-search,
    html.pwa-mode .pwa-search-box,
    html.pwa-mode .hero-search {
        width: 100% !important;
        max-width: 100% !important;
    }


    /* -----------------------------------------------------
       BERITA
    ----------------------------------------------------- */

    html.pwa-mode .news-section {
        width: 100% !important;
        padding: 28px 14px 90px !important;
    }

    html.pwa-mode .news-featured-grid,
    html.pwa-mode .news-small-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    html.pwa-mode .news-featured-card {
        width: 100% !important;
        height: 220px !important;
    }

    html.pwa-mode .news-small-card {
        width: 100% !important;
    }


    /* -----------------------------------------------------
       NOTIFIKASI + STATISTIK
       HP = 1 KOLOM
    ----------------------------------------------------- */

    html.pwa-mode .pwa-home-columns,
    html.pwa-mode .pwa-dashboard-grid,
    html.pwa-mode .pwa-info-grid {
        grid-template-columns: 1fr !important;
    }


    /* -----------------------------------------------------
       BOTTOM NAV
    ----------------------------------------------------- */

    html.pwa-mode .pwa-bottom-nav {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;

        width: 100% !important;

        z-index: 99999 !important;
    }

}


/* =========================================================
   HP KECIL
   ========================================================= */

@media screen and (max-width: 480px) {

    html.pwa-mode .pwa-hero-premium {
        min-height: 340px !important;
        padding: 25px 15px 78px !important;
    }

    html.pwa-mode .pwa-hero-title {
        width: 58% !important;
        max-width: 58% !important;
    }

    html.pwa-mode .pwa-hero-title h1 {
        font-size: 23px !important;
    }

    html.pwa-mode .pwa-hero-title p {
        font-size: 9px !important;
    }

    html.pwa-mode .pwa-hero-image {
        width: 58% !important;
        max-width: 58% !important;
        right: -8px !important;
        top: 42px !important;
    }

    html.pwa-mode .pwa-service-card,
    html.pwa-mode .pwa-access-card {
        height: 90px !important;
        min-height: 90px !important;
    }

}
/* Styling Tombol Notifikasi PWA agar Rapi */
.pwa-notification-btn, #btn-notif-pwa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #003E7E;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

/* Saat Notifikasi Sudah Aktif (Warna Hijau) */
.pwa-notification-btn.is-enabled, #btn-notif-pwa.is-enabled {
    background-color: #2e7d32;
    color: #ffffff;
}

.pwa-notification-btn:hover {
    opacity: 0.9;
}
