* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  /* background: #f1f1f1; */
  padding: 10px 16px;
  /* border-bottom: 1px solid #ccc; */
  position: relative;
  z-index: 1100;
}

.brand a {
  display: flex;
  align-items: center;
  /* gap: .25rem; */
  font-size: 1.25rem;
  font-weight: bold;
  margin-right: 16px; /* Add spacing between brand and nav-links */
}

.brand img {
  margin-right: .25rem; /* Add spacing between brand image and text */
}

.nav-links {
  display: flex;
  /* gap: 16px; */
  flex-grow: 1; /* Allow nav-links to take up available space */
  justify-content: flex-start; /* Align nav-links to the left */
}

.nav-links a,
.mobile-sidebar a {
  display: inline-flex;
  /* align-items: center; */
  gap: .125rem;
  text-decoration: none;
  font-size: 1.125rem;
  /* color: #000; */
  /* margin-left: 20px; */
  /* padding: 5px 10px; */
  padding: .5rem .5rem;
  border-radius: 4px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a .lucide {
  font-size: 1rem;
}

.nav-links a i,
.mobile-sidebar a i {
  margin-right: 8px;
  vertical-align: middle;
}

/* .nav-links a::before,
.mobile-sidebar a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #007bff;
  transition: width 0.3s ease;
} */

.nav-links a:hover,
.mobile-sidebar a:hover {
  color: var(--bs-body-bg);
  background-color: var(--bs-body-color);
  transition: ease-in-out 0.3s;
}

.nav-links a:hover::before,
.mobile-sidebar a:hover::before {
  width: 100%;
}

.nav-links a:hover,
.mobile-sidebar a:hover {
  /* background-color: #f0f0f0; */
  /* color: #007bff; */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-links a.active,
.mobile-sidebar a.active {
  color: var(--bs-body-bg);
  position: relative;
  background-color: var(--bs-body-color);
}

/* .nav-links a.active::before,
.mobile-sidebar a.active::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #007bff;
} */

.profile-icon {
  font-size: 20px;
  margin-left: auto; /* Push profile-icon to the far right */
}

.menu-toggle {
  display: none;
  margin-right: .5rem;
  width: 26px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1101;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transition: all 0.3s ease-in-out;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 10px;
}

.menu-toggle span:nth-child(3) {
  top: 20px;
}

/* Toggle animation */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

/* Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 58px;
  left: -250px;
  width: 200px;
  height: calc(100% - 58px);
  /* background: white; */
  /* border-right: 1px solid #ccc; */
  display: flex;
  flex-direction: column;
  padding: 16px;
  transition: left 0.3s ease-in-out;
  z-index: 1010;
}

.mobile-sidebar a {
  margin-bottom: 10px;
  text-decoration: none;
  /* color: #000; */
}

.mobile-sidebar .close-btn {
  align-self: flex-start;
  font-size: 20px;
  margin-bottom: 20px;
  cursor: pointer;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  display: none;
  z-index: 1000;
}

.footer {
  padding: 10px;
  /* background: #f1f1f1; */
  text-align: center;
  /* border-top: 1px solid #ccc; */
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

.form-floating:focus-within {
  z-index: 2;
}

.top-control {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.mid-control {
  margin-bottom: -1px;
  border-radius: 0;
}

.bot-control {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.container>.card>.card-header {
  min-height: 55px;
}

.btn-link {
  text-decoration: none;
}

.mobile-scroll-x {
  overflow-x: auto;
  width: 100%;
}
@media (min-width: 768px) {
  .mobile-scroll-x {
    overflow-x: visible;
  }
}