body {
  margin: 0;
  background-color: #f9f9f9;
  font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
}

/* Sticky Header */
.ui.fixed.menu {
  background-color: #362005  !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 200 !important;
  height: 60px;
  color: #fff;
}

/* Hapus garis vertikal bawaan Semantic UI di header */
.ui.top.fixed.menu .item:before {
  display: none !important;
}

/* Sidebar custom dengan animasi drawer */
.ui.overlay.sidebar {
  background-color: #5f544287 !important;
  width: 250px !important;
  z-index: 300 !important;
  position: fixed !important;
  top: 0;
  left: 0;
  bottom: 0;
  transform: translateX(-100%);
  transition: transform 0.4s ease-in-out !important;
  padding-top: 60px;
  backdrop-filter: blur(20px);
}

.ui.overlay.sidebar.visible {
  transform: translateX(0);
}

.ui.overlay.sidebar .item {
  color: #fff !important;
  font-size: 1.1em;
  padding: 1em 1.5em !important;
}

.ui.overlay.sidebar .item:hover {
  background: rgba(255,255,255,0.1) !important;
}

/* Overlay background untuk sidebar */
#sidebar-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out;
}

#sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Header icons */
.menu-icons {
  display: flex;
  align-items: center;
  position: relative;
}

.menu-icons i,
#menu-toggle i {
  font-size: 1.2em;
  color: #333;
  cursor: pointer;
  /* border: 1px solid rgba(0,0,0,0.15);
  border-radius: 50%; */
  padding: 8px;
  margin: 0 4px;
  transition: all 0.2s ease;
  width: 36px;
  height: 36px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  /* background-color: white; */
  color:#fff;
}

.menu-icons i:hover,
#menu-toggle i:hover {
  color: #2185d0;
  border-color: #2185d0;
  background-color: rgba(33,133,208,0.05);
}

/* Badge notifikasi */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  background-color: red;
  color: white;
  font-size: 0.65em;
  font-weight: bold;
  border-radius: 50%;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 2px rgba(0,0,0,0.5);
  line-height: 1;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.shake { animation: shake 0.4s ease; }




/* Catalog Section */
.ui.container { padding: 1.5em 1em; }

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5em;
}

.catalog-header h2 {
  font-weight: 700;
  font-size: 1.3em;
  color: #222;
  margin: 0;
}

.catalog-header .ui.button {
  border: 1px solid #1b1c1d !important;
  background: transparent !important;
  color: #1b1c1d !important;
  font-weight: 600;
  border-radius: 9999px !important;
  padding: 0.6em 1.2em;
  transition: all 0.2s ease;
}

.catalog-header .ui.button:hover {
  background: #1b1c1d !important;
  color: white !important;
}

.ui.cards > .card {
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  background: white;
}

.ui.cards > .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ui.cards > .card .image {
  height: 220px;
  overflow: hidden;
}

.ui.cards > .card img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.ui.cards > .card .content {
  padding: 0.9em 1em;
}

