.box {
  margin-bottom: 20px;
}

/* Footer fix - ensure footer is properly positioned and visible */
.main-footer {
  position: relative;
  width: 100%;
  min-height: 50px;
  padding: 15px;
  background-color: #ffffff !important;
  color: #333333 !important;
  border-top: 1px solid #f0f3f6;
  margin-top: auto;
  z-index: 1000;
}

/* Ensure wrapper uses flexbox for proper footer positioning */
.wrapper {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}

.content-wrapper {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.container-full {
  flex: 1 !important;
}

/* Dark theme footer fix */
.dark-skin .main-footer {
  background-color: #262626 !important;
  color: #ffffff !important;
  border-top: 1px solid #3c3d54;
}

/* Sidebar icon + text to white */
.main-sidebar .sidebar-menu > li > a { 
  color: #ffffff !important; 
  display: flex; 
  align-items: center; 
  gap: 8px;
  transition: background-color .18s ease, color .18s ease, border-left-color .18s ease; 
  border-left: 3px solid transparent; /* accent indicator */
}

.main-sidebar .sidebar-menu > li > a > svg,
.main-sidebar .sidebar-menu svg.feather { color: #ffffff !important; stroke: #ffffff !important; fill: none; transition: stroke .18s ease, color .18s ease; }
.main-sidebar .sidebar-menu > li > a:hover > svg,
.main-sidebar .sidebar-menu > li:hover > a > svg { color: #ffffff !important; stroke: #ffffff !important; }
.main-sidebar .sidebar-menu > li.menu-open > a > svg,
.main-sidebar .sidebar-menu > li.active > a > svg { color: #ffffff !important; stroke: #ffffff !important; }
.main-sidebar .sidebar-menu > li > a > svg path,
.main-sidebar .sidebar-menu svg.feather path { stroke: #ffffff !important; }

/* Accent color variables (fallbacks provided) */
:root {
  --sidebar-accent: #4d7cff; /* primary accent */
  --sidebar-hover-bg: rgba(77,124,255,0.18); /* translucent accent */
  --sidebar-active-bg: rgba(77,124,255,0.28);
}

/* Hover / active state with distinct accent background */
body[class*='theme-'] .main-sidebar .sidebar-menu > li > a:hover,
body[class*='theme-'] .main-sidebar .sidebar-menu > li > a:focus { 
  background: var(--sidebar-hover-bg) !important; 
  color: #ffffff !important; 
  border-left-color: var(--sidebar-accent) !important;
}
body[class*='theme-'] .main-sidebar .sidebar-menu > li.active > a,
body[class*='theme-'] .main-sidebar .sidebar-menu > li.menu-open > a { 
  background: var(--sidebar-active-bg) !important; 
  color: #ffffff !important; 
  border-left-color: var(--sidebar-accent) !important; 
}

/* Nested tree items */
.main-sidebar .sidebar-menu .treeview-menu > li > a { 
  color: #ffffff !important; 
  transition: background-color .18s ease, color .18s ease, padding-left .18s ease; 
  border-left: 3px solid transparent; 
  padding-left: 32px; 
}
.main-sidebar .sidebar-menu .treeview-menu > li > a:hover, 
.main-sidebar .sidebar-menu .treeview-menu > li.active > a { 
  background: var(--sidebar-hover-bg) !important; 
  color: #ffffff !important; 
  border-left-color: var(--sidebar-accent) !important; 
  padding-left: 34px; /* subtle movement */
}

/* Dashboard Enhancements */
.activity-div {
  max-height: 350px;
  overflow-y: auto;
}

.activity-div .media {
  padding: 15px 0;
  border-bottom: 1px solid #f0f3f6;
  transition: background-color 0.2s ease;
}

.activity-div .media:hover {
  background-color: #f8f9fa;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 8px;
}

.activity-div .media:last-child {
  border-bottom: none;
}

.table-hover tbody tr {
  transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
  background-color: #f8f9fa;
  transform: translateX(2px);
}

.badge-sm {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.box.pull-up:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

/* Activity avatars */
.activity-div .avatar {
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-div .badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .table-responsive table {
    font-size: 0.85rem;
  }
  
  .activity-div {
    max-height: 250px;
  }
  
  .box-body {
    padding: 15px;
  }
}

/* Status badge colors */
.status-success {
  border: 2px solid #28a745;
}

.status-danger {
  border: 2px solid #dc3545;
}

.status-warning {
  border: 2px solid #ffc107;
}

.status-info {
  border: 2px solid #17a2b8;
}

.status-primary {
  border: 2px solid #007bff;
}

/* SlimScroll styling */
.slimScrollBar {
  background: rgba(0,0,0,0.2) !important;
  width: 5px !important;
  border-radius: 10px !important;
}

.slimScrollBar:hover {
  background: rgba(0,0,0,0.4) !important;
}

/* Badge variations */
.badge-info {
  background-color: #17a2b8;
  color: #fff;
}

.badge-primary {
  background-color: #007bff;
  color: #fff;
}

.badge-success {
  background-color: #28a745;
  color: #fff;
}

.badge-secondary {
  background-color: #6c757d;
  color: #fff;
}

.badge-warning {
  background-color: #ffc107;
  color: #212529;
}

.badge-danger {
  background-color: #dc3545;
  color: #fff;
}

/* Text color utilities */
.text-success {
  color: #28a745 !important;
}

.text-danger {
  color: #dc3545 !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-info {
  color: #17a2b8 !important;
}

.text-primary {
  color: #007bff !important;
}

/* Remove duplicate earlier styles (kept consolidated) */
