/* Default Light Mode */
body {
  --bs-body-bg: #eee !important;
  --bs-body-color: #212529;
  --bs-login-bg: #d1ecfb;
  --bs-sidebar-bg: #f8f9fa !important;
  --bs-member-area-bg: #f9f9f9;
  --bs-heading-color: #2c3e50;
  --bs-paragraph-color: #7f8c8d;
  --bs-table-head-bg: #2c3e50;
  --bs-table-head-text: #ffffff;
  --bs-card-bg: #ffffff !important;
  --bs-table-row-odd: #f2f2f2;
  --bs-table-row-even: #e6e6e6;
  --bs-table-text: #34495e;
  --bs-btn-primary-bg: #3498db;
  --bs-btn-primary-border: #3498db;
  --bs-alert-info-bg: #d9edf7;
  --bs-alert-info-text: #31708f;
  --bs-alert-info-border: #bce8f1;
  --bs-card-title-color: #2c3e50;
  --bs-card-text-color: #7f8c8d;
  --bs-navbar-bg: #fff;
  --bs-navbar-text: #444;
  --bs-link-color: #444;
  --bs-coupon-bg: #fff;
  --bs-coupon-text-color: #000;
  --bs-coupon-highlight: gold;
  --bs-notification-icon-bg: red;
  --bs-navbar-active-link: #000;
  --bs-scroll-bg: #f8f9fa;
  --chart-bg-color: rgba(75, 192, 192, 0.2);
  --chart-border-color: rgba(75, 192, 192, 1);
  --chart-bar-bg-color: rgba(54, 162, 235, 0.2);
  --chart-bar-border-color: rgba(54, 162, 235, 1);
  --bs-dropdown-link-color:#000;
  --bs-link-color: #232425 !important;
  --bs-border-color: #495057;
  --bs-hr-color: #444;
  --bs-boxx-shadow: rgba(0, 0, 0, 0.1);
  --bs-link-hover-color-rgb: 139, 185, 254;
  --bs-box-shadow-sm: 0 .125rem .25rem rgba(254, 253, 253, 0.253) !important;
  --theme-footer: #495057;
}

/* Dark Mode */
body[data-bs-theme="dark"]  {
  --bs-body-bg: #495057 !important;
  --bs-body-color: #e4e4e4;
  --bs-login-bg: #eee;
  --bs-sidebar-bg: #6c757d !important;
  --bs-member-area-bg: #1e1e1e;
  --bs-heading-color: #e4e4e4;
  --bs-paragraph-color: #a0a0a0;
  --bs-table-head-bg: #3a3a3a;
  --bs-table-head-text: #ffffff;
  --bs-card-bg: #343a40;
  --bs-table-row-odd: #2a2a2a;
  --bs-table-row-even: #1f1f1f;
  --bs-table-text: #dcdcdc;
  --bs-btn-primary-bg: #1a73e8;
  --bs-btn-primary-border: #1a73e8;
  --bs-alert-info-bg: #455a64;
  --bs-alert-info-text: #d0d0d0;
  --bs-alert-info-border: #455a64;
  --bs-card-title-color: #e4e4e4;
  --bs-card-text-color: #a0a0a0;
  --bs-navbar-bg: #212529;
  --bs-navbar-text: #e4e4e4;
  --bs-link-color: #f8fafd;
  --bs-coupon-bg: #333;
  --bs-coupon-text-color: #e0e0e0;
  --bs-coupon-highlight: #ffcc00;
  --bs-notification-icon-bg: #ff5252;
  --bs-navbar-active-link: #fff;
  --bs-scroll-bg: #333;
  --chart-bg-color: rgba(164, 86, 86, 0.1);
  --chart-border-color: rgba(200, 200, 200, 0.8);
  --chart-bar-bg-color: rgba(124, 121, 121, 0.7);
  --chart-bar-border-color: rgb(173, 171, 171);
  --bs-dropdown-link-color:#fff;
  --bs-link-color: #fff !important;
  --bs-border-color: #fff;
  --bs-boxx-shadow: rgba(255, 255, 255, 0.1);
  --bs-hr-color: #fff;
  --bs-link-hover-color-rgb: rgb(173, 171, 171);
  --bs-box-shadow-sm: 0 .125rem .25rem rgba(254, 253, 253, 0.253) !important;
  --theme-color: #eee;
  --theme-colorz: #6c757d;
  --theme-footer: #212529;
}

