
/* content full page*/
.content-full-page {
    min-height: calc(100vh - 106px);
    display: flex
;
    flex-direction: column;
    justify-content: center;
}
/* navbar menu */
.navbar-menu .nav-link i {
  font-size: 16px;
  stroke-width: 2.2px;
  fill: rgba(27, 46, 75, 0.1);
  margin-right: 15px;
  color: #677793;
  transition: all 0.2s ease-in-out; }
  @media (prefers-reduced-motion: reduce) {
    .navbar-menu .nav-link i {
      transition: none; } }
  @media (min-width: 992px) {
    .navbar-menu .nav-link i {
      display: none; } }

.navbar-menu-sub .nav-sub-link i {
  font-size: 16px;
  margin-right: 15px;
  fill: rgba(0, 23, 55, 0.08);
  display: none; }
  @media (min-width: 992px) {
    .navbar-menu-sub .nav-sub-link i {
      display: block; } }
    .navbar-menu-sub .nav-sub-link:hover i {
      fill: rgba(1, 104, 250, 0.2); }

.nav-icon-only .nav-link i {
  width: 18px;
  height: 18px; }
.nav-icon-only .nav-link.active {
  color: #0168fa; }
.nav-icon-only .nav-link:hover {
  color: #0168fa; }

  @media (min-width: 992px) {
    .navbar-menu {
      align-items: center;
      flex-direction: row;
      padding: 0;
      width: 100%;
      max-width: none;
      margin-top: -3px; } }

  /*logo*/
  .df-logo {
      margin-top: 0px;
  }

  @media (min-width: 1200px) {
      .navbar-menu-wrapper {
          padding: 0px;
      }
  }

  @media (min-width: 992px) {
      .navbar-header .navbar-brand {
          width: 218px;
      }
  }

  @media (min-width: 1200px) {
      .navbar-header .navbar-right {
          width: 220px;
      }
  }

/* agar navbar fixed di layar kecil*/
@media (max-width: 575.98px) {
  .navbar-header-fixed {
    position: fixed;
    top: 0; /* WAJIB agar nempel di atas */
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .content-fixed {
    margin-top: 60px; /* jarak konten biar tidak ketumpuk navbar */
  }
}



  .sticky-sidebar {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 80px; /* Adjust as necessary */
  }

/* profile */

.profile-header-wrapper {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center; /* mobile */
  margin-bottom: 20px;
}

.profile-avatar-container {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.profile-avatar-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #8391a1;
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  transition: background 0.3s;
  cursor: pointer;
  z-index: 2;
}
.profile-avatar-edit-btn:hover {
  background-color: #0056b3;
  text-decoration: none;
}

.profile-info .name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.profile-info .email {
  margin: 4px 0 0;
  color: #777;
  font-size: 14px;
}

/* Desktop (≥768px): stack vertically */
@media (min-width: 768px) {
  .profile-header-wrapper {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
  }

  .profile-info {
    margin-top: 8px;
    text-align: left;
  }
}

/* Mobile (≤767px): avatar kecil */
@media (max-width: 767.98px) {
  .profile-avatar-container {
    width: 60px;
    height: 60px;
  }

  .profile-avatar-edit-btn {
    padding: 4px;
    font-size: 12px;
  }

  .profile-info .name {
    font-size: 16px;
  }

  .profile-info .email {
    font-size: 13px;
  }
}

/* profile nav */
.profile-nav {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-nav .nav-link {
  display: block;
  padding: 10px 14px;
  border-radius: 4px;
  text-decoration: none;
}

.profile-nav .nav-link.active {
  background: #0168fa;
  color: white;
}

/* Mobile: ubah jadi tab scroll horizontal */
@media (max-width: 767.98px) {
  .profile-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
  }

  .profile-nav li {
    flex: 0 0 auto;
  }

  .profile-nav .nav-link {
    padding: 10px 10px;
    border-radius: 0;
    background: none;
    border-bottom: 2px solid transparent;
    color: #555;
    white-space: nowrap;
  }

  .profile-nav .nav-link.active {
    border-bottom: 2px solid #007bff;
    color: #007bff;
    background: none;
  }
}


/* from dashforge.demo*/
.content-settings {
  font-size: 14px;
  padding: 30px;
  position: relative;
  background-color: rgba(245, 246, 250, 0.75);
  color: #1b2e4b;
  letter-spacing: -0.2px; }
  @media (min-width: 992px) {
    .content-settings {
      padding: 25px;
      margin-top: 60px;
      margin-left: 240px; } }
  @media (min-width: 1200px) {
    .content-settings {
      padding: 30px;} }
  .content-settings .container {
    padding: 0;
    max-width: 780px; }
  .content-settings pre[class*="language-"],
  .content-settings code[class*="language-"] {
    border-color: rgba(72, 94, 144, 0.16);
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    letter-spacing: normal;
    background-color: #f8f9fc; }

/* card-profile dark*/
.card-profile h5 a, .card-profile .h5 a {
  color: inherit;
}

/* Datatables*/
.dt-filter-box-hidden {
  display: none;
}

div.dt-buttons {
    margin-right: 0.367em;
}
@media screen and (max-width: 640px){
div.dt-buttons {
    float: inline-start;
    text-align: left;
}
}


div.dt-buttons>.dt-button, div.dt-buttons>div.dt-button-split .dt-button {
    line-height: 1.3em;
}

.dataTables_wrapper .dataTables_length label {
    margin-bottom: 0px;
}

.list-item {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e5e9f2; }

/* Sticky */
.sticky-top {
  z-index: 0;
  top: 80px;
}



/* upload multiple jquery */
.image-upload-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.image-preview-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  border: 1px solid #ccc;
  overflow: hidden;
}
.image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.remove-button {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-weight: bold;
  line-height: 22px;
  text-align: center;
}
.upload-box {
  width: 80px;
  height: 80px;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 48px;
  color: #ccc;
  flex-shrink: 0;
}
#count-selected {
  margin-top: 10px;
}

/* Existing CSS styles */

/* Sidebar kesamping layar kecil */
#tabbar-nav {
  border-bottom: 0px;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 2px;
}

#tabbar-nav::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

#tabbar-nav .nav-item {
  flex: 0 0 auto; /* agar tidak wrap ke bawah */
}

