body {
  overflow: auto !important; /* Scrollen bleibt möglich */
}

body::-webkit-scrollbar {
  display: none !important; /* Versteckt die Scrollbar */
}

body {
  scrollbar-width: none !important; /* Versteckt die Scrollbar für Firefox */
}

/* Add bottom spacing to avoid navbar overlap - reduced */
body {
  padding-bottom: 70px !important; /* Consistent padding for navbar */
}

/* Ensure proper scrolling */
html, body {
  height: auto !important;
  min-height: 100% !important;
}

@media (min-height: 800px) {
  .container {
      padding-bottom: 100px !important; /* Reduced padding for larger screens */
  }
}

/* nav */
.nav-icons {
  min-width: 20px !important;
  font-size: 1.5rem !important;
  margin-bottom: 2px !important;
}

.nav-item {
  text-align: center !important;
}

nav .nav-link {
  gap: 5px !important;
  transition: all 0.2s ease !important;
}

nav .nav-link span {
  font-weight: 600 !important;
  font-size: 0.75rem !important;
}

/* Fix for responsive navigation */
.navbar.fixed-bottom {
  z-index: 1030;
  width: 100%;
  left: 0;
  right: 0;
  height: auto; /* Adjust height automatically based on content and padding */
  padding-top: 10px; /* Keep top padding */
  padding-bottom: 0; /* Remove bottom padding to reduce white space */
  margin-bottom: 0; /* Ensure no margin at the bottom */
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
  background-color: var(--white-color) !important; /* White background */
  border-top-left-radius: 20px; /* Rounded top-left corner */
  border-top-right-radius: 20px; /* Rounded top-right corner */
  display: flex;
  align-items: flex-start; /* Align items to the top of the navbar */
}

/* Ensure the container inside navbar aligns items properly */
.navbar.fixed-bottom .container {
  align-items: center; /* Vertically align flex items */
  padding-bottom: 5px; /* Small padding at container level instead of navbar */
  margin-bottom: 0; /* Ensure no margin */
}

/* Style for the central Add button */
#add-btn {
  width: 56px !important; /* Larger width */
  height: 56px !important; /* Larger height */
  font-size: 26px !important; /* Larger icon */
  transform: translateY(-30px); /* Elevate the button more. Was -20px */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Add shadow for elevated effect */
  border: 2px solid var(--white-color); /* Optional: add a border to distinguish from navbar bg if needed */
}

/* Highlight active nav item - use primary color */
.nav-link.text-dark .nav-icons {
  color: var(--primary-color) !important; /* Use primary color for active icon */
}

.nav-link.text-dark span {
  color: var(--primary-color) !important; /* Use primary color for active text */
  font-weight: 700 !important;
}

/* Make nav more compact on smaller screens */
@media (max-width: 576px) {
  body {
    padding-bottom: 100px !important; /* Adjust padding to match smaller navbar */
  }
  
  .navbar.fixed-bottom {
    padding-top: 8px; /* Reduced top padding on mobile */
  }
  
  .navbar.fixed-bottom .container {
    padding-bottom: 3px; /* Reduced bottom padding on mobile */
  }
  
  .nav-icons {
    font-size: 1.2rem !important;
    margin-bottom: 0 !important; /* Remove bottom margin to reduce space */
  }
  
  nav .nav-link span {
    font-size: 0.7rem !important;
  }
  
  .navbar .container {
    padding-left: 0;
    padding-right: 0;
  }
}