body {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  padding-top: 70px;
}

.stcheck {right: 280px !important; top: 20px;}
@media (max-width: 768px) {
  .stcheck {right:80px !important; top: 20px;}
}


.no-order-message {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  text-align: center;
  font-size: 1.2em;
  color: var(--bs-body-color);
  border: 2px dashed #ccc;
  border-radius: 10px;
  background-color: var(--bs-body-bg);
}
#order-details {
  display: none;
}


/* Dark mode styling untuk CKEditor */
body[data-bs-theme="dark"] .ck-editor__editable_inline {
  background-color: #333333; /* Warna latar belakang */
  color: #ffffff; /* Warna teks */
  border-color: #555555; /* Warna border */
}

/* Placeholder dalam CKEditor untuk dark mode */
body[data-bs-theme="dark"] .ck-editor__editable_inline .ck-placeholder {
  color: #cccccc; /* Warna placeholder */
  opacity: 0.7;
}

hr{color:var(--bs-hr-color)}

.left-sidebar {
  background-color: var(--bs-sidebar-bg);
}

/* Dark Mode Toggle Slider Style */
.form-check-input {
  width: 40px;
  height: 20px;
  background-color: #ccc;
  cursor: pointer;
}

.form-check-label {
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

#sunIcon, #moonIcon {
  color: #ffcc00;
}

[data-bs-theme="dark"] #sunIcon {
  display: none;
}

[data-bs-theme="dark"] #moonIcon {
  display: inline;
  color: #ffffff;
}

[data-bs-theme="light"] #moonIcon {
  display: none;
}

@media (max-width: 980px) {
  /* Pastikan logo berada di kiri layar */
  .navbar .navbar-brand {
      margin-left: 0;
      padding-left: 20%;
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
  }
}

@media (max-width: 768px) {
  /* Pastikan logo berada di kiri layar */
  .navbar .navbar-brand {
      margin-left: 0;
      padding-left: 15%;
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
  }
}

.member-area {
  background-color: var(--bs-member-area-bg);
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.member-area h3, .member-area h1 {
  color: var(--bs-heading-color);
}

.member-area p {
  color: var(--bs-paragraph-color);
}

.table {
  table-layout: auto; /* Allow the table to adjust column width based on content */
  word-wrap: break-word;
}

.table td, .table th {
  white-space: nowrap; /* Prevents text from breaking into multiple lines */
}   

.table-striped thead {
  background-color: var(--bs-table-head-bg);
  color: var(--bs-table-head-text);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: var(--bs-table-row-odd);
}

.table-striped tbody tr:nth-of-type(even) {
  background-color: var(--bs-table-row-even);
}

.table-striped tbody td {
  color: var(--bs-table-text);
}

.btn-primary, .btn-primary:hover, .btn-primary:focus {
  background-color: var(--bs-btn-primary-bg);
  border-color: var(--bs-btn-primary-border);
}

.alert-info, .alert-success {
  background-color: var(--bs-alert-info-bg);
  color: var(--bs-alert-info-text);
  border-color: var(--bs-alert-info-border);
}

.card-title {
  font-size: 1.25rem;
  color: var(--bs-card-title-color);
}

.card-text {
  color: var(--bs-card-text-color);
}

.container {
  margin-top: 0px;
}

.text-center {
  text-align: center;
}

.table {
  margin-top: 20px;
}

.coupon {
  width: 400px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5));
  display: flex;
  align-items: stretch;
  position: relative;
  text-transform: uppercase;
  background-color: var(--bs-coupon-bg);
  color: var(--bs-coupon-text-color);
}

.coupon::before,
.coupon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: -1;
}

.coupon::before {
  left: 0;
  background-image: radial-gradient(circle at 0 50%, transparent 25px, var(--bs-coupon-highlight) 26px);
}

.coupon::after {
  right: 0;
  background-image: radial-gradient(circle at 100% 50%, transparent 25px, var(--bs-coupon-highlight) 26px);
}

.coupon > div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.left {
  width: 20%;
  border-right: 2px dashed rgba(0, 0, 0, 0.13);
}

.left div {
  transform: rotate(-90deg);
  white-space: nowrap;
  font-weight: bold;
}

