/* =====================================================
   GLOBAL
===================================================== */
body {
  background: #f4f6f9;
  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;
}

/* =====================================================
   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;
}

/* =====================================================
   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;
}

/* =====================================================
   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;
    padding: 20px;
  }
}

/* =====================================================
   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;
  }
}
