/* Import Google Font Figtree */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800&display=swap');

body {
  font-family: 'Figtree', sans-serif;
  font-weight: 400; /* normal text */
  line-height: 1.6;
  color: #212529;
}

/* Heading lebih tegas */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

/* Extra styling opsional */
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
p {
  font-size: 1rem;
}



#preview {
  min-height: 200px;
  border-radius: 8px;
}

.btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  color: white;
}

.btn .spinner-border {
  margin-left: 8px;
}

/* Container utama — padding 20% kiri-kanan */
  #pageContent {
    padding-left: 20% !important;
    padding-right: 20% !important;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  /* Responsive: di mobile, padding jadi 5% */
  @media (max-width: 768px) {
    #pageContent {
      padding-left: 5%;
      padding-right: 5%;
      padding-top: 20px;
      padding-bottom: 20px;
    }

    #dashboardTabs{
      justify-content: center;
      text-align: center;
      flex-wrap: wrap;
    }
    .nav-tabs .nav-link{
      padding:10px 5px !important;
      margin-right: 5px !important;
      font-size: 14px;
      font-weight: 500 !important;
    }
  }

  /* Gambar — width 100%, responsive */
  #pageContent img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  /* Tombol utama */
  #pageContent .btn-lg {
    padding: 12px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
  }

  #pageContent .btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  }

  /* Tombol toko */
  #pageContent .btn-outline-dark {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  #pageContent .btn-outline-dark:hover {
    background-color: #212529;
    color: white;
  }

  /* Heading & teks */
  #pageContent h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
  }

  #pageContent .lead {
    font-size: 1.25rem;
    margin-bottom: 32px;
    line-height: 1.6;
    color: #495057;
  }

  /* Responsive: ukuran font lebih kecil di mobile */
  @media (max-width: 768px) {
    #pageContent h1 {
      font-size: 2rem;
    }
    #pageContent .lead {
      font-size: 1.1rem;
    }
    #pageContent .btn-lg {
      font-size: 16px;
      padding: 10px 24px;
    }
  }

  /* Loading spinner */
  #pageContent .spinner-border {
    width: 3rem;
    height: 3rem;
  }


.form-login{
  background-color: red !important;
}
.form-label {
  font-weight: 600;
  color: #555;
  margin-bottom: 0.5rem;
  display: block;
}

/* ===== FORM CONTROLS ===== */
.form-control {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background-color: #fafafa;
  transition: all 0.3s ease;
  margin-bottom: 0rem;
}

.form-control:focus {
  border-color: #667eea;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: #aaa;
}

/* ✅ Gaya untuk Media Gallery */
#imageGallery .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}

#imageGallery .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

#imageGallery .card-img-top {
  height: 100%;
  object-fit: cover;
  border-bottom: 1px solid #e9ecef;
}

#imageGallery .card-body {
  padding: 16px;
}

#imageGallery .form-control {
  font-size: 0.875rem;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}

#imageGallery .btn-outline-secondary {
  border-radius: 8px;
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

#imageGallery .btn-outline-secondary:hover {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

/* ✅ Upload Progress Bar */
#uploadProgress .progress {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

#uploadProgress .progress-bar {
  background-color: #28a745;
  transition: width 0.3s ease;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 14px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  margin-bottom: 0rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4291 100%);
}

.btn-outline-secondary {
  background: transparent;
  border: 2px solid #e9ecef;
  color: #666;
  padding: 14px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background: #f8f9fa;
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
}

/* ===== ALERTS ===== */
.alert {
  border-radius: 12px;
  border: none;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
}

/* ===== FOOTER TEXT (opsional) ===== */
.text-center.small {
  margin-top: 1.5rem;
  color: #888;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
  .card-body {
    padding: 1.8rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .btn-primary,
  .btn-outline-secondary {
    font-size: 1rem;
    padding: 14px 16px !important;
  }

  .form-control {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
}

/* ================================
   PAGE CARD – MODERN STYLE
================================ */

.page-card .card {
  border-radius: 14px;
  transition: all 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.page-card .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Title */
.page-card .card-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

/* Date */
.page-card .text-muted {
  font-size: 0.9rem;
}

/* Statistik Box */
.page-card .card.border-success-subtle,
.page-card .card.border-info-subtle {
  border-radius: 10px;
  background: #f8fdf9;
  font-size: 0.85rem;
}

/* Statistik Icons */
.page-card i.bi {
  color: #198754;
  margin-right: 4px;
}

/* Klik per tombol */
.page-card strong {
  font-weight: 600;
}

/* Input Link */
.page-card .input-group input {
  background-color: #f8f9fa;
  font-size: 0.75rem;
}

/* Action Buttons */
.page-card .btn {
  transition: all 0.2s ease;
}

.page-card .btn:hover {
  transform: scale(1.03);
}

/* ================================
   MOBILE MODE (30% lebih kecil)
================================ */
@media (max-width: 576px) {

  .page-card {
    font-size: 0.7em; /* 🔥 ~30% lebih kecil */
  }

  .page-card .card-title {
    font-size: 0.9rem;
  }

  .page-card .btn {
    font-size: 0.65rem;
    padding: 0.35rem 0.5rem;
  }

  .page-card .input-group input {
    font-size: 0.65rem;
  }

  .page-card .card.border-success-subtle,
  .page-card .card.border-info-subtle {
    font-size: 0.7rem;
  }
}

/* ====== LAYOUT ====== */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ====== SIDEBAR ====== */
.sidebar {
  width: 240px;
  background: #fff;
  border-right: 1px solid #eee;
  padding:0px;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1040;
  transition: transform 0.3s ease;
}

.sidebar-top {
  border-bottom: 1px solid #ffffff;
  padding: 20px;
}

#dashboardTabs {
  padding: 0px;
}

#dashboardTabs .nav-link {
  width: 100%;
  text-align: left;
  border-radius: 0;
  padding: 15px 20px;
}
.sidebar-bottom {
  padding: 20px;
  margin-top: auto;
  border-top: 1px solid #dedede;
}

/* ====== MAIN CONTENT ====== */
.main-content {
  margin-left: 240px;
  width: calc(100% - 240px);
  background: #f8f9fa;
  min-height: 100vh;
  padding: 2%;
}

/* ====== MOBILE ====== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
    z-index: 9999;
  }

  #landingPage h3{
    width: 100% !important;
  }
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* KUNCI */
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1050;
  }

  /* LOGO */
  .mobile-topbar img {
    max-height: 40px;
    width: auto;
  }

  /* TOGGLE BUTTON */
  #toggleSidebar {
    margin-left: auto;              /* PAKSA KE KANAN */
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1030;
  }

  .sidebar-overlay.show {
    display: block;
  }
}