.center {
  flex-grow: 1;
  text-align: center;
}

.right {
  width: 120px;
  background-image: radial-gradient(circle at 100% 50%, transparent 25px, #fff 26px);
}

.right div {
  font-family: "Libre Barcode 128 Text", cursive;
  font-size: 2.5rem;
  font-weight: 400;
  transform: rotate(-90deg);
}

.center h2 {
  background: #000;
  color: gold;
  padding: 0 10px;
  font-size: 2.15rem;
  white-space: nowrap;
}

.center h3 {
  font-size: 2.15rem;
}

.center small {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 2px;
}

@media screen and (max-width:500px){
  .coupon {
    display:grid;
    grid-template-columns:1fr;
  }
  .left div {
    transform: rotate(0deg);
  }
  .right div {
    transform: rotate(0deg);
  }
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 68px;
  z-index: 1090; /* Pastikan z-index lebih tinggi dari konten lainnya */
  display: flex;
  align-items: center;
  background-color: var(--bs-navbar-bg);
}

.navbar-nav.d-flex.align-items-center.ms-auto {
  position: absolute;
  right: 240px; /* Sesuaikan jarak dari kanan */
}

.navbar-nav .nav-item {
  margin-left: 10px;
}

.notification-icon {
  position: relative;
}


.badge {
  position: absolute;
  top: -5px;
  right: -5px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
}

.notification-icon.has-notifications.shake {
  animation: shake 1.5s infinite;
}

.stokisapp {
  width: 24px;   /* Sesuaikan lebar sesuai keinginan */
  height: 24px;  /* Sesuaikan tinggi sesuai keinginan */
  font-size: 24px; /* Ukuran font yang menentukan ukuran ikon */
  line-height: 24px; /* Membuat ikon vertikal sejajar */
}

.nav-link.active {
  font-weight: bold;
  color: var(--bs-navbar-active-link);  /* Warna khusus untuk link aktif */
}


.nav-link {
  color: var(--bs-link-color) !important;
}

li {
  margin-left: 5px;
}

@media (max-width: 767px) {
  .navbar-nav.d-flex.align-items-center.ms-auto {
    right: 80px;
  }
  .navbar-collapse {
    position: absolute;
    top: 68px;
    width: 95%;
    z-index: 1090;
    background-color: var(--bs-body-bg) !important;
  }
  .notification-icon {
    position: fixed;
    right: 65px;
    top: 20px;
  }
  .dropdown-menu {
    width: 95%;
    background: var(--bs-body-bg) !important;
  }
}

.toast {
  min-width: 300px;
}

.pagination li {
  margin-left: 0;
}

/* Default Sidebar Styles (untuk desktop dan tablet) */
#sidebar {
  background-color: var(--bs-sidebar-bg) !important;
  box-shadow: 2px 0px 5px rgba(197, 194, 194, 0.2);
  padding-top: 20px;
  padding-left: 15px;
  padding-right: 15px;
  position: fixed;
  top: 70px; /* Sesuaikan dengan tinggi navbar */
  left: 0;
  height: calc(100vh - 70px); /* Mengisi sisa tinggi layar setelah navbar */
  width: 240px; /* Lebar sidebar di desktop */
  z-index: 1050;
  overflow-y: auto; /* Sidebar dapat di-scroll */
  transition: left 0.3s ease; /* Animasi transisi */
  color: var(--bs-navbar-color, #000);
}

.offcanvas-backdrop {
  z-index: 1040; /* Pastikan backdrop di bawah sidebar */
}

#content {
  margin-left: 240px;
  transition: margin-left 0.3s ease;
}

/* Tampilkan tombol close hanya di layar tablet dan mobile */
#sidebar .btn-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1050;
  display: none;
}

/* Styles untuk tampilan tablet (768px hingga 990px) */
@media (max-width: 990px) {
  #sidebar {
    left: -240px; /* Sembunyikan sidebar di layar tablet dan mobile */
  }
  #menus {
      left: 0px;
      width: 100%;
      top: 80px;
      height: 80px;
      padding-top: 20px;
  }
  #sidebar.open {
    left: 0; /* Tampilkan sidebar saat class .open ditambahkan */
    top: 70px;
    width:240px;
  }

  #menus.open {
    left: 0; /* Tampilkan sidebar saat class .open ditambahkan */
  }
  #content {
    margin-left: 0; /* Konten tidak bergeser di layar kecil */
  }
  .navbar-toggler.d-lg-none {
    display: block !important; /* Tampilkan tombol toggle di layar tablet dan mobile */
  }
  #sidebar .btn-close {
    display: block; /* Tampilkan tombol close di layar tablet dan mobile */
  }
  #menus .btn-close {
    display: block; /* Tampilkan tombol close di layar tablet dan mobile */
  }
}

