/*
 * checkin-core.css — styles for the shared check-in scanner (window.CheckinCore).
 * Full-bleed dark kiosk, mobile-first. Self-contained.
 */
.cc-kiosk {
    position: fixed; inset: 0; background: #0b1622; color: #fff;
    display: flex; flex-direction: column;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
}

.cc-bar {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.cc-bar-titles { flex: 1; min-width: 0; }
.cc-bar-title { font: 800 16px/1.2 'Manrope', 'Inter', sans-serif; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-bar-sub { font: 600 12px/1.2 'Inter', sans-serif; color: #f6bd61; margin-top: 2px; }
.cc-exit {
    flex: 0 0 auto; background: rgba(255, 255, 255, .12); color: #fff; border: none;
    padding: 10px 14px; border-radius: 10px; font: 700 13px/1 'Inter', sans-serif; cursor: pointer;
}
.cc-exit:hover { background: rgba(255, 255, 255, .2); }

.cc-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 18px; min-height: 0; }
.cc-frame { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
#cc-qr-reader { position: absolute; inset: 0; }
#cc-qr-reader video { width: 100% !important; height: 100% !important; object-fit: cover !important; }

/* Target corners */
.cc-target { position: absolute; inset: 12%; pointer-events: none; }
.cc-target i { position: absolute; width: 34px; height: 34px; border: 4px solid rgba(246, 189, 97, .9); }
.cc-target i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.cc-target i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.cc-target i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.cc-target i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.cc-frame.cc-live .cc-target { animation: cc-pulse 1.8s ease-in-out infinite; }
@keyframes cc-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.cc-hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font: 600 13px/1.3 'Inter', sans-serif; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 4px rgba(0, 0, 0, .6); padding: 0 16px; }

.cc-tools { display: flex; gap: 10px; padding: 0 16px 18px; justify-content: center; }
.cc-tool { background: rgba(255, 255, 255, .1); color: #fff; border: none; padding: 12px 16px; border-radius: 12px; font: 700 13.5px/1 'Inter', sans-serif; cursor: pointer; }
.cc-tool:hover { background: rgba(255, 255, 255, .18); }

/* Overlays (result / not-found / camera-error / search) */
.cc-overlay { position: absolute; inset: 0; background: rgba(8, 16, 26, .78); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 5; }
.cc-overlay[hidden] { display: none; }
.cc-card { width: 100%; max-width: 420px; background: #fff; color: #16222e; border-radius: 20px; padding: 30px 26px; text-align: center; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); animation: cc-pop .18s ease-out; }
@keyframes cc-pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cc-card--bad { }
.cc-card--search { text-align: left; padding: 22px; }

.cc-pill { display: inline-block; padding: 7px 16px; border-radius: 999px; font: 800 13px/1 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.cc-pill--ok { background: #e6f7f0; color: #138567; }
.cc-pill--dup { background: #fff3e0; color: #b76a00; }
.cc-pill--bad { background: #fdecec; color: #b3261e; }

.cc-res-name { font: 800 26px/1.15 'Manrope', 'Inter', sans-serif; color: #204164; letter-spacing: -.01em; }
.cc-res-meta { font: 600 14px/1.5 'Inter', sans-serif; color: #5b6b7a; margin-top: 8px; }

.cc-next { margin-top: 22px; width: 100%; padding: 14px; border: none; border-radius: 12px; cursor: pointer; font: 800 15px/1 'Inter', sans-serif; color: #fff; background: linear-gradient(135deg, #f39c12, #e8890b); box-shadow: 0 4px 14px rgba(243, 156, 18, .3); }
.cc-next:hover { transform: translateY(-1px); }
.cc-next--ghost { background: #eef2f7; color: #204164; box-shadow: none; }

/* Manual search */
#cc-search-input { width: 100%; padding: 13px 15px; border: 1.5px solid #e9eef4; border-radius: 12px; font: 500 16px/1.2 'Inter', sans-serif; background: #fbfcfe; }
#cc-search-input:focus { outline: none; border-color: #2c588a; background: #fff; }
.cc-search-results { margin-top: 12px; max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.cc-sr-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; width: 100%; background: #f6f8fb; border: none; border-radius: 10px; padding: 11px 13px; cursor: pointer; }
.cc-sr-row:hover { background: #eef2f7; }
.cc-sr-row.is-done { opacity: .6; }
.cc-sr-name { font: 700 14.5px/1.2 'Inter', sans-serif; color: #204164; }
.cc-sr-meta { font: 500 12.5px/1.2 'Inter', sans-serif; color: #5b6b7a; }
.cc-sr-empty { text-align: center; color: #5b6b7a; padding: 24px; font: 500 14px/1 'Inter', sans-serif; }

@media (max-width: 768px) {
    .cc-frame { max-width: 92vw; }
    .cc-res-name { font-size: 23px; }
}
