/* kiosk/assets/css/kiosk.css
   Touch-friendly, large-tap-target styling for the wall-mounted staff kiosk.
   Independent of staff_app's mobile CSS - this is meant for a fixed tablet
   screen, not a personal phone, so targets and text are bigger throughout. */

html, body.kiosk-body {
    height: 100%;
    margin: 0;
    background: linear-gradient(160deg, #1c2b4a 0%, #2f4b7c 100%);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.kiosk-lock-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #e8edf7; color: #2f4b7c;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin: 0 auto 14px;
}

.kiosk-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    background: #1c2b4a;
}
.kiosk-topbar-brand { font-size: 18px; font-weight: 600; letter-spacing: .5px; }
.kiosk-topbar-clock { font-size: 18px; font-variant-numeric: tabular-nums; opacity: .85; }
.kiosk-lock-btn { border-radius: 20px; }

.kiosk-center {
    display: flex; flex-direction: column; align-items: center;
    padding: 30px 16px 50px;
    max-width: 480px; margin: 0 auto;
    text-align: center;
}

.kiosk-pin-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; margin: 20px auto 10px;
}

.kiosk-title { font-weight: 600; margin-bottom: 18px; }

.kiosk-pin-dots { display: flex; gap: 16px; justify-content: center; margin-bottom: 10px; }
.kiosk-dot {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.55);
    background: transparent;
    transition: background .12s ease, transform .12s ease;
}
.kiosk-dot.filled { background: #fff; transform: scale(1.1); }

.kiosk-pin-message {
    min-height: 24px; font-size: 14px; color: #ffb4b4; margin-bottom: 14px;
}
.kiosk-pin-message.kiosk-msg-ok { color: #9ef0b8; }

.kiosk-pin-dots.kiosk-shake { animation: kioskShake .4s; }
@keyframes kioskShake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-8px); }
    40%, 60% { transform: translateX(8px); }
}

.kiosk-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 320px;
}
.kiosk-key {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.10);
    color: #fff;
    font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.kiosk-key:active { background: rgba(255,255,255,0.28); }
.kiosk-key-clear, .kiosk-key-back {
    font-size: 15px;
    background: rgba(255,255,255,0.05);
}

.kiosk-avatar-lg {
    width: 72px; height: 72px; border-radius: 50%;
    background: #e8edf7; color: #2f4b7c;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 700;
}
.kiosk-staff-name { font-weight: 700; margin-bottom: 4px; }

/* ---- Punch screen (kiosk/punch.php) - light "app" frame around the same
   punch-hero card staff_app/attendance_punch.php uses via app-mobile.css,
   so the actual card content, colors and button states are identical to
   the app - this just wraps it for a bigger, walk-up-friendly kiosk layout. */
body.kiosk-punch-body {
    background: #eef1f6;
    color: #212529;
    min-height: 100%;
    user-select: none;
    -webkit-user-select: none;
}
.kiosk-punch-wrap {
    max-width: 460px;
    margin: 0 auto;
    padding: 30px 16px 50px;
}
.kiosk-punch-wrap .sa-punch-btn {
    -webkit-tap-highlight-color: transparent;
}

.kiosk-punch-message { min-height: 22px; margin-top: 10px; color: #dc3545; font-size: 14px; }

/* Success screen - always plain WHITE (no green full-screen flash), with a
   subtle low-contrast dot pattern for texture rather than a flat block of
   color, and the just-captured photo as the focal point instead of a big
   icon. */
.kiosk-success-overlay {
    position: fixed; inset: 0;
    background-color: #ffffff;
    display: none;
    flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 20px;
    z-index: 1000;
    color: #212529;
}
.kiosk-success-overlay.kiosk-visible { display: flex; }

.kiosk-success-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(47,75,124,0.08) 2px, transparent 2px);
    background-size: 26px 26px;
    pointer-events: none;
}

.kiosk-success-photo-frame {
    position: relative;
    width: 150px; height: 150px;
    border-radius: 50%;
    background: #eef1f6;
    border: 4px solid #2f4b7c;
    display: flex; align-items: center; justify-content: center;
    overflow: visible;
    margin-bottom: 22px;
}
.kiosk-success-photo {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.kiosk-success-check {
    position: absolute; right: -6px; bottom: -6px;
    width: 44px; height: 44px; border-radius: 50%;
    background: #28a745; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.kiosk-success-text { position: relative; font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.kiosk-success-sub { position: relative; font-size: 14px; color: #6c757d; }

/* Reuses the same themed-modal look already used in staff_app for the logout confirm dialog. */
.sa-modal-content { border-radius: 14px; border: none; }
.sa-modal-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: #fdeaea; color: #dc3545;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: 6px auto 12px;
}
