
/* AKO_U07_X01_CAPTURE_CENTER_CSS_V1 */

.ako-x01-hidden-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ako-x01-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 11px 0 5px;
}

.ako-x01-actions button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(217,76,145,.23);
  border-radius: 13px;
  background: #fff;
  color: #782c54;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(52,28,41,.07);
}

.ako-x01-actions button.primary {
  border-color: transparent;
  color: white;
  background:
    linear-gradient(
      135deg,
      #d94c91,
      #3aade8
    );
}

.ako-x01-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.ako-x01-preview {
  display: block;
  width: min(100%, 300px);
  max-height: 210px;
  margin-top: 10px;
  object-fit: contain;
  border: 1px solid #eadde1;
  border-radius: 15px;
  background: #f8f6f7;
}

.ako-x01-progress {
  margin: 0 0 15px;
  padding: 12px 14px;
  border: 1px solid #eadde1;
  border-radius: 15px;
  background:
    linear-gradient(
      135deg,
      #fff9fc,
      #f6fbff
    );
}

.ako-x01-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 850;
}

.ako-x01-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee7eb;
}

.ako-x01-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #d94c91,
      #3aade8
    );
  transition: width .25s ease;
}

.ako-x01-scanner[hidden] {
  display: none !important;
}

.ako-x01-scanner {
  position: fixed;
  inset: 0;
  z-index: 2147483500;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(
      circle at 50% 25%,
      #233d59,
      #050a11 62%
    );
}

.ako-x01-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:
    calc(12px + env(safe-area-inset-top))
    14px
    10px;
}

.ako-x01-top small {
  display: block;
  color: #86d9ff;
  font-weight: 900;
  letter-spacing: .08em;
}

.ako-x01-top strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
}

.ako-x01-top button {
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: white;
  font-size: 22px;
}

.ako-x01-body {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 8px 14px;
}

.ako-x01-stage {
  position: relative;
  width: min(100%, 680px);
  max-height: 69dvh;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  background: black;
  box-shadow: 0 20px 75px rgba(0,0,0,.5);
}

.ako-x01-stage.id-mode {
  aspect-ratio: 4 / 3;
}

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

.ako-x01-guide {
  --guide: #ffc34d;

  position: absolute;
  left: 6%;
  top: 23%;
  width: 88%;
  height: 55%;
  pointer-events: none;
  border: 3px solid var(--guide);
  border-radius: 20px;
  box-shadow:
    0 0 0 999px rgba(0,0,0,.25),
    0 0 25px rgba(255,195,77,.30);
  transition:
    border-color .10s linear,
    box-shadow .10s linear;
}

.ako-x01-guide.portrait {
  left: 18%;
  top: 8%;
  width: 64%;
  height: 84%;
  border-radius: 34% 34% 25% 25%;
}

.ako-x01-guide.good {
  --guide: #32df85;
  box-shadow:
    0 0 0 999px rgba(0,0,0,.24),
    0 0 28px rgba(50,223,133,.42);
}

.ako-x01-guide.bad {
  --guide: #ff5964;
  box-shadow:
    0 0 0 999px rgba(0,0,0,.25),
    0 0 28px rgba(255,89,100,.40);
}

.ako-x01-guide.searching {
  --guide: #ffc34d;
}

.ako-x01-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0,1fr));
  gap: 5px;
  pointer-events: none;
}

.ako-x01-hud span {
  min-width: 0;
  overflow: hidden;
  padding: 5px 6px;
  border-radius: 8px;
  background: rgba(0,0,0,.50);
  color: #e5eef6;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  font-size: 9px;
  font-weight: 850;
}

.ako-x01-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: min(90%, 540px);
  transform: translateX(-50%);
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(0,0,0,.60);
  text-align: center;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.ako-x01-bottom {
  padding:
    10px 14px
    calc(14px + env(safe-area-inset-bottom));
}

.ako-x01-bottom p {
  width: min(100%, 680px);
  margin: 0 auto 10px;
  color: #b6c4d0;
  text-align: center;
  font-size: 10px;
}

.ako-x01-controls {
  width: min(100%, 680px);
  margin: auto;
  display: grid;
  grid-template-columns:
    1fr 1.2fr 1fr;
  gap: 8px;
}

.ako-x01-controls button {
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 15px;
  background: rgba(255,255,255,.10);
  color: white;
  font-weight: 850;
}

.ako-x01-controls button.primary {
  border-color: transparent;
  background:
    linear-gradient(
      135deg,
      #d94c91,
      #3aade8
    );
}

.ako-x01-auto {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin: 9px auto 0;
  color: #dbe8f3;
  font-size: 11px;
  font-weight: 800;
}

.ako-job-doc-status[
  data-ako-x01-state="good"
] {
  color: #12844c;
  font-weight: 850;
}

.ako-job-doc-status[
  data-ako-x01-state="bad"
] {
  color: #bd303c;
  font-weight: 850;
}

@media (prefers-reduced-motion: reduce) {
  .ako-x01-guide,
  .ako-x01-fill {
    transition: none;
  }
}
