/* =============================================
   QR 출퇴근 키오스크 디스플레이 — Dark Theme
   ============================================= */
.e-main:has(.qr-kiosk) {
    padding: 0;
}
.qr-kiosk {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin-top: calc(-1 * (var(--main-nav, 56px) + var(--nav-h, 56px)));
    padding: 0 20px;
    background: linear-gradient(180deg, rgba(15,23,42,0.6) 0%, rgba(30,27,75,0.4) 100%);
    text-align: center;
    gap: 16px;
    overflow: hidden;
}

/* ── 헤더 ── */
.qr-kiosk-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.qr-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(129,140,248,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #818cf8;
}
.qr-header-text h1 {
    font-size: 22px;
    font-weight: 800;
    color: rgba(255,255,255,0.95);
    letter-spacing: -0.03em;
    margin: 0;
}
.qr-header-text p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin: 6px 0 0;
    font-weight: 500;
}

/* ── QR 코드 영역 ── */
.qr-code-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.qr-timer {
    font-size: 13px;
    color: rgba(255,255,255,.4);
    font-weight: 500;
}
.qr-timer span {
    color: #818cf8;
    font-weight: 700;
    font-family: 'Inter', monospace;
}
.qr-code-frame {
    position: relative;
    width: 280px;
    height: 280px;
    background: #0e0e16;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(129,140,248,0.15),
        0 8px 32px rgba(0,0,0,0.3),
        0 0 60px rgba(129,140,248,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: frameGlow 4s ease-in-out infinite;
}
@keyframes frameGlow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(129,140,248,0.15), 0 8px 32px rgba(0,0,0,0.3), 0 0 40px rgba(129,140,248,0.06); }
    50%      { box-shadow: 0 0 0 1px rgba(129,140,248,0.3),  0 8px 32px rgba(0,0,0,0.3), 0 0 80px rgba(129,140,248,0.15); }
}

/* ── QR Placeholder Pattern ── */
.qr-placeholder {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-pattern {
    position: absolute;
    inset: 0;
}

/* Corner finder patterns */
.qr-corner {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 4px solid rgba(129,140,248,0.6);
    border-radius: 6px;
}
.qr-corner::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    background: rgba(129,140,248,0.5);
    border-radius: 3px;
}
.qr-corner-tl { top: 0; left: 0; }
.qr-corner-tr { top: 0; right: 0; }
.qr-corner-bl { bottom: 0; left: 0; }

/* Decorative grid dots */
.qr-grid {
    position: absolute;
    inset: 56px;
    background-image:
        radial-gradient(circle, rgba(129,140,248,0.25) 2px, transparent 2px);
    background-size: 12px 12px;
    border-radius: 4px;
}

/* Center label */
.qr-center-label {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 24px;
    background: rgba(15,23,42,0.85);
    border-radius: 12px;
    border: 1px solid rgba(129,140,248,0.2);
}
.qr-center-label i {
    font-size: 28px;
    color: #818cf8;
}
.qr-center-label span {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── 시계 ── */
.qr-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.qr-date {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
}
.qr-time {
    font-size: 44px;
    font-weight: 900;
    color: rgba(255,255,255,0.95);
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* ── 안내 ── */
.qr-guide {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
}
.qr-guide-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.qr-guide-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.qr-guide-item span {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}
.qr-guide-arrow {
    color: rgba(255,255,255,0.2);
    font-size: 11px;
}

/* ── 상태 ── */
.qr-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #34d399;
}
.qr-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

/* ── 반응형 ── */
@media (max-width: 767px) {
    .qr-kiosk { padding: 24px 16px; gap: 22px; }
    .qr-header-text h1 { font-size: 22px; }
    .qr-code-frame { width: 240px; height: 240px; border-radius: 20px; }
    .qr-placeholder { width: 200px; height: 200px; }
    .qr-corner { width: 40px; height: 40px; }
    .qr-corner::after { top: 6px; left: 6px; width: 16px; height: 16px; }
    .qr-grid { inset: 48px; }
    .qr-time { font-size: 40px; }
    .qr-guide { flex-direction: column; gap: 8px; padding: 16px 20px; }
    .qr-guide-arrow { transform: rotate(90deg); }
}
