/* Refined SB Admin style, tuned for a stronger sidebar visual hierarchy */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --primary: #4e73df;
  --primary-dark: #2e59d9;
  --sidebar-start: #2d4ec2;
  --sidebar-mid: #3e6ae0;
  --sidebar-end: #2b4ec6;
  --sidebar-link: rgba(233, 241, 255, 0.9);
  --sidebar-link-strong: #ffffff;
  --sidebar-section: #c6d6ff;
  --sidebar-hover-bg: rgba(255, 255, 255, 0.15);
  --sidebar-active-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.14));
}

body,
.sidebar .sidebar-brand {
  font-family: 'Manrope', 'Inter', 'Nunito', sans-serif;
}

.bg-gradient-primary {
  background:
    radial-gradient(circle at 14% -5%, rgba(255, 255, 255, 0.26), transparent 42%),
    radial-gradient(circle at 100% 92%, rgba(129, 140, 248, 0.26), transparent 50%),
    linear-gradient(165deg, var(--sidebar-start) 0%, var(--sidebar-mid) 55%, var(--sidebar-end) 100%) !important;
}

.sidebar {
  width: 15rem;
  min-height: 100vh;
  flex-shrink: 0;
  position: relative;
  overflow-x: hidden;
  box-shadow: 16px 0 38px rgba(15, 23, 42, 0.22);
}

.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 26%, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.sidebar .sidebar-brand {
  height: 4.375rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.sidebar .nav-item {
  position: relative;
  z-index: 1;
  padding: 0 0.65rem;
  margin: 0.12rem 0;
}

.sidebar .nav-item .nav-link {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.74rem 0.9rem;
  border-radius: 0.85rem;
  color: var(--sidebar-link) !important;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar .nav-item .nav-link::before {
  content: '';
  position: absolute;
  left: 0.38rem;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  opacity: 0;
  transform: scaleY(0.2);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sidebar .nav-item .nav-link i {
  flex-shrink: 0;
  width: 1.2rem;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(233, 241, 255, 0.92) !important;
  transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar .sidebar-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin: 0.5rem 0.95rem 0.9rem;
}

.sidebar .sidebar-divider.my-0 {
  margin-top: 0.35rem;
}

.sidebar.sidebar-dark,
.sidebar.sidebar-dark .sidebar-brand,
.sidebar.sidebar-dark .sidebar-brand .sidebar-brand-text {
  color: #ffffff;
}

.sidebar.sidebar-dark .nav-link,
.sidebar.sidebar-dark .nav-link span,
.sidebar.sidebar-dark .nav-link i {
  color: var(--sidebar-link) !important;
}

.sidebar.sidebar-dark .nav-link:hover,
.sidebar.sidebar-dark .nav-link:focus {
  color: var(--sidebar-link-strong) !important;
  background: var(--sidebar-hover-bg);
  transform: translateX(3px);
  box-shadow: 0 12px 24px rgba(11, 24, 70, 0.24);
}

.sidebar.sidebar-dark .nav-link:hover::before,
.sidebar.sidebar-dark .nav-link:focus::before {
  opacity: 0.76;
  transform: scaleY(1);
}

.sidebar.sidebar-dark .nav-link:hover i,
.sidebar.sidebar-dark .nav-link:focus i {
  color: var(--sidebar-link-strong) !important;
  transform: scale(1.06);
}

.sidebar .nav-item.active .nav-link,
.sidebar .nav-link.active {
  color: var(--sidebar-link-strong) !important;
  font-weight: 700;
  background: var(--sidebar-active-bg);
  box-shadow: 0 14px 26px rgba(9, 21, 66, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.sidebar .nav-item.active .nav-link::before,
.sidebar .nav-link.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.sidebar .nav-item.active .nav-link i,
.sidebar .nav-link.active i {
  color: var(--sidebar-link-strong) !important;
  transform: scale(1.08);
}

.sidebar-section {
  margin-top: 1.1rem !important;
  margin-bottom: 0.38rem !important;
  padding: 0 0.95rem !important;
}

.sidebar-section .sidebar-section-label {
  display: block;
  font-size: 0.69rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--sidebar-section);
  font-weight: 800;
  opacity: 0.95;
}

.sidebar.toggled {
  width: 6.5rem;
}

.sidebar.toggled .sidebar-brand-text,
.sidebar.toggled .nav-item .nav-link span,
.sidebar.toggled .sidebar-section .sidebar-section-label {
  display: none;
}

.sidebar.toggled .nav-item {
  padding: 0 0.35rem;
}

.sidebar.toggled .nav-item .nav-link {
  justify-content: center;
  padding: 0.75rem 0;
}

.sidebar.toggled .nav-item .nav-link i {
  margin: 0;
  font-size: 1.12rem;
}

.sidebar.toggled .nav-item .nav-link::after {
  display: none;
}

#content-wrapper {
  min-height: 100vh;
  width: 100%;
}

.topbar {
  height: 4.375rem;
}

.sticky-footer {
  padding: 1rem 0;
}

.scroll-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  text-align: center;
  color: #fff;
  background: rgba(90, 92, 105, 0.5);
  line-height: 46px;
  display: none;
}

.scroll-to-top:hover {
  color: #fff;
}

.text-gray-600 {
  color: #858796 !important;
}

.text-gray-400 {
  color: #d1d3e2 !important;
}

.text-gray-300 {
  color: #dddfeb !important;
}

.text-gray-800 {
  color: #5a5c69 !important;
}

.card {
  border: 0;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.table thead th {
  border-bottom-width: 1px;
  font-weight: 700;
}

#sidebarToggle {
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(2px);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#sidebarToggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.32);
}

#sidebarToggle:focus {
  outline: none;
}

.border-left-primary {
  border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
  border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
  border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
  border-left: 0.25rem solid #f6c23e !important;
}

.text-primary {
  color: #4e73df !important;
}

.text-success {
  color: #1cc88a !important;
}

.text-info {
  color: #36b9cc !important;
}

.text-warning {
  color: #f6c23e !important;
}

.font-weight-bold {
  font-weight: 700 !important;
}

.text-xs {
  font-size: 0.7rem;
}
