/*** This text should be at the top of all code files ***
 * app.css – used for QR App Lite application styling
 * Made by: Morten Pilekær
 * Rev. 0.4.0 Owner: Morten Pilekær
 * Location: /qr-app-lite/css/app.css
 ***/

:root {
  color-scheme: light;
}

body {
  min-height: 100vh;
  background: #f5f6f8;
}

.app-container {
  min-height: calc(100vh - 160px);
}

.app-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: #0d6efd;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.app-page-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 1rem;
}

.card {
  border-radius: 0.85rem;
}

.card-header:first-child {
  border-top-left-radius: 0.85rem;
  border-top-right-radius: 0.85rem;
}

.qr-preview {
  image-rendering: pixelated;
  max-height: 520px;
}

.app-footer {
  background: #ffffff;
}

code {
  color: #0d6efd;
}

/* QR-scanner */
.scanner-video-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 260px;
}

.scanner-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-frame {
  position: absolute;
  inset: 18%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 1rem;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

#scanResult {
  resize: vertical;
}

.scan-history-list:empty {
  display: none;
}

.scan-history-item code {
  display: inline-block;
  max-width: 100%;
  white-space: pre-wrap;
}

.scan-history-value {
  color: #212529;
}

@media (max-width: 575.98px) {
  .scanner-video-wrap {
    min-height: 220px;
  }

  .display-6 {
    font-size: 1.9rem;
  }
}