#sidebar .dropdown-item {
  padding: 10px 5px;
}

/* Styles untuk layar Mobile (di bawah 768px) */
@media (max-width: 767px) {
  #sidebar {
    left: -240px; /* Sembunyikan sidebar di layar mobile */
    height: 100vh;
    top: 70px;
    z-index: 1050; /* Agar di atas konten lainnya */
  }
  #menus {
    height: 100vh;
    top: 70px;
    z-index: 1050; /* Agar di atas konten lainnya */
  }
  #sidebar.open {
    left: 0; /* Tampilkan sidebar saat class .open ditambahkan */
  }
  #menus.open {
    left: 0; /* Tampilkan sidebar saat class .open ditambahkan */
  }
  #content {
    margin-left: 0;
  }
}

/* Scrollable Sidebar Container */
#scroll-container {
  height: 100%;
  max-height: calc(100vh - 50px);
  overflow-y: auto;
  padding-right: 15px;
  margin-right: -15px;
}

/* Hilangkan scrollbar */
#scroll-container::-webkit-scrollbar {
  display: none;
}


.btn.btn-primary.d-lg-none {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  list-style: none;
  background-color: var(--bs-sidebar-bg);
  border-radius: 2px;
}
.card {
  background-color: var(--bs-card-bg, #ffffff) !important;
  color: var(--bs-card-text, #212529) !important;
  border:none !important;
}

[data-bs-theme="dark"] .card {
  background-color: var(--bs-card-bg-dark, #343a40) !important;
  color: var(--bs-card-text-dark, #e4e4e4) !important;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.end-0 {
  right: 0;
}

.top-0 {
  top: 0;
}

.detail-group {
  display: flex;
  flex-direction: column;
  gap: 5px; /* Jarak antar item lebih rapat */
}

.detail-item {
  display: flex;
  justify-content: flex-start; /* Teks di awal baris */
}

.detail-item strong {
  flex-basis: 40%; /* Lebar label 30% */
  text-align: left; /* Label rata kiri */
}

.detail-item span:first-child {
  flex-basis: 5%; /* Lebar untuk tanda titik dua */
  text-align: left; /* Tanda titik dua rata kiri */
}

.detail-item span:last-child {
  flex-basis: 65%; /* Lebar isi nilai 65% */
  text-align: left; /* Nilai rata kiri */
}

/* Style khusus untuk bagian Total */
.total-details .detail-item {
  font-size: 16px; /* Sedikit lebih besar untuk bagian total */
}

.total-details .detail-item strong {
  flex-basis: 40%; /* Lebih lebar untuk label di bagian total */
}

.total-details .detail-item span:last-child {
  flex-basis: 55%; /* Sesuaikan lebar untuk nilai di bagian total */
}

  /* Gaya untuk tampilan kamera popup */
  #camera-popup {
    display: none; /* Mulai dalam keadaan tersembunyi */
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -10%);
    width: 90%; /* Menggunakan persentase agar lebih responsif */
    max-width: 350px; /* Ukuran maksimum untuk desktop */
    height: auto;
    border: 2px solid #333;
    border-radius: 8px;
    background-color: #f9f9f9;
    z-index: 1000;
    padding:5px;
    cursor: move;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Gaya untuk tombol close */
#camera-popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: #ff0000;
    font-size: 24px;
    font-weight: bold;
    background-color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border: 1px solid #ff0000;
    z-index: 1001;
}

/* Responsif untuk layar mobile */
@media (max-width: 768px) {
    #camera-popup {
        width: 300px;
        height: auto;
        top: 80px;
        left: 50%;
        transform: translate(-50%, 0);
    }
}

/* Responsif untuk layar tablet */
@media (max-width: 998px) {
  #camera-popup {
      width: 300px;
      height: auto;
      top: 80px;
      left: 50%;
      transform: translate(-50%, 0);
  }
}

