/* HEADER */
/* J-PROJECT PREMIUM UI CORE 2026 
    Features: Glassmorphism, Responsive Mobile, Dark Mode Native
*/

:root {
  --primary-blue: #0d6efd;
  --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --nav-height: 70px;
  --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* DARK MODE OVERRIDE */
[data-bs-theme="dark"] {
  --glass-bg: rgba(20, 22, 25, 0.85);
  --bs-body-bg: #0f1113;
  --bs-border-color: rgba(255, 255, 255, 0.08);
}

.text-dark-emphasis{
  font-size: 12px;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  overflow-x: hidden;
}

/* --- 1. PROMO TICKER --- */
.promo-ticker {
  background: var(--primary-gradient);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
}

/* --- 2. HEADER & GLASSMORPHISM --- */
.header-Home {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--bs-border-color);
  transition: var(--transition-standard);
}

/* --- 3. SEARCH BAR PREMIUM --- */
/* =========================================================
   SEARCH BAR PREMIUM - JA-SYSTEM (SMART POS & ENTERPRISE)
   ========================================================= */

/* 1. Container Utama (Auto Center) */
.search-container {
    position: relative;
    max-width: 550px;
    margin: 0 auto;
    z-index: 1050;
    align-items: center;
}

/* 2. Input Search */
.search-long {
    border-radius: 50px !important;
    padding-left: 50px !important;
    height: 48px;
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid transparent !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 0.95rem;
}

.search-long:focus {
    background: #fff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.15) !important;
    transform: translateY(-2px);
}

/* Icon Search */
.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    z-index: 5;
    transition: color 0.3s;
}

.search-long:focus + .search-icon {
    color: #0d6efd;
}

/* 3. Dropdown Suggestion Box */
#search-suggestion-box {
    position: absolute;
    top: 58px;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    animation: searchSlideDown 0.3s ease-out;
    display: none; /* Control via JS */
}

@keyframes searchSlideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 4. Item Hasil Pencarian */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
    margin: 4px 8px;
}

.search-result-item:hover {
    background: rgba(13, 110, 253, 0.08);
    transform: translateX(8px);
}

.search-result-image {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.search-result-info h6 {
    margin-bottom: 2px;
    font-size: 0.95rem;
    font-weight: 700;
}

.search-result-info span {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Scrollbar Style */
#live-search-results::-webkit-scrollbar {
    width: 5px;
}
#live-search-results::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 10px;
}

/* =========================================================
   DARK MODE ADAPTATION
   ========================================================= */

[data-bs-theme="dark"] .search-long {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f8f9fa;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .search-long:focus {
    background: #1e1e1e !important;
    border-color: #3d8bfd !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] #search-suggestion-box {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

[data-bs-theme="dark"] .search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #3d8bfd;
}

[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] #search-result-content {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


/* --- 4. NAVIGATION ICONS & BADGES --- */
.nav-icon-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--bs-body-color);
  transition: var(--transition-standard);
  background: transparent;
  border: none;
  text-decoration: none;
}

.nav-icon-link:hover {
  background: rgba(13, 110, 253, 0.1);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.badge-notify {
  font-size: 9px;
  padding: 3px 6px;
  border: 2px solid var(--bs-body-bg);
  top: 5px !important;
  right: 3px !important;
}

/* --- 5. SUB NAV (MENU) --- */
nav.bg-white.border-top {
  background-color: var(--glass-bg) !important;
}

.nav-link-j {
  color: var(--bs-secondary-color) !important;
  font-size: 12px;
  font-weight: 700;
  position: relative;
  padding: 10px 15px !important;
}

.nav-link-j::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: var(--transition-standard);
  transform: translateX(-50%);
}

.nav-link-j:hover::after {
  width: 20px;
}

.nav-link-j:hover {
  color: var(--primary-blue) !important;
}