/* Dashboard */
.main-content .bi-grid-fill {
  color: #004dc1;
}
.main-content .bi-person-bounding-box {
  color: #6400c1;
}

/* Produk */
.main-content .bi-box-seam-fill {
  color: #198754;
}

/* Statistik */
.main-content .bi-bar-chart-fill {
  color: #fd7e14;
}

/* Saat active → putih */
.main-content .nav-link.active i {
  color: #fff !important;
}
/* ============================= */
/* PRODUCT DETAIL LAYOUT */
/* ============================= */

#productContent{
  padding: 2% 7%;
}

#productContent .lead{
  font-size: 14px;
  font-weight: 500;
}

.product-wrapper {
  min-height: 100vh;              /* full viewport height */
}

/* IMAGE COLUMN */
.product-image-wrapper {
  position: relative;
  padding: 0;
  display: flex;
}

/* IMAGE */
.product-image {
  width: auto;
  height: 100% !important;
  object-fit: cover !important;              /* PENTING */
  display: block;
  border-radius: 0;
}

/* INFO COLUMN */
.product-info {
  padding: 3rem;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .product-wrapper {
    min-height: auto;
  }

  #productContent{
    padding: 2%;
  }

  .product-image-wrapper {
    height: 320px;                /* tinggi aman mobile */
  }

  .product-info {
    padding: 2rem 1.5rem;
  }
}

/* ============================= */
/* PRODUCT INFO */
/* ============================= */

.product-info {
  padding: 2rem;
  border: 1px solid #dedede;
  border-radius: 5px;
}

#productName {
  font-size: 2rem;
}

#productDescription {
  line-height: 1.7;
}

/* ============================= */
/* BUTTONS */
/* ============================= */

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #1ebe5d) !important;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #1ebe5d, #16a34a) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
}

.btn-shop {
  border: 2px solid #212529 !important;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-shop:hover {
  background-color: #212529 !important;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {
  .product-wrapper {
    min-height: auto;
  }

  .product-image {
    min-height: 260px;
  }

  .product-info {
    padding: 1.5rem 0;
  }
}

/* ============================= */
/* RELATED PRODUCTS */
/* ============================= */

#relatedProductsSection {
  margin-top: 4rem;
}

.related-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.related-card img {
  height: 200px;
  object-fit: cover;
}

.related-card .card-body {
  padding: 1rem;
}

.related-card h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.related-card .price {
  font-weight: 600;
  color: #0d6efd;
}

/* =========================
   PUBLIC PROFILE PAGE
========================= */

.public-profile {
  max-width: 500px;
}

.profile-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-bio {
  color: #666;
  font-size: 1rem;
}

.profile-contact p {
  margin: 4px 0;
  font-size: 0.95rem;
}

/* =========================
   SHARE MODAL STYLE
========================= */

#shareModal .modal-content {
  border-radius: 18px;
  border: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

#shareModal .modal-header {
  padding: 1.2rem 1.5rem 0.5rem;
}

#shareModal .modal-title {
  font-weight: 600;
  letter-spacing: 0.3px;
}

#shareModal .modal-body {
  padding: 1.2rem 1.5rem 1.5rem;
}

/* Grid spacing */
#shareModal .row {
  row-gap: 12px;
}

/* Share buttons */
#shareModal .btn {
  height: 48px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

/* Icon size */
#shareModal .btn i {
  font-size: 1.1rem;
}

/* Hover effect */
#shareModal .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* Copy button feedback */
#copyLink {
  border-style: dashed;
}

#copyLink:active {
  transform: scale(0.97);
}

/* Mobile fullscreen feel */
@media (max-width: 576px) {
  #shareModal .modal-dialog {
    margin: 0.75rem;
  }

  #shareModal .modal-content {
    border-radius: 20px;
  }
}