.awan{
  width: 100%;
  height: auto;
  background:transparent;
  border-radius: 300px;
  position: relative;
}

.awan:before,
.awan:after{
  content: ' ';
  position: absolute;
  background: transparent;
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 10px;
  border-radius:300px;
  text-transform: rotate(30deg);
}

.awan:after{
  width: 100%;
  height: auto;
  top: 0;
  left: auto;
  right: 15px;
}


.no1{
top: 10px;
-webkit-animation: jalankanawan 25s linear infinite;
-moz-animation: jalankanawan 25s linear infinite;
-ms-animation: jalankanawan 25s linear infinite;
-o-animation: jalankanawan 25s linear infinite;
animation: jalankanawan 25s linear infinite;
}

.no2{
left: 100px;
top: 10px;
position: absolute;
-webkit-animation: jalankanawan 35s linear infinite;
-moz-animation: jalankanawan 35s linear infinite;
-ms-animation: jalankanawan 35s linear infinite;
-o-animation: jalankanawan 35s linear infinite;
animation: jalankanawan 35s linear infinite;
}

  @media (max-width: 900px) {
   body {
  width: 100%;height:100%;
  }
  .card{border: none;}

  }

  .waarea {
  position: fixed;
  z-index: 601;
  width: 50px;
  height: 50px;
  bottom: 20px;
  right: 20px;
  display: table;
  font-size: 13px;

  }

  .wabutton {
  color: #fff;
  background: #24be5b;
  text-align: center;
  vertical-align: middle;
  display: table-cell;
  border-radius:50px;
  width: 50px;
  height: 50px;
  }

  #whatsapp-chat {
  position: fixed;
  background: #fff;
  width: 350px;
  border-radius: 10px;
  box-shadow: 0 1px 15px rgba(32,33,36,.28);
  bottom: 90px;
  right: 30px;
  overflow: hidden;
  z-index: 10;
  animation-name: showchat;
  animation-duration: 1s;
  transform: scale(1);
}

a.blantershow-chat {
  background: linear-gradient(to right top,#25D366,#128C7E);
  color: #fff;
  position: fixed;
  z-index: 10;
  bottom: 25px;
  right: 25px;
  font-size: 15px;
  padding: 10px;
  border-radius: 50px;
  box-shadow: 0 1px 15px rgba(32,33,36,.28);
  text-decoration: none;
}

a.blantershow-toko {
  background: linear-gradient(to right top,#fff,#f5f5f5);
  color: #fff;
  position: fixed;
  z-index: 10;
  bottom: 85px;
  right: 25px;
  font-size: 15px;
  padding: 5px;
  border-radius: 50px;
  box-shadow: 0 1px 15px rgba(32,33,36,.28);
  text-decoration: none;
}


a.blantershow-chat i {
  transform: scale(1.2);
  margin: 0 10px 0 0;
}

.header-chat {
  background: linear-gradient(to right top,#25D366,#128C7E);
  color: #fff;
  padding: 20px;
}

.header-chat h3 {
  margin: 0 0 10px;
}

.header-chat p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.info-avatar {
  position: relative;
}

.info-avatar img {
  border-radius: 100%;
  width: 50px;
  height: 50px;
  float: left;
  margin: 0 10px 0 0;
}
.info-avatar:before {
  content: '';
  z-index: 10;
  font-family: "Font Awesome 5 Brands";
  background: #23ab23;
  color: #fff;
  padding: 4px 4px;
  border-radius: 100%;
  position: absolute;
  top: 30px;
  right: 30px;
}

a.informasi {
  padding: 20px;
  display: block;
  overflow: hidden;
  animation-name: showhide;
  animation-duration: 2.5s;
  text-decoration: none;
}

a.informasi:hover {
  background: #f1f1f1;
}

.info-chat span {
  display: block;
}


#get-label,span.chat-label {
  font-size: 15px;
  color: #888;
}

#get-nama,span.chat-nama {
  margin: 5px 0 0;
  font-size: 10px;
  font-weight: 500;
  color: #25D366;
}


#get-nama {
  color: #fff;
  font-size: 12px;
  font-weight: 300;
}

#get-label {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
#get-avatar {
  float:left;
  width:50px;
  height:50px;
  border:1px solid #eee;
  border-radius:50%;
  margin:5px;
}
#get-avatar img{
  width:49px;
  height:49px;
  border-radius:50%;
}
span.my-number {
  display: none;
}

