/* =====================================================
   GLOBAL
===================================================== */
body {
  background: #f7f5f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* Hover row đổi màu */
.table-hover tbody tr:hover {
  background-color: #f0f8ff; /* màu xanh nhạt, thay đổi tùy ý */
  cursor: pointer;
}

/* =====================================================
   SIDEBAR – BASE
===================================================== */
.sidebar {
  width: 240px;
  background: #1f2937;           /* slate-800 */
  color: #e5e7eb;
}

.sidebar-nav {
  padding-bottom: 16px;
}

.sidebar a {
  color: #cbd5e1;
  text-decoration: none;
  display: block;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease, transform .1s ease;
}

/* menu cha */
.sidebar-parent{
  padding:10px 14px;
  font-weight:600;
}

/* tiêu đề nhóm con */
.sidebar-subtitle{
  padding:6px 14px 4px 26px;
  font-size:12px;
  text-transform:uppercase;
  color:#94a3b8;
}

/* menu con */
.sidebar-child{
  padding:8px 14px 8px 32px;   /* thụt vào */
  font-size:14px;
}

/* hover */
.sidebar-child:hover,
.sidebar-parent:hover{
  background:#374151;
  color:#fff;
}

/* active */
.sidebar-child.active{
  background:#2563eb;
  color:#fff;
}
/* =====================================================
   LOGO
===================================================== */
.sidebar h5 {
  background: #111827;
  margin: 0;
  color: #fff;
}

/* =========== ==========================================
   LINK – DASHBOARD
===================================================== */
.sidebar-link {
  margin: 8px 10px;
  padding: 10px 14px;
  font-weight: 600;
}

.sidebar-link:hover {
  background: #374151;
  color: #fff;
}
/* hình sản phẩm */
#imageGallery img{
  max-height:80px;
  border:1px solid #ddd;
  padding:3px;
  border-radius:4px;
  cursor:pointer;
  transition:0.2s;
}

#imageGallery img:hover{
  transform:scale(1.05);
  border-color:#0d6efd;
}

.item-thumb{
  width:36px;
  height:36px;
  object-fit:cover;
  border-radius:6px;
  border:1px solid #ddd;
}
/* =====================================================
   GROUP
===================================================== */
.sidebar-group {
  margin-top: 6px;
}

.sidebar-parent {
  padding: 10px 14px;
  margin: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #e5e7eb;
  position: relative;
}

.sidebar-parent:hover {
  background: #374151;
  color: #fff;
}

/* arrow */
.sidebar-parent::after {
  content: '▸';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform .2s ease;
  opacity: .7;
}

.sidebar-parent[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(90deg);
}

/* =====================================================
   CHILD
===================================================== */
.sidebar-child {
  padding: 8px 14px 8px 36px;
  margin: 4px 10px;
  font-size: 14px;
  opacity: .9;
}

.sidebar-child:hover {
  background: #374151;
  color: #fff;
}

/*chiều cao select2*/
/* Select2 chiều cao bằng input Bootstrap */
.select2-container .select2-selection--single {
    height: 38px; /* chiều cao chuẩn của form-control */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px; /* căn giữa chữ */
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px; /* arrow cũng đúng chiều cao */
}
/* =====================================================
   ACTIVE STATE
===================================================== */
.sidebar a.active {
  background: linear-gradient(135deg, #198754, #16a34a);
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(25,135,84,.45);
}



/* =====================================================
   DESKTOP LAYOUT
===================================================== */
@media (min-width: 992px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
  }

  .content {
    margin-left: 240px;
   
  }
}

/* =====================================================
   MOBILE – OFFCANVAS UX LEVEL 2
===================================================== */
@media (max-width: 991px) {

  .offcanvas.sidebar {
    background: #111827; /* darker but softer */
  }

  .offcanvas.sidebar a {
    font-size: 15px;
  }

  .sidebar-link,
  .sidebar-parent,
  .sidebar-child {
    margin-left: 8px;
    margin-right: 8px;
  }

  .sidebar a:active {
    transform: scale(0.97);
  }
}

/* =====================================================
   TOPBAR
===================================================== */
.topbar {
  background: #fff;
  padding: 10px 15px;
  border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 576px) {
  .topbar strong {
    font-size: 14px;
  }
}