.product-title { font-weight: 700; color: #222; font-size: 1em; }
.product-brand { color: #888; font-size: 0.85em; }
.product-price { color: #c0392b; font-weight: 700; font-size: 0.95em; }

@media (max-width: 768px) {
  .hero h1 { font-size: 2em; }
  .menu-icons i, #menu-toggle i { width: 32px; height: 32px; padding: 6px; }
  .cart-badge { top: -3px; right: -1px; font-size: 0.6em; min-width: 14px; height: 14px; }
  .ui.cards > .card .image { height: 240px; }
}

.user-initial {
  width: 28px;
  height: 28px;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  margin-left: 11px !important;
  font-size: 14px !important;
  font-weight: bold !important;
  color: #fff !important;

  background-color: #b98109 !important; /* warna primary Semantic UI */
}



.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #362005;
  color: #fff;
  padding: 0.81em 1em;
  text-align: center;
  font-size: 0.95em;
  z-index: 100; /* pastikan di atas elemen lain */
}


    /* Custom ulang jarak (padding) di tfoot tabel datatables */
.ExtFootDt {
  padding-top: 3px !important;
  padding-bottom: 2em !important;
}

.MainTbDt {
  padding-bottom: 1px !important;
}

table.dataTable.table thead th.sorting:after, table.dataTable.table thead td.sorting:after {
    color: #2483a2 !important;
}

.ui.menu {
    box-shadow: 0 0 0 0 !important;
}

/* Custom ulang indikator loading/processing datatables */
.dataTables_wrapper .dataTables_processing {
  position: fixed !important;
  top: 20% !important;
  left: 50% !important;
  background: none;
  /* background: url('https://chicspace.sgp1.cdn.digitaloceanspaces.com/16927/01JVBK1KS0Y8DA90Q153DFZZCY.jpeg') left center / cover no-repeat; */
  color: #36200538;
  border: 0px solid transparent;
  box-shadow: 0 0px 0px 0;
  z-index: 1000;
}

/* Custom ulang bacground-color untuk header modal window */
.ui.modal>.header {
  background: #e0e1e2 !important;
}

/* Custom ulang bacground-color untuk action (footer) modal window */
.ui.modal>.actions {
  background: #e0e1e2 !important;
}

/* Custom ulang penampatan icon x (close) di modal window agar di posisi rata kanan */
.ui.buttons .button:first-child {
  margin-right: -15px !important;
  margin-top: -4px !important;
}

/* Custom ulang z-index agar bisa diatas sticky menu */
.ui.dimmer {
  z-index: 501;
}

/* Custom opacity disabled button */
.ui.disabled.button, .ui.disabled.button:hover {
  opacity: .25 !important;
}

/* Custom agar button paging tidak menumpuk saat layar sempit */
.ui.stackable.pagination.menu {
  flex-wrap: nowrap !important;
}

/* Custom dropdown paging agar lebih lebar di fix 80px */
div.dataTables_wrapper div.dataTables_length .ui.selection.dropdown {
  width: 80px !important;
}

/* Custom input disabled */
.ui.disabled.input, .ui.input:not(.disabled) input[disabled] {
  opacity: unset !important;
  color: #7b0000 !important;
  border: 1px solid rgba(34, 36, 38, 0.2) !important;
  background-color: #f8f8f8b5 !important;

}

.ui.form .disabled.field, .ui.form .disabled.fields .field, .ui.form .field :disabled {
  opacity: unset !important;
  color: #7b0000 !important;
  border: 1px solid rgba(34, 36, 38, 0.2) !important;
  background-color: #f8f8f8b5 !important;
}

/* warna row table datatable saat di hover */
table.ui tbody tr:nth-child(even):hover td{
  background-color: #f3f7cf !important;
  cursor: pointer !important;
}
table.ui tbody tr:nth-child(odd):hover td {
  background-color: #f3f7cf !important;
  cursor: pointer !important;
}
/* Pengecualian: baris dengan class .no-hover tidak berubah warna */
table.ui tbody tr.no-hover:hover td {
  background-color: inherit !important;
  cursor: default !important;
}

/* Perbaikan untuk masalah scrollig modal window */
body.dimmable.scrolling {
  overflow-y: visible !important; 
}

/* Atur ulang ketinggian dropdown list  */
@media only screen and (max-width: 767px) {
  .ui.selection.dropdown .menu {
    max-height: 10rem !important;
  }
}

/* Custom agar modal semantic-ui muncul di atas-tengah layar */
.ui.modal {
  top: 7% !important;     /* Geser ke bawah dari atas */
  transform: translateY(0) !important;  /* Hapus perataan tengah vertikal bawaan */
}

/* Custom tampilan dropdown menu ikon akun di klik */
.ui.top.left.pointing.dropdown.menuakun>.menu {
  top: 80%;
}

/* Custom mardin divider */
.ui.divider {
    margin: 0px !important;
}



/* Sidebar pengaturan */
.submenu-floating {
  display: none;
  position: fixed;
  top: 100px;
  left: 100px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(3px);
  border-radius: 10px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.25);
  z-index: 9999;
  min-width: 230px;
  overflow: hidden;
  animation: fadeIn 0.25s ease;
}

.submenu-floating .item {
  display: flex;                
  line-height: 1;
  padding: 12px 16px;
  color: #333 !important;
  align-items: center;
  transition: background 0.2s;
  cursor: pointer;
}

.submenu-floating .item i.icon {
  font-size: 16px;
  width: 20px;                 
  text-align: center;
  margin-right: 8px;
  color: #957b46;
  flex-shrink: 0;
}

.submenu-floating .item:hover {
  background: rgba(0,0,0,0.08);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Warna overlay sidebar */
#sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 8888;
}

/* Tambahan efek hover pada sidebar */
.ui.vertical.inverted.sidebar.menu .item:hover {
  background: rgba(255,255,255,0.1) !important;
}

.ui.top.fixed.menu {
  z-index: 10000;
}

/* Indikator dropdown di sidebar */
.dropdown-arrow {
  margin-left: auto;
  transition: transform 0.2s;
}

.dropdown-arrow.rotate {
  transform: rotate(90deg);
}

sub.UserLevel {
  color: black;
  font-size: x-small;
}



/* Setting CSS untuk Dropdown Select Custom sendiri ------------------ */
/* Wrapper mengikuti gaya Semantic UI */
.ui-select-wrapper {
  position: relative;
  width: 100%;
  display: inline-block;
}
/* Gaya select meniru "ui input small fluid search" */
.UiSelect {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  background-color: #f8f8f8b5;
  border: 1px solid rgba(34,36,38,.15);
  border-radius: 0.28571429rem;
  padding: 0.75em 2em 0.7em 0.85em;
  font-size: 0.85714286rem;
  line-height: 1.21428571em;
  cursor: pointer;
  transition: box-shadow 0.1s ease, border-color 0.1s ease;
  box-sizing: border-box;
}
.UiSelect:hover {
  border-color: rgba(34,36,38,.35);
}
.UiSelect:focus {
  outline: none;
  border-color: #85b7d9;
}
/* Ikon panah seperti di Semantic UI */
.ui-select-wrapper .dropdown.icon {
  position: absolute;
  right: 0.8em;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-family: "Icons"; /* Font bawaan Semantic UI */
  font-style: normal;
  font-weight: normal;
  text-decoration: inherit;
  font-size: 0.9em;
  color: rgba(0,0,0,.6);
}
/* Menggunakan kode unicode panah Semantic UI (\f0d7) */
.ui-select-wrapper .dropdown.icon:before {
  content: "\f0d7";
}
/* Disabled style */
.UiSelect:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
/* ------------------------------------------------------- */

.LabelInput {
  font-weight: 600;
}

.ui.dropdown .menu {
  background: #e8e8e8d4 !important;
  backdrop-filter: blur(2px);

}

.ui.top.pointing.dropdown>.left.menu:after, .ui.top.right.pointing.dropdown>.menu:after {
  background: #d6ccccfc !important;
}

.ui.input>input {
  border-radius: 1rem !important;
  border: 1px solid #ad640a61 !important;
}

.ui.large.label, .ui.large.labels .label {
  font-size: 1rem;
  border-radius: 0.8rem !important;
  background-color: #a0a0a063 !important;
}