.arjs-loader {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .arjs-loader div {
    text-align: center;
    font-size: 1.25em;
    color: white;
  }

  /* Styles for the hamburger menu */
  .hamburger-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10000;
    width: 30px;
    height: 30px;
    cursor: pointer;
  }

  .hamburger-menu div {
    width: 100%;
    height: 4px;
    background-color: white;
    margin: 5px 0;
  }

/* Menu Content */
.menu-content {
  position: absolute;
  top: 50px;
  right: 10px;
  z-index: 10000;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.95));
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 200px;
  padding: 0;
  overflow: hidden;
}

.menu-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 20px;
  margin: 0;
  border-radius: 15px 15px 0 0;
}

.menu-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.menu-buttons {
  padding: 15px;
}

.menu-button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.menu-button:last-child {
  margin-bottom: 0;
}

.menu-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.menu-button:active {
  transform: translateY(0);
}

.menu-button .button-icon {
  margin-right: 10px;
  font-size: 18px;
}

.menu-button .button-text {
  flex: 1;
  text-align: left;
}

/* Camera Modal Styles */
.camera-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 15000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  width: 90%;
  max-height: 80%;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.close-button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.close-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.camera-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.camera-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.camera-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

.camera-item.active {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.camera-icon {
  margin-right: 12px;
  font-size: 18px;
}

.camera-name {
  flex: 1;
  text-align: left;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
}  /* Styles for the control buttons */
  .control-button {
    position: absolute;
    z-index: 10000;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
  }

  /* Positioning the buttons */
  #moveLeft {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
  }

  #moveRight {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
  }

  #moveUp {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
  }

  #moveDown {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
  }

  #scaleUp {
    bottom: 60px;
    right: 10px;
  }

  #scaleDown {
    bottom: 110px;
    right: 10px;
  }

  #saveCalibration {
    bottom: 160px;
    right: 10px;
  }

  /* Hidden class */
  .hidden {
    display: none;
  }