/* ================= VARIABEL WARNA ================= */
:root {
  --tp-green: #03AC0E;
  --tp-green-dark: #008C0A;
  --tp-bg: #F4F4F4;
  --tp-text: #2D2D2D;
  --tp-muted: #8A8A8A;
  --tp-card: #FFFFFF;
}

/* ================= DASAR ================= */
body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  background-color: var(--tp-bg);
  color: var(--tp-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { 
  flex: 1 0 auto; 
  padding-bottom: 80px; /* Ruang untuk bottom nav di HP */
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* ================= NAVBAR DESKTOP ================= */
.navbar-bl {
  background-color: #FFFFFF;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.navbar-bl .navbar-brand img { height: 40px; }
.navbar-bl .nav-link { color: var(--tp-text) !important; font-weight: 700; font-size: 14px; }
.navbar-bl .nav-link:hover { color: var(--tp-green) !important; }
.navbar-bl .btn-login-bl {
  background-color: var(--tp-green);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 24px;
}
.navbar-bl .btn-login-bl:hover { background-color: var(--tp-green-dark); color: #fff; }

.search-bl {
  background-color: #F2F2F2;
  border: 1px solid #F2F2F2;
  border-radius: 8px;
  padding: 10px 15px;
  width: 100%;
  font-size: 14px;
}
.search-bl:focus { outline: none; border: 2px solid var(--tp-green); background-color: #fff; }
.btn-search-bl {
  background-color: var(--tp-green);
  color: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 700;
}

/* ================= RATING STAR INTERAKTIF ================= */
.rating-stars {
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
}
.rating-stars .fa-star:hover {
    transform: scale(1.2);
    transition: 0.1s;
}
.rating-stars .fa-star.checked {
    color: #FFB300;
}

/* ================= HEADER MOBILE & DRAWER MENU ================= */
.mobile-header {
  background-color: #fff;
  padding: 10px 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1040;
}
.mobile-header-inner { display: flex; align-items: center; gap: 10px; }
.mobile-logo { height: 35px; flex-shrink: 0; }
.mobile-search-bar {
  flex: 1;
  background-color: #F0F2F5;
  border: none;
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 14px;
  outline: none;
}
.btn-hamburger {
  background: none; border: none; font-size: 24px; color: #1F1F1F; padding: 5px; cursor: pointer; flex-shrink: 0;
}

.drawer-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5); z-index: 1050; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.drawer-overlay.active { opacity: 1; visibility: visible; }
.drawer-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background-color: #fff; z-index: 1060; transition: right 0.3s ease;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1); overflow-y: auto; display: flex; flex-direction: column;
}
.drawer-menu.active { right: 0; }
.drawer-header { background-color: var(--tp-green); color: #fff; padding: 20px; }
.drawer-header h6 { margin: 0; font-size: 18px; font-weight: 700; }
.drawer-menu a {
  display: flex; align-items: center; gap: 15px; padding: 15px 20px;
  text-decoration: none; color: #1F1F1F; font-weight: 600; border-bottom: 1px solid #f0f0f0; transition: 0.2s;
}
.drawer-menu a:hover { background-color: #F0F2F5; color: var(--tp-green); }
.drawer-menu a i { width: 20px; font-size: 16px; }

/* ================= TEMA PLAY STORE V2 (REDESIGN BERANDA) ================= */

/* --- Banner Hero --- */
.ps-hero {
  background: linear-gradient(135deg, #03AC0E 0%, #008C0A 100%);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 28px;
  position: relative;
  box-shadow: 0 8px 30px rgba(3, 172, 14, 0.25);
}
.ps-hero-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.ps-hero-body {
  padding: 16px 20px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}
.ps-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  flex-shrink: 0;
  margin-top: -36px;
  background: #fff;
}
.ps-hero-info { flex: 1; min-width: 0; }
.ps-hero-title {
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 4px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ps-hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 500;
}
.ps-hero-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}
.ps-hero-rating i { color: #FFB300; font-size: 11px; }
.btn-hero-action {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 24px;
  padding: 8px 22px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}
.btn-hero-action:hover {
  background: rgba(255,255,255,0.35);
  color: #fff;
  transform: scale(1.03);
}

/* --- Section Header --- */
.ps-section-v2 {
  margin-bottom: 24px;
}
.ps-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}
.ps-section-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1F1F1F;
  margin: 0;
}
.ps-section-header a {
  font-size: 14px;
  font-weight: 600;
  color: var(--tp-green);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.ps-section-header a:hover { color: var(--tp-green-dark); }

/* --- Horizontal Scroll --- */
.ps-hscroll {
  display: flex;
  overflow-x: auto;
  gap: 14px;
  padding: 4px 4px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ps-hscroll::-webkit-scrollbar { display: none; }

/* --- Kartu Aplikasi (Play Store Style) --- */
.ps-card {
  width: 150px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #1F1F1F;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
  position: relative;
}
.ps-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.ps-card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  background: #F0F2F5;
}
.ps-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--tp-green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}
.ps-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ps-card-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 3px;
  color: #1F1F1F;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.ps-card-sub {
  font-size: 11px;
  color: #5F6368;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ps-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #5F6368;
  margin-bottom: 8px;
}
.ps-card-rating i { color: #FFB300; font-size: 10px; }
.ps-card-rating .count { color: #999; font-size: 10px; }
.btn-ps-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #E8F5E9;
  color: var(--tp-green);
  border: none;
  border-radius: 20px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  margin-top: auto;
  width: 100%;
  letter-spacing: 0.3px;
}
.btn-ps-card:hover {
  background: var(--tp-green);
  color: #fff;
}
.btn-ps-card.apk-style {
  background: var(--tp-green);
  color: #fff;
}
.btn-ps-card.apk-style:hover {
  background: var(--tp-green-dark);
  color: #fff;
}

/* --- SEO Section --- */
.ps-seo-box {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin-top: 32px;
  margin-bottom: 20px;
}
.ps-seo-box h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1F1F1F;
  margin-bottom: 12px;
}
.ps-seo-box p {
  font-size: 14px;
  color: #5F6368;
  line-height: 1.7;
  margin: 0;
}

/* ================= TEMA PLAY STORE (LAMA - COMPATIBILITY) ================= */
.ps-banner {
  background-color: #F0F2F5; border-radius: 16px; overflow: hidden; margin-bottom: 24px;
  position: relative; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ps-banner img.bg { width: 100%; height: 200px; object-fit: cover; }
.ps-banner-content { padding: 16px; display: flex; align-items: center; gap: 16px; background-color: #fff; }
.ps-banner-icon {
  width: 56px; height: 56px; border-radius: 12px; object-fit: cover; margin-top: -40px; border: 4px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.ps-banner-info { flex: 1; min-width: 0; }
.ps-banner-title { font-weight: 700; font-size: 18px; margin: 0; color: #1F1F1F; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.ps-banner-sub { color: #5F6368; font-size: 12px; }
.btn-ps-install {
  background-color: var(--tp-green); color: #fff; border-radius: 20px; padding: 8px 24px;
  font-weight: 700; font-size: 14px; border: none; text-decoration: none; text-transform: uppercase; white-space: nowrap;
}

.ps-section-title { font-size: 18px; font-weight: 700; margin: 24px 0 12px; color: #1F1F1F; }

.h-scroll {
  display: flex; overflow-x: auto; gap: 16px; padding-bottom: 16px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }

.ps-app-item { width: 140px; flex-shrink: 0; display: flex; flex-direction: column; text-decoration: none; color: #1F1F1F; }
.ps-app-icon {
  width: 140px; height: 140px; border-radius: 24px; object-fit: cover; margin-bottom: 8px; background-color: #F0F2F5;
}
.ps-app-name { font-size: 14px; font-weight: 500; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-app-meta { font-size: 12px; color: #5F6368; margin-top: 2px; }
.ps-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #5F6368; margin-top: 4px; }
.ps-rating i { color: #FFB300; font-size: 10px; }

/* ================= CARD PRODUK DAFTAR (MOD/Livery) ================= */
.card-bl {
  background-color: var(--tp-card); border: none; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: all 0.3s ease; height: 100%;
}
.card-bl:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.12); transform: translateY(-3px); }
.card-bl img { height: 160px; object-fit: cover; }
.card-bl .card-body { padding: 12px; }
.card-bl .card-title {
  font-size: 14px; font-weight: 600; color: var(--tp-text); display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 5px; height: 38px;
}
.card-bl .price-bl { color: var(--tp-green); font-weight: 800; font-size: 16px; }
.card-bl .badge-bl { font-size: 10px; padding: 4px 8px; border-radius: 4px; font-weight: 700; }
.rating-bl { font-size: 11px; color: var(--tp-muted); margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.rating-bl i { color: #FFC400; font-size: 10px; }

/* ================= FOOTER ================= */
.footer-bl { background-color: var(--tp-card); color: var(--tp-text); padding: 40px 0; margin-top: 40px; border-top: 1px solid #e8e8e8; }
.footer-bl h6 { font-weight: 800; margin-bottom: 15px; color: var(--tp-text); }
.footer-bl a { color: #555; text-decoration: none; display: block; margin-bottom: 8px; font-size: 14px; }
.footer-bl a:hover { color: var(--tp-green); }

/* ================= MOBILE APP TEMPLATE (BOTTOM NAV PWA) ================= */
.mobile-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; width: 100%; height: 65px;
  background-color: #ffffff; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); display: flex;
  justify-content: space-around; align-items: center; z-index: 1050; border-top: 1px solid #e8e8e8;
  padding-bottom: env(safe-area-inset-bottom);
}
.bot-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; color: var(--tp-muted); font-size: 11px; font-weight: 600;
  flex-grow: 1; height: 100%; width: 100%; gap: 4px; transition: color 0.2s;
}
.bot-nav-item i { font-size: 20px; }
.bot-nav-item.active, .bot-nav-item:active { color: var(--tp-green); }

/* ================= TOMBOL INSTALL PWA ================= */
#installAppBtn {
  display: none; position: fixed; bottom: 75px; left: 50%; transform: translateX(-50%);
  background-color: var(--tp-green); color: white; padding: 10px 25px; border-radius: 30px;
  font-weight: bold; font-size: 14px; box-shadow: 0 4px 15px rgba(3, 172, 14, 0.4);
  z-index: 1051; border: none; animation: pulse 2s infinite;
}

/* ✅ PENTING: Sembunyikan tombol Install di Desktop/Laptop */
@media (min-width: 768px) {
  #installAppBtn {
    display: none !important;
  }
}

@keyframes pulse {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
  100% { transform: translateX(-50%) scale(1); }
}

/* ================= ADMIN SIDEBAR V2 (MATERIAL DESIGN) ================= */
.admin-sidebar {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 0;
  padding: 0;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  margin-bottom: 0;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  z-index: 1030;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* --- Profile Card --- */
.admin-profile-card {
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 28px 20px 24px !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  flex-shrink: 0;
}
.admin-profile-card img.rounded-circle {
  width: 56px !important;
  height: 56px !important;
  object-fit: cover;
  border: 3px solid var(--tp-green) !important;
  box-shadow: 0 0 15px rgba(3, 172, 14, 0.3);
  margin-bottom: 12px !important;
}
.admin-profile-card h6 {
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ✅ FIX: Gambar badge Official - ukuran kecil 16px inline */
.admin-profile-card h6 img {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  max-width: 16px !important;
  max-height: 16px !important;
}

/* ✅ FIX: Badge teks - ukuran kecil, tanpa border */
.admin-profile-card h6 .badge {
  font-size: 9px !important;
  font-weight: 700;
  padding: 2px 7px !important;
  border-radius: 10px !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  line-height: 1.4;
  letter-spacing: 0.3px;
  vertical-align: middle;
  display: inline-block;
}
.admin-profile-card h6 .badge.bg-primary {
  background-color: var(--tp-green) !important;
  color: #fff !important;
  border: none !important;
}
.admin-profile-card h6 .badge.bg-warning {
  background-color: #FF8F00 !important;
  color: #fff !important;
  border: none !important;
}
.admin-profile-card h6 .badge.bg-danger {
  background-color: #DC3545 !important;
  color: #fff !important;
  border: none !important;
}
.admin-profile-card h6 .badge.bg-info {
  background-color: #0097A7 !important;
  color: #fff !important;
  border: none !important;
}
.admin-profile-card h6 .badge.bg-success {
  background-color: var(--tp-green) !important;
  color: #fff !important;
  border: none !important;
}

.admin-profile-card small {
  color: rgba(255,255,255,0.45) !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* --- Menu Section --- */
.admin-menu-section {
  margin-bottom: 4px;
  padding: 0 12px;
  flex-shrink: 0;
}
.admin-menu-title {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  padding: 12px 12px 6px;
  font-weight: 700;
}
.admin-menu-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 2px;
  font-weight: 500;
  font-size: 13.5px;
  transition: all 0.2s ease;
  position: relative;
}
.admin-menu-item i {
  width: 22px;
  margin-right: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.35);
  transition: all 0.2s ease;
  text-align: center;
}
.admin-menu-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
  transform: none;
}
.admin-menu-item:hover i { color: var(--tp-green); }
.admin-menu-item.active {
  background: var(--tp-green);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(3, 172, 14, 0.35);
  border-radius: 10px;
}
.admin-menu-item.active i { color: #fff; }
.admin-menu-item .badge {
  margin-left: auto;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 700;
  border: none !important;
}

/* ✅ FIX: Sidebar footer */
.admin-sidebar-footer {
  flex-shrink: 0;
  padding: 12px 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}

/* ================= ADMIN DASHBOARD V2 (MATERIAL DESIGN) ================= */

/* --- Stat Cards --- */
.stat-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.stat-card .card-body {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-card .stat-info { flex: 1; min-width: 0; }
.stat-card .stat-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-card .stat-label {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.8;
  margin: 0;
}
.stat-card .stat-trend {
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 20px;
}
.stat-card .stat-trend.up {
  color: #03AC0E;
  background: rgba(3, 172, 14, 0.1);
}
.stat-card .stat-trend.down {
  color: #DC3545;
  background: rgba(220, 53, 69, 0.1);
}

/* --- Warna Stat Card --- */
.stat-card.card-users {
  background: linear-gradient(135deg, #03AC0E, #008C0A);
  color: #fff;
}
.stat-card.card-users .stat-icon {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.stat-card.card-users .stat-trend.up {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.stat-card.card-pending {
  background: linear-gradient(135deg, #FF8F00, #F57C00);
  color: #fff;
}
.stat-card.card-pending .stat-icon {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.stat-card.card-pending .stat-trend.up {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.stat-card.card-livery {
  background: linear-gradient(135deg, #7C4DFF, #651FFF);
  color: #fff;
}
.stat-card.card-livery .stat-icon {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.stat-card.card-livery .stat-trend.up {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.stat-card.card-mod {
  background: linear-gradient(135deg, #0097A7, #00838F);
  color: #fff;
}
.stat-card.card-mod .stat-icon {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.stat-card.card-mod .stat-trend.up {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* --- Welcome Card --- */
.welcome-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  background: linear-gradient(135deg, #03AC0E 0%, #008C0A 100%);
  color: #fff;
  position: relative;
}
.welcome-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.welcome-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: 40px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.welcome-card .card-body {
  padding: 24px 28px;
  position: relative;
  z-index: 1;
}
.welcome-card h5 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.welcome-card p {
  font-size: 14px;
  opacity: 0.85;
  margin: 0;
}

/* ================= ADMIN LAYOUT FIX ================= */
.admin-main-content {
  margin-left: 260px;
  padding: 24px 28px;
  min-height: 100vh;
  background: #F4F4F4;
}

/* Sidebar overlay for mobile */
.admin-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1055;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.admin-sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Mobile toggle button */
.admin-sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1040;
  background: var(--tp-green);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(3, 172, 14, 0.3);
  cursor: pointer;
  transition: all 0.2s;
  align-items: center;
  justify-content: center;
}
.admin-sidebar-toggle:hover {
  background: var(--tp-green-dark);
  transform: scale(1.05);
}

/* ================= FORM & INPUT ================= */
.form-control, .form-select { border-radius: 8px; padding: 10px 15px; border: 1px solid #e8e8e8; font-size: 14px; }
.form-control:focus, .form-select:focus { border-color: var(--tp-green); box-shadow: 0 0 0 0.2rem rgba(3, 172, 14, 0.25); }

/* ================= RESPONSIVE FIX ================= */
@media (min-width: 992px) {
  .admin-sidebar { position: fixed; top: 0; }
}

@media (max-width: 991px) {
  .admin-sidebar {
    position: fixed;
    left: -280px;
    transition: left 0.3s ease;
    z-index: 1060;
  }
  .admin-sidebar.show {
    left: 0;
  }
  .admin-main-content {
    margin-left: 0;
    padding: 16px;
  }
  .admin-sidebar-toggle { display: flex; }
}

@media (max-width: 768px) {
  .navbar-bl .navbar-brand img { height: 35px; }
  .hero-bl { padding: 20px; text-align: center; flex-direction: column; }
  .hero-bl h1 { font-size: 1.8rem; }
  .hero-bl p { font-size: 0.9rem; }
  .row { margin-left: -8px; margin-right: -8px; }
  .col-6, .col-md-2, .col-lg-2, .col-md-3, .col-md-4, .col-md-8, .col-md-9, .col-lg-3, .col-lg-9 { 
    padding-left: 8px; padding-right: 8px; 
  }
}

/* ================= PLAY STORE V2 - RESPONSIVE ================= */
@media (min-width: 768px) {
  .ps-hero-img { height: 300px; }
  .ps-hero-title { font-size: 22px; }
  .ps-card { width: 170px; }
  .ps-card-img { height: 170px; }
}

@media (max-width: 576px) {
  .ps-hero-img { height: 180px; }
  .ps-hero-body { padding: 12px 16px 16px; }
  .ps-hero-icon { width: 52px; height: 52px; border-radius: 12px; margin-top: -28px; }
  .ps-hero-title { font-size: 15px; }
  .ps-card { width: 135px; }
  .ps-card-img { height: 135px; }
  .ps-seo-box { padding: 20px; border-radius: 16px; }
  .ps-seo-box h2 { font-size: 16px; }
  .ps-seo-box p { font-size: 13px; }
  .stat-card .stat-value { font-size: 22px; }
  .stat-card .stat-icon { width: 40px; height: 40px; font-size: 18px; }
  .stat-card .card-body { padding: 14px; }
  .welcome-card .card-body { padding: 18px 20px; }
  .welcome-card h5 { font-size: 16px; }
  .welcome-card p { font-size: 13px; }
}

/* ================= KATEGORI LIVERY CARDS ================= */
.livery-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 15px 5px;
    height: 100%;
    text-decoration: none;
    color: #1F1F1F;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.livery-cat-card:hover {
    border-color: var(--tp-green);
    box-shadow: 0 4px 10px rgba(3, 172, 14, 0.1);
    transform: translateY(-2px);
}

.livery-cat-icon {
    width: 48px;
    height: 48px;
    background-color: #E6FBE8;
    color: var(--tp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 20px;
}

.livery-cat-name {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

/* ================= DARK MODE ================= */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode .navbar-bl,
body.dark-mode .mobile-header,
body.dark-mode .card-bl,
body.dark-mode .admin-sidebar,
body.dark-mode .admin-profile-card,
body.dark-mode .ps-banner-content,
body.dark-mode .footer-bl {
  background-color: #1e1e1e !important;
  border-color: #333 !important;
}

body.dark-mode .navbar-bl .nav-link,
body.dark-mode .text-dark,
body.dark-mode .ps-section-title,
body.dark-mode .ps-banner-title,
body.dark-mode .card-bl .card-title {
  color: #e0e0e0 !important;
}

body.dark-mode .text-muted,
body.dark-mode .ps-app-meta,
body.dark-mode .ps-banner-sub,
body.dark-mode .ps-card-sub {
  color: #aaaaaa !important;
}

body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .mobile-search-bar {
  background-color: #2a2a2a !important;
  color: #fff !important;
  border-color: #444 !important;
}

body.dark-mode .modal-content,
body.dark-mode .table {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

body.dark-mode .table-light th {
  background-color: #2a2a2a;
  color: #fff;
  border-color: #444;
}

body.dark-mode .ps-hscroll {
  background-color: transparent;
}

body.dark-mode .dropdown-menu {
  background-color: #1e1e1e;
  border: 1px solid #333;
}
body.dark-mode .dropdown-item {
  color: #e0e0e0;
}
body.dark-mode .dropdown-item:hover {
  background-color: #333;
  color: #fff;
}

/* ================= TOGGLE DAY/NIGHT MODE ================= */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px; /* Diperkecil dari 8px 24px */
    border-radius: 50px; 
    font-weight: 700;
    font-size: 12px; /* Diperkecil dari 14px */
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    margin: 0 auto;
    cursor: pointer;
}

.theme-toggle-btn .day-content,
.theme-toggle-btn .night-content {
    display: flex;
    align-items: center;
    gap: 5px; /* Diperkecil dari 8px */
}

.theme-toggle-btn .night-content { display: none; }

body:not(.dark-mode) .theme-toggle-btn {
    background: linear-gradient(135deg, #FF8C00, #FF6600);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.3);
}
body:not(.dark-mode) .theme-toggle-btn .day-content { display: flex; }
body:not(.dark-mode) .theme-toggle-btn .night-content { display: none; }

body.dark-mode .theme-toggle-btn {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    box-shadow: 0 4px 8px rgba(13, 71, 161, 0.4);
}
body.dark-mode .theme-toggle-btn .day-content { display: none; }
body.dark-mode .theme-toggle-btn .night-content { display: flex; }

.theme-toggle-btn .fa-sun {
    color: #FFD700;
}
.theme-toggle-btn .fa-moon {
    color: #FFD700;
}
.theme-toggle-btn .stars {
    display: inline-flex;
    gap: 1px; /* Diperkecil dari 2px */
    font-size: 7px; /* Diperkecil dari 8px */
    color: #FFD700;
}

/* ================= FIX IKON MOBILE HEADER DI DARK MODE ================= */
body.dark-mode .mobile-header {
    background-color: #1e1e1e !important;
    border-bottom: 1px solid #333 !important;
}

/* Ubah warna garis 3 (hamburger) dan ikon lain menjadi putih */
body.dark-mode .btn-hamburger,
body.dark-mode .fa-magnifying-glass {
    color: #ffffff !important;
}

/* Background kolom pencarian menjadi agak gelap, teks putih */
body.dark-mode .mobile-search-bar {
    background-color: #333 !important;
    color: #fff !important;
}
body.dark-mode .mobile-search-bar::placeholder {
    color: #aaa !important;
}

/* Ubah warna tombol toggle mobile di header agar tetap terlihat */
body.dark-mode .theme-toggle-btn-mobile {
    background-color: #333 !important;
}