@media (max-width: 768px) {
  #tabbar-nav {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
  }
}

/* Cart Wrapper */
.cart-wrapper {
  height: calc(100vh - 100px); /* total tinggi maksimal saat sticky */
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
  z-index: 10; /* pastikan tidak ketimpa */
}

.cart-body {
  flex: 1;
  overflow-y: auto;
}


.product-quantity {
  max-width: 60px;
}

/* TEXT ellipsis*/
.title-card-profile-ellipsis {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-card-profile-multiline-ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* jumlah baris */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  max-width: 100%;
  line-height: 1.4em; /* opsional, bisa disesuaikan */
  height: calc(1.4em * 2); /* 2 baris maksimal */
}

/* Twitter Card */
.card-twitter {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
  max-width: 100%;
  margin: auto;
  font-family: sans-serif;
}

.twitter-header img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.twitter-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-top: -30px;
  position: relative;
  flex-wrap: wrap;
}

/* Foto profil tetap */
.profile-pic {
  width: 60px;
  height: 60px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background-color: #fff;
  flex-shrink: 0;
}

.profile-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 0.5rem;
  margin-top: 1rem;
}

.username-wrap {
  flex: 1;
  overflow: hidden;
}

.twitter-profile h5 {
  margin: 0;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.twitter-profile p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.twitter-profile button {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

/* Bio */
.twitter-bio {
  border-top: 1px solid #eee;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #333;
  word-wrap: break-word;
}

/* RESPONSIVE */
@media (min-width: 576px) {
  .twitter-profile {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-info-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0rem;
  }

  .twitter-profile button {
    margin-top: 0;
    align-self: auto;
  }
}
