.navigation-component {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  background-color: transparent;
  border-top: none;
  box-shadow: none;
  box-sizing: border-box;
  z-index: 1000;
  height: auto;
  min-height: 50px;
}

.back-button, .next-button {
  padding: 0;
  min-width: 42px;
  max-width: 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  color: transparent; /* Hide text content */
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.next-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/next-arrow.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 35%;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.back-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/next-arrow.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 35%;
  transform: rotate(180deg);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.back-button:disabled, .next-button:disabled {
  background-color: rgba(255, 255, 255, 0.05);
  opacity: 0.4;
  border-color: rgba(255, 255, 255, 0.1);
}

.back-button:hover:not(:disabled), .next-button:hover:not(:disabled) {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.back-button:hover:not(:disabled)::before, .next-button:hover:not(:disabled)::before {
  opacity: 1;
}

.back-button:active, .next-button:active {
  transform: scale(0.98);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Add touch feedback for mobile devices */
@media (hover: none) {
  .back-button:active:not(:disabled), .next-button:active:not(:disabled) {
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
  }
  
  /* Make touch targets slightly more visible */
  .back-button:not(:disabled), .next-button:not(:disabled) {
    opacity: 0.9;
  }
}

/* Optimize for different screen types */
@media (prefers-color-scheme: dark) {
  .back-button, .next-button {
    background-color: rgba(255, 255, 255, 0.08);
  }
  
  .back-button:hover:not(:disabled), .next-button:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.12);
  }
}

/* Adjust for high contrast screens */
@media (forced-colors: active) {
  .back-button, .next-button {
    border: 1px solid ButtonText;
    background-color: rgba(255, 255, 255, 0.15);
  }
}

.navigation-component .progress-bars-container {
  max-width: 90%;
  width: 90%;
  margin: 0 auto;
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 6px 14px;
  border: 1px solid rgba(92, 74, 49, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  height: auto;
}

/* Desktop-specific styles */
@media (hover: hover) and (pointer: fine) {
  .navigation-component {
    justify-content: space-between;
  }
  
  .navigation-component .progress-bars-container {
    flex: 1;
    margin: 0 8px;
  }
}

/* Mobile-specific styles */
@media (hover: none) and (pointer: coarse) {
  .navigation-component {
    padding: 8px;
    min-height: 40px;
  }

  .navigation-component .progress-bars-container {
    max-width: 90%;
    width: 90%;
    margin: 0 auto;
    padding: 6px 12px;
  }
}

.navigation-component .progress-bar {
  min-width: 8px;
  margin: 0 3px;
  border-radius: 4px;
  height: 6px;
  background-color: rgba(92, 74, 49, 0.15);
}

.navigation-component .progress-bar.completed {
  background-color: rgba(92, 74, 49, 0.7);
}

.navigation-component .progress-bar.current {
  background-color: #5c4a31;
  height: 8px;
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.navigation-component .progress-bar.future {
  background-color: rgba(92, 74, 49, 0.3);
  height: 4px;
}

.segment-count {
  display: none;
}

/* When there are many segments, make the pills smaller */
.navigation-component .progress-bars-container.many-segments .progress-bar {
  min-width: 6px;
  margin: 0 1px;
}

.navigation-component .progress-bars-container.tiny-segments .progress-bar {
  min-width: 3px;
  height: 5px;
  margin: 0 1px;
}

.navigation-component .progress-bars-container.tiny-segments .progress-bar.current {
  height: 7px;
}

/* Optimizations for larger screens */
@media (min-width: 768px) {
  .navigation-component {
    max-width: 800px;
    left: 50%;
    transform: translateX(-50%);
    min-height: 55px;
    padding: 12px 10px;
  }

  .back-button, .next-button {
    min-width: 48px;
    max-width: 48px;
    width: 48px;
    height: 48px;
  }
  
  .navigation-component .progress-bars-container {
    max-width: calc(100% - 110px);
    padding: 7px 16px;
  }
}

/* Add a new tablet-specific media query */
@media (min-width: 480px) and (max-width: 767px) {
  .navigation-component {
    min-height: 52px;
    padding: 10px 10px;
  }

  .back-button, .next-button {
    min-width: 45px;
    max-width: 45px;
    width: 45px;
    height: 45px;
  }
  
  .navigation-component .progress-bars-container {
    max-width: calc(100% - 106px);
    padding: 6px 14px;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .navigation-component {
    padding: 8px 6px;
  }
  
  .back-button, .next-button {
    min-width: 38px;
    max-width: 38px;
    width: 38px;
    height: 38px;
  }
  
  .navigation-component .progress-bars-container {
    max-width: calc(100% - 90px);
    padding: 4px 8px;
  }
}

/* iPhone mini specific adjustments */
@media (max-width: 375px) and (max-height: 667px) {
  .navigation-component {
    padding: 6px 8px;
    min-height: 40px;
  }
  
  .back-button, .next-button {
    min-width: 36px;
    max-width: 36px;
    width: 36px;
    height: 36px;
  }
  
  .navigation-component .progress-bars-container {
    padding: 3px 7px;
    max-width: calc(100% - 90px);
  }
  
  .navigation-component .progress-bar {
    height: 5px;
    margin: 0 2px;
  }
  
  .navigation-component .progress-bar.current {
    height: 7px;
  }
} 

@media (orientation: landscape) and (max-width: 767px) {
  .navigation-component {
    z-index: 0;
  }
}