body {
  min-height: 100vh;
  padding-bottom: 2rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: inline-block;
  height: 2rem;
  width: auto;
  margin-right: 0.5rem;
}

.drop-zone {
  border: 2px dashed var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.drop-zone.dragover {
  border-color: var(--bs-info);
  background: rgba(13, 202, 240, 0.08);
}

.preview-wrap {
  background: #090d16;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.35rem;
  padding: 0.5rem;
}

.preview-img {
  width: 100%;
  max-height: 45vh;
  object-fit: contain;
  border-radius: 0.35rem;
}

.preview-frame {
  position: relative;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  cursor: crosshair;
}

.crop-box {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  cursor: move;
  z-index: 2;
  touch-action: none;
}

.crop-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 1px solid #333;
  box-sizing: border-box;
}

.crop-handle-nw { top: -7px; left: -7px; cursor: nwse-resize; }
.crop-handle-n { top: -7px; left: 50%; margin-left: -6px; cursor: ns-resize; }
.crop-handle-ne { top: -7px; right: -7px; cursor: nesw-resize; }
.crop-handle-e { top: 50%; right: -7px; margin-top: -6px; cursor: ew-resize; }
.crop-handle-se { bottom: -7px; right: -7px; cursor: nwse-resize; }
.crop-handle-s { bottom: -7px; left: 50%; margin-left: -6px; cursor: ns-resize; }
.crop-handle-sw { bottom: -7px; left: -7px; cursor: nesw-resize; }
.crop-handle-w { top: 50%; left: -7px; margin-top: -6px; cursor: ew-resize; }

.result-img {
  width: 100%;
  border-radius: 0.5rem;
}

.result-img.vector {
  background: #fff;
}

#models-tbody tr {
  cursor: pointer;
}

#models-tbody tr.selected {
  background: rgba(99, 102, 241, 0.12);
}

.camera-video {
  width: 100%;
  max-height: 60vh;
  background: #000;
  border-radius: 0.5rem;
}
