.submitButton {
  position: absolute !important;
  z-index: 1000;
  top: 10px;
  right: 65px;
  white-space: nowrap;
}

.lengthDisplay {
  position: absolute !important;
  z-index: 1000;
  top: 55px;
  right: 140px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.lengthDisplay:hover {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.lengthLabel {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.2px;
}

.lengthValue {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .submitButton {
    top: 10px;
    right: 10px;
  }

  .lengthDisplay {
    top: 55px;
    right: 10px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 6px;
  }

  .lengthLabel {
    font-size: 0.75rem;
  }

  .lengthValue {
    font-size: 0.85rem;
    padding: 0.08rem 0.35rem;
  }
}