/* --- 6. MOBILE RESPONSIVE OPTIMIZATION --- */
@media (max-width: 991.98px) {
  .navbar-brand img {
    width: 32px;
    height: 32px;
  }

  .navbar-brand span {
    font-size: 1.2rem;
  }

  /* Di Mobile, Sub-Nav dibuat horizontal scroll agar tidak numpuk */
  nav.bg-white.border-top .container {
    padding: 0;
  }

  nav.bg-white.border-top ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start !important;
    padding: 5px 15px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
  }

  nav.bg-white.border-top ul::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
  }

  .nav-link-j {
    white-space: nowrap;
    font-size: 11px;
  }
}

/* Dropdown Premium Look */
.dropdown-menu {
  border: 1px solid var(--bs-border-color) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
  border-radius: 15px !important;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* AKHIR HEADER */

/* HOME */
/* --- HOME HERO EXCLUSIVE --- */

/* Typography & Colors */
.fw-black {
  font-weight: 900;
}
.tracking-widest {
  letter-spacing: 0.2rem;
}

.text-gradient {
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Abstract Background Text */
.abstract-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-size: 12vw;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.03);
  white-space: nowrap;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

[data-bs-theme="dark"] .abstract-bg {
  color: rgba(255, 255, 255, 0.02);
}

/* Hero Image 3D Effect */
.hero-3d {
  border-radius: 40px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
  animation: float3D 6s ease-in-out infinite;
  transition: transform 0.5s ease;
}

@keyframes float3D {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-20px) rotate(2deg) scale(1.02);
  }
}

/* Button Glow Premium */
.btn-j-glow {
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  border: none;
  color: white !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 16px;
  font-weight: 700;
}

.btn-j-glow:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(13, 110, 253, 0.4);
}

.btn-j-glow::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
  transition: 0.5s;
  opacity: 0;
}

.btn-j-glow:hover::after {
  left: 100%;
  opacity: 1;
}

/* Hero Stats Glassmorphism */
.hero-stats {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 20px;
}

[data-bs-theme="dark"] .hero-stats {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 991.98px) {
  #home {
    min-height: 100vh !important;
    text-align: center;
    padding-top: 100px !important;
  }

  .display-2 {
    font-size: 3rem;
  }

  .abstract-bg {
    font-size: 20vw;
  }

  .hero-3d {
    margin-top: 40px;
    max-width: 80%;
  }

  .btn-j-glow {
    width: 100%;
  }
}
/* AKHIR HOME */

/* KATALOG */
/* --- KATALOG & HORIZONTAL SCROLL --- */

/* Container Scroll */
.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 25px;
  padding: 20px 5px;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.scroll-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.scroll-item {
  min-width: 300px; /* Lebar card di desktop */
  flex: 0 0 auto;
}

/* Card Styling */
.product-card {
  border: none !important;
  border-radius: 25px !important;
  transition: var(--transition-standard);
  background: var(--bs-body-bg);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.product-card .card-img-top {
  border-radius: 25px 25px 0 0;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .card-img-top {
  transform: scale(1.08);
}

/* Button J-Outline */
.btn-j-outline {
  border: 2px solid #0d6efd;
  color: #0d6efd;
  background: transparent;
  border-radius: 14px;
  font-weight: 700;
  transition: all 0.3s;
}

.btn-j-outline:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2);
}

/* Title Styling */
.bubble-title {
  font-weight: 900;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

[data-bs-theme="dark"] .text-dark {
  color: #adb5bd !important; /* Fix text color in dark mode */
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
  .scroll-item {
    min-width: 260px; /* Lebih kecil di mobile agar sisa card sebelahnya kelihatan */
  }

  .bubble-title {
    font-size: 1.8rem;
  }

  .d-flex.gap-3 {
    display: none !important; /* Sembunyikan tombol panah di mobile, cukup swipe */
  }

  .product-card .card-img-top {
    height: 250px !important;
  }
}
/* AKHIR KATALOG */

/* TESTIMONI */
/* --- TESTIMONIAL GRID OPTIMIZED --- */
.testi-container {
  display: flex;
  flex-wrap: wrap; /* Agar bisa turun ke bawah di desktop jika kolom ditambah */
  gap: 20px;
}


.testi-card {
  flex: 1; /* Membagi ruang sama rata */
  min-width: 300px; /* Batas minimum lebar agar tidak kekecilan */
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 25px;
  padding: 30px;
  position: relative;
  transition: var(--transition-standard);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Quote Icon Aesthetic */
.quote-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 15px;
}

.testi-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-blue);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* --- MOBILE & TABLET ADJUSTMENT --- */
@media (max-width: 991px) {
  .testi-container {
    flex-wrap: nowrap; /* Kembali ke scroll di mobile agar tidak menumpuk vertikal terlalu panjang */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
  }

  .testi-card {
    min-width: 85vw; /* Card hampir selebar layar HP biar puas bacanya */
    scroll-snap-align: center;
  }

  .d-flex.gap-2.mt-5 {
    display: none !important; /* Di HP tombol panah buang saja, fokus swipe */
  }
}
/* AKHIR TESTIMONI */

/* FOOTER */
/* --- FOOTER PREMIUM SECTION --- */
.footer-premium {
  background-color: #0f172a; /* Deep Navy */
  color: #ffffff;
  position: relative;
}

.leading-relaxed {
  line-height: 1.8;
}
.letter-spacing-1 {
  letter-spacing: 1px;
}

/* Social Icons */
.social-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition-standard);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-5px) rotate(8deg);
  border-color: transparent;
}

/* Contact Icon Box */
.icon-box-footer {
  width: 38px;
  height: 38px;
  background: rgba(13, 110, 253, 0.15);
  color: #0d6efd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Map Wrapper */
.map-wrapper {
  width: 100%;
  height: 250px;
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #0a0f1d;
}

.hover-white:hover {
  color: white !important;
}

/* Toast Styling */
.toast {
  background: var(--primary-gradient) !important;
  backdrop-filter: blur(10px);
}

/* --- MOBILE FOOTER --- */
@media (max-width: 991px) {
  .footer-premium {
    text-align: center;
  }

  .footer-premium .align-items-start,
  .footer-premium .align-items-center {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .map-wrapper {
    height: 200px;
    margin-top: 20px;
  }

  .footer-premium h5.text-lg-end {
    text-align: center !important;
  }
}
/* AKHIR FOOTER */


/* login sebagain admin */
/* login sebagain admin */
/* Container Utama Info Bar Admin */
.admin-preview-bar {
    background: var(--primary-gradient); /* Tetap sesuai permintaan Bos */
    color: #ffffff;
    font-family: "Inter", sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 45px;
    z-index: 10000; /* Ditingkatkan agar di atas navbar */
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Penyesuaian Layout */
body.admin-preview-active {
    padding-top: 45px; 
}

.admin-preview-active .promo-ticker {
    top: 45px !important;
}

.admin-preview-active .header-Home {
    /* Menyesuaikan jarak agar tidak bertumpuk dengan promo ticker */
    top: 35px !important; 
}

/* Badge Ghost Mode: Dibuat lebih kontras dengan background putih transparan */
.badge-preview {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    padding: 3px 12px;
    border-radius: 50px; /* Lebih oval agar profesional */
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Tombol Kembali: Dibuat Putih Bersih agar stand out di atas gradient */
.btn-return-admin {
    background: #ffffff !important;
    color: var(--primary-blue) !important; /* Gunakan variabel biru sistem */
    border: none;
    padding: 6px 18px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-return-admin:hover {
    background: #f8f9fa !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Wrapper Icon Mata */
.preview-icon-wrapper {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Teks Status: Putih bersih */
.admin-status-text {
    font-size: 12px;
    color: #ffffff;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

/* Animasi Pulse */
.preview-icon-wrapper i {
    animation: pulse-eye 2s infinite;
}

@keyframes pulse-eye {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
/* akhir login sebagain admin */
/* akhir login sebagain admin */