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;
}

.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;
}

.tree-panel {
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: auto;
}

.tree-root, .tree-children {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.tree-root {
  padding-left: 0;
}

.tree-label {
  cursor: pointer;
  display: inline-block;
  padding: 2px 4px;
  border-radius: 4px;
}

.tree-label:hover {
  background-color: #e9ecef;
}

.tree-label.active {
  background-color: #cfe2ff;
}

.tree-label.not-previewable {
  color: #adb5bd;
  cursor: not-allowed;
}

.file-viewer {
  max-height: 80vh;
  overflow: auto;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: #f8f9fa;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.file-viewer pre {
  margin: 0;
}

.file-viewer code {
  white-space: pre;
}

@media (max-width: 767.98px) {
  .tree-panel {
    max-height: 35vh;
    margin-bottom: 1rem;
  }

  .file-viewer {
    max-height: 55vh;
    font-size: 0.85rem;
  }
}