* {
  box-sizing: initial !important;
  font-family: 'Lato', sans-serif;
}

#container {
  width: 100%;
  height: calc(100vh - 100px);
  overflow: hidden;
  background: #000;
  color: #fff;
}

.tabs {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 100px);
}

.tablist {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #333;
  height: 30px;
}

.tablist button {
  background: #111;
  color: #fff;
  border: 1px solid #333;
  cursor: pointer;
  border-radius: 8px;
  box-sizing: content-box;
}

.tablist button.active {
  background: #E68000;
  color: #000;
}

.tabpanels {
  flex: 1;
  position: relative;
}

.tabpanel {
  position: absolute;
  inset: 0;
  display: none;
}

.tabpanel.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer {
  width: 100%;
  height: calc(100% - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
}

video {
  max-width: 100%;
  max-height: calc(100% - 100px);
}

#tab-image {
  overflow: hidden;
  cursor: grab;
}

#tab-image.grabbing {
  cursor: grabbing;
}

#tab-image img {
  transition: transform 0.1s ease-out;
  user-select: none;
}

.modelViewer {
  width: 100%;
  height: 100%;
}

.image-controls,
.model-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 8px;
  z-index: 10;
}

.image-controls button,
.model-controls button {
  background: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
}

.image-controls button:hover,
.model-controls button:hover {
  background: #444;
}

.loader {
  width: 48px;
  height: 48px;
  border: 3px solid #000;
  border-radius: 50%;
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.loader::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid;
  border-color: #E68000 transparent;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}