body {
  background: linear-gradient(120deg, #f8fafc 0%, #f1f5f9 100%);
}

.sidebar-hidden {
  transform: translateX(-100%);
  transition: transform 0.3s;
  position: absolute;
  z-index: 1050;
}
#sidebar {
  transition: width 0.3s;
  width: 300px;
  min-width: 100%;
  overflow-y: hidden;
}

#sidebar.d-none {
  width: 0;
  min-width: 0;
  overflow: hidden;
}

.main-content {
  transition: margin-left 0.3s;
  margin-left: 220px;
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  padding: 24px;
}

.sidebar-collapsed .main-content {
  margin-left: 0;
}


@keyframes fadeInSidebar {
  to { opacity: 1; }
}

.topbar-icon {
  margin-left: 10px;
  margin-right: 10px;
}

.topbar-icon:hover {
  transform: translateY(-2px) scale(1.1);
  transition: transform 0.2s;
  
}

.gap-4 {
  gap: 2rem !important;
}

::-webkit-scrollbar {
  width: 8px;
  background: #aba1a1;
}
::-webkit-scrollbar-thumb {
  background: #f7f3f3;
  border-radius: 8px;
}

.card {
  opacity: 0;
  animation: fadeInCard 0.7s forwards;
}
@keyframes fadeInCard {
  to { opacity: 1; }
}

.navbar {
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.btn:hover, .btn:focus {
  filter: brightness(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: filter 0.2s, box-shadow 0.2s;
}

.btn:active {
  box-shadow: 0 0 0 8px rgba(185, 118, 79, 0.15);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: translateY(-4px) scale(1.03);
  transition: box-shadow 0.3s, transform 0.3s;
}

/* Disable hover effect for cards on the settings page */
.settings-page-container .card:hover {
  box-shadow: none;
  transform: none;
}

.nav-link.active, .nav-link:focus {
  background: rgba(185, 118, 79, 0.15);
  box-shadow: 0 0 8px #b9764f33;
  border-radius: 8px;
}

.table thead th {
  background: #23232f;
  color: #fff;
  font-weight: 600;
  vertical-align: middle;
  text-align: center;
}

.table tbody td {
  vertical-align: middle;
  text-align: center;
  font-size: 15px;
}

.table-hover tbody tr:hover {
  background: #f5f5fa;
}

.badge {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

input[type="checkbox"] {
  transform: scale(1.2);
  margin: 0 4px;
}

.content-wrapper {
  height: 100vh;
  overflow-y: auto;
}

.main-content-area {
  padding-left: 24px;   /* Space between sidebar and dashboard */
  padding-right: 24px;
  padding-top: 16px;
  padding-bottom: 24px;

}
#sidebar-container {
 
  /* Optional: add a right border or shadow for visual separation */
  border-right: 1px solid #ececec;
  background: #1E1E2F;
  min-height: 100vh;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  align-items: center;

 
}
#top-navbar-container > nav.sticky-top {
  top: 0;
  z-index: 1040;
}

#second-navbar-container > nav.sticky-top {
  top: 56px;
  z-index: 1039;
}
