body {
  background-color: #f8f9fa;
}

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 48px 0 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
  background-color: #212529;
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar .nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, .75);
  padding: 0.8rem 1rem;
}

.sidebar .nav-link:hover {
  color: #fff;
}

.sidebar .nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
}

.sidebar .nav-link i {
  margin-right: 10px;
}

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.main-content {
  padding-top: 1.5rem;
}

.card-dashboard {
  margin-bottom: 1.5rem;
}

.card-dashboard .card-title {
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.card-dashboard .card-value {
  font-size: 2rem;
  font-weight: 700;
}

.activity-card {
  height: 100%;
}

.data-table th {
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .sidebar {
    position: static;
    height: auto;
    padding-top: 1rem;
  }
  
  .sidebar-sticky {
    height: auto;
  }
  
  .main-content {
    margin-top: 1rem;
  }
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
  .navbar-nav {
    position: absolute;
    top: 0;
    right: 60px; /* Ajuster cette valeur selon vos besoins */
  }
  
  .navbar-toggler {
    position: absolute;
    top: 0;
    right: 0;
  }
}
