html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.ts-wrapper.single .ts-control {
  overflow: hidden;
}

.ts-wrapper.single .ts-control > .item {
  max-width: calc(100% - 3rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Responsive 3D visualization height */
#visualization-container {
    height: 250px;
    width: 100%;
}

@media (min-width: 576px) {
    #visualization-container {
        height: 300px;
    }
}

@media (min-width: 768px) {
    #visualization-container {
        height: 350px;
    }
}

@media (min-width: 992px) {
    #visualization-container {
        height: 400px;
    }
}

/* Touch-friendly button targets */
@media (hover: none) and (pointer: coarse) {
    .btn-group .btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Prevent iOS zoom on input focus */
@media (max-width: 767.98px) {
    input[type="number"],
    .form-control,
    .form-select {
        font-size: 16px;
    }
}