.blanter-msg {
  color: #444;
  padding: 20px;
  font-size: 12.5px;
  text-align: center;
  border-top: 1px solid #ddd;
}

textarea#chat-input {
  border: none;
  font-family: 'Arial',sans-serif;
  width: 100%;
  height: 30px;
  font-size:15px;
  outline: none;
  resize: none;
}

a#send-it {
  color: #555;
  width: 40px;
  margin: -5px 0 0 5px;
  font-weight: 700;
  padding: 10px;
  background: #eee;
  border-radius: 50%;
}

.first-msg {
  background-image: url("../toko/public/aset/wa/wa-back.jpg");
  padding: 20px;
  text-align: left;
  height:200px;
}

.wabubble1{
  background: #fff;
  position: relative;
  padding: 5px 10px;
  margin-left: 10px;
  margin-bottom: 3px;
  font-size: 14px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  display: table;
  box-shadow: 0 2px 2px 0 rgb(0 0 0 / 15%);
  text-decoration: none;
}

.wabubble1:after {
  content: '';
  position: absolute;
  display: block;
  top: 0;
  right: 100%;
  width: 0;
  height: 0;
  width: 0;
  height: 0;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #fff;
}
.start-chat .blanter-msg {
  display: flex;
}

#get-number {
  display: none;
}

a.close-chat {
  position: absolute;
  top: 5px;
  right: 15px;
  color: #fff;
  font-size: 30px;
  text-decoration: none;
}

@keyframes showhide {
  from {
      transform: scale(1);
      opacity: 0;
  };
}

@keyframes showchat {
  from {
      transform: scale(1);
      opacity: 0;
  };
}

@media screen and (max-width:480px) {
  #whatsapp-chat {
      width: auto;
      left: 5%;
      right: 5%;
      font-size: 80%;
  };
}

.hide {
  display: none;
  animation-name: showhide;
  animation-duration: 1.5s;
  transform: scale(1);
  opacity: 1;
}

.showing {
  display: block;
  animation-name: showhide;
  animation-duration: 1.5s;
  transform: scale(1);
  opacity: 1;
}

    
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scroll di perangkat sentuh */
}

table {
    width: 100%;
    table-layout: auto; /* Izinkan tabel menyesuaikan lebarnya */
}

th, td {
    white-space: normal;   /* Izinkan teks wrapping ke baris berikutnya */
    word-wrap: break-word; /* Potong teks jika terlalu panjang */
    overflow: hidden;      /* Sembunyikan teks yang meluap */
    text-overflow: ellipsis; /* Tambahkan elipsis jika teks terlalu panjang (opsional) */
    padding: 10px;         /* Tambahkan padding agar lebih rapi */
}

th {
    background-color: #f9f9f9; 
    font-weight: bold;  
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    th, td {
        white-space: normal;
        word-wrap: break-word;
    }

    th {
        text-align: left;
    }
}

.pic-thumbnail {
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.2s;
}

.pic-thumbnail:hover {
  transform: scale(1.1);
}
#modalPic {
  max-width: 100%;
  max-height: 80vh; 
  object-fit: contain; 
}

/* Pengaturan khusus untuk layar mobile & Tablet*/
@media (max-width: 992px) {
    /* Kontainer utama agar tidak melebar pada layar kecil */
.page-wrapper .container {
    width: 100%;
    max-width: 100vw; /* Membatasi lebar kontainer agar tidak lebih dari lebar viewport */
    padding: 0 15px; /* Padding standar */
    box-sizing: border-box;
    overflow-x: hidden; /* Menghindari scroll horizontal yang disebabkan oleh kontainer */
}
    
    /* Mengurangi padding kontainer untuk tampilan lebih kompak */
    .page-wrapper .container {
        padding: 0 10px;
    }

    /* Pastikan elemen dalam form filter lebih kompak */
    .card-title, .breadcrumb-item, .btn, label, input, select {
        font-size: 14px;
    }


    /* Menyesuaikan tombol filter agar tidak terlalu besar */
    .btn-primary {
        font-size: 14px;
        padding: 6px 12px;
    }

    /* Mengurangi jarak antar kolom form filter */
    form .row > .col-md-2 {
        margin-bottom: 5px;
    }
}

