:root {
  --sidebar-width: 250px;
}

/* Sidebar styling */
.wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

#sidebar {
  width: 250px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 999;
  transition: all 0.3s;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
}

#content {
  width: calc(100% - 250px);
  margin-left: 250px;
  transition: all 0.3s;
  padding: 15px;
}

/* Responsive sidebar behavior */
@media (max-width: 767.98px) {
  #sidebar {
    margin-left: -250px;
    box-shadow: none;
  }

  #sidebar.show {
    margin-left: 0;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
  }

  #content {
    width: 100%;
    margin-left: 0;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open:after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }
}

/* Modern styles for nav items */
.nav-link {
  transition: all 0.2s;
  border-radius: 8px;
  margin-bottom: 5px;
}

.nav-link:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

/* Sidebar toggle button styles */
#sidebarToggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sidebarClose {
  border: none;
  background: transparent;
}

.btn-action {
  width: 36px;
  height: 36px;
  padding: 6px 0;
}

.page-item.active .page-link {
  background-color: var(--primary-color, #2e8b57) !important;
  border-color: var(--primary-color, #2e8b57) !important;
}

.page-link {
  color: var(--primary-color, #2e8b57);
}

.page-link:hover {
  color: #fff;
  background-color: var(--secondary-color, #3cb371);
  border-color: var(--secondary-color, #3cb371);
}

.modal {
  overflow: hidden;
}

.modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0 auto;
}

.card-stats {
  transition: transform 0.2s ease;
}

.card-stats:hover {
  transform: translateY(-5px);
}