/* DataTables Dark Mode */
table.dataTable {
  border-collapse: collapse;
  color: var(--bs-body-color) !important;
}

.dataTables_info,
.dataTables_wrapper, .dataTables_filter {
  color: var(--bs-body-color) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  color: var(--bs-body-color) !important;
}

/* Tabel Border dan Header Styling */
table.dataTable th,
table.dataTable td {
  border: 1px solid var(--bs-border-color)!important;
}

/* Warna Header */
table.dataTable thead th {
  color: var(--bs-body-color)!important;
}

/* Style Warna Pagination dan Search Bar */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: var(--bs-body-color)!important;
  margin-top:10px;
}
.dataTables_wrapper .dataTables_filter input {
  color: var(--bs-body-color)!important;
  border: 1px solid var(--bs-border-color)!important;
  margin:10px
}


/* Pastikan semua kartu memiliki tinggi yang sama */
.cardsdw {
    box-shadow: 0px 4px 6px var(--bs-boxx-shadow), 0px 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; 
    height: 100%;
}

/* Bagian gambar tetap sesuai lebar kartu */
.cardsdw img {
    border-radius: 8px 8px 0 0; 
    object-fit: cover;
    max-height: 200px;
}

/* Bagian body kartu */
.cardsdw .card-body {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

/* Judul dengan tinggi konsisten */
.cardsdw .card-title {
    font-size: 1.2rem; 
    font-weight: bold;
    min-height: 2.5rem;
    line-height: 1.25rem; 
    margin-bottom: 0.5rem;
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: normal;
}

/* Deskripsi dengan batas maksimal kata */
.cardsdw .card-text {
    font-size: 0.9rem;
    color: var(--bs-body-color);
    min-height: 3rem;
    line-height: 1.5rem; 
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Footer selalu di bagian bawah */
.cardsdw .card-footer {
    margin-top: auto; 
    background-color: transparent; 
    border-top: 1px solid #eee;
    text-align: center;
}


.cardsdw img {
    border-radius: 6px 6px 0 0;
}

.cardsdw a {
    text-decoration: none !important;
    color: inherit; 
    transition: color 0.3s ease;
}

.cardsdw:hover {
    transform: translateY(-4px);
    box-shadow: 0px 10px 15px var(--bs-boxx-shadow), 0px 4px 6px rgba(0, 0, 0, 0.07); /* Shadow lebih intens */
}

/* Container untuk kategori */
.category-container {
  overflow-x: scroll;
  white-space: nowrap;
  display: flex;
  gap: 10px;
  -webkit-overflow-scrolling: touch; /* Penting untuk perangkat iOS */
}

.category-wrapper {
  display: inline-flex;
  gap: 10px; /* Spasi antar kategori */
}

/* Hilangkan scrollbar untuk pengalaman yang lebih mulus */
.category-container::-webkit-scrollbar {
  display: none;
}

/* Kartu kategori */
.category-card {
    flex: 0 0 auto;
    width: 99px;
    height:85px;
    background:var(--bs-sidebar-bg);
    padding:8px;
    text-align: center;
    margin-bottom:20px;
}

.category-card a {
    text-decoration: none;
    color: var(--bs-body-color); 
}

.category-card img {
    width: 50px; 
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.category-card .category-name {
    font-size: 0.9rem; 
    margin-top: 8px; 
    text-overflow: ellipsis; 
    white-space: nowrap;
    overflow: hidden;
}

.clamp-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Batasi ke 3 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height:40px;
}

.footer {
  border-top: 1px solid var(--bs-border-color);
  background-color:var(--theme-footer);
}

.footer hr{color:#fff}

.footer h5 {
  font-size: 16px;
  margin-bottom: 20px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: inherit;
  text-decoration: none;
}

.footer ul li a:hover {
  text-decoration: underline;
}

.footer .btn-outline-secondary {
  border-color: var(--bs-border-color);
  color: var(--bs-body-color);
}

.footer .btn-outline-secondary:hover {
  background-color: var(--bs-border-color);
  color: var(--bs-body-bg);
}

@media (min-width: 1200px) { /* Untuk layar besar (desktop) */
  .col-lg-5 { 
      flex: 0 0 20%; /* Setiap kolom mengambil 20% lebar (1/5) */
      max-width: 20%;
  }
}

@media (min-width: 1200px) {
.cardsdw img {
  border-radius: 8px 8px 0 0; 
  object-fit: cover;
  max-height: 400px;
}
}

.sthcheck {right: 30% !important; top: 15px;}
@media (max-width: 980px) {
  .sthcheck {right:37.5% !important; top: 15px;}
}
@media (max-width: 768px) {
  .sthcheck {right:16% !important; top: 15px;}
}

.sthhcheck {right: 32.5% !important; top: 15px;}
@media (max-width: 980px) {
  .sthhcheck {right:43% !important; top: 15px;}
}
@media (max-width: 768px) {
  .sthhcheck {right:27% !important; top: 15px;}
}

.sthhhcheck {right: 34% !important; top: 20px;}
@media (max-width: 980px) {
  .sthhhcheck {right:46% !important; top: 20px;}
}
@media (max-width: 768px) {
  .sthhhcheck {right:29% !important; top: 20px;}
}


/* Slider Container */
.slider-container {
  position: relative;
  width: 100%;
  height: 400px; /* Tinggi tetap 400px untuk desktop */
  overflow: hidden;
}

/* Each Slide */
.slider-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Active Slide */
.slider-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Slider Content Styling */
.slider-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%; /* Sesuai tinggi slider */
}

/* Text Section */
.slider-text {
  flex: 1;
  text-align: left;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slider-text h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 10px;
  text-transform: capitalize;
}

.slider-text p {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
}

/* Atur Opacity Awal untuk Semua Elemen Teks */
.slider-slide h2{
    opacity: 0;
}

/* Tampilkan Teks Saat Slide Aktif */
.slider-slide.active h2{
    opacity: 1; /* Teks hanya muncul di slide aktif */
}

/* Image Section */
.slider-image {
  flex: 1;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.slider-image img {
  width:auto;height:400px;
  border-radius: 10px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* Animasi Fade */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

/* Animasi Scale (Zoom In) */
.scale-in-text {
  transform: scale(0.9);
  animation: scaleIn 1s forwards;
}

@keyframes scaleIn {
  0% {
      transform: scale(0.9);
  }
  100% {
      transform: scale(1);
  }
}

/* Animasi Slide-Up */
.slide-up-text {
  transform: translateY(20px);
  animation: slideUp 1s forwards;
}

@keyframes slideUp {
  0% {
      transform: translateY(20px);
      opacity: 0;
  }
  100% {
      transform: translateY(0);
      opacity: 1;
  }
}

/* Animasi Zoom-In untuk Gambar */
.zoom-in-image {
  transform: scale(1.1);
  animation: zoomIn 1s forwards;
}

@keyframes zoomIn {
  0% {
      transform: scale(1.1);
      opacity: 0;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}

/* Responsif */
@media (max-width: 768px) {
  .cardsdw img {
    border-radius: 8px 8px 0 0; 
    object-fit: cover;
    max-height: 400px;
}
  .slider-container {
      height: 79vh; /* Full tinggi layar untuk perangkat mobile */
  }

  .slider-content {
      flex-direction: column; /* Susunan vertikal untuk mobile */
      text-align: center;
      height: 100%; /* Isi seluruh slider */
  }

  .slider-image {
      height: 50%; /* Gambar mengambil 50% layar */
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      order: -1; /* Pindahkan gambar ke atas */
  }

  .slider-image img {
      max-height: 100%; /* Gambar sesuai tinggi kontainer */
      object-fit: contain; /* Pastikan gambar tidak terpotong */
  }

  .slider-text {
      height: 50%; /* Teks mengambil 50% layar */
      text-align: center;
      padding: 10px;
      display: flex;
      flex-direction: column;
      justify-content: center;
  }

  .slider-text h2 {
      font-size: 28px; /* Ukuran font lebih kecil */
  }

  .slider-text p {
      font-size: 16px;
  }
}

/* Custom style for SweetAlert2 */
.custom-swal {
  font-family: 'Poppins', sans-serif; /* Gunakan font profesional */
  border-radius: 10px; /* Membulatkan sudut */
  padding: 15px; /* Kurangi padding */
  font-size: 14px; /* Sesuaikan ukuran teks */
}

.modal-content {top:80px}

.related-product-img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  object-position: center;
  display: block;
}

