﻿/* ================================
   Global kiosk look & feel
   ================================ */
.upper-case {
    text-transform: uppercase;
}

.kiosk-bg {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #020617 0%, #020617 35%, #0b1120 65%, #020617 100%);   
    
    color: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ================================
   Header
   ================================ */

.kiosk-header {
    color: #e5e7eb;
}

.kiosk-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FFEA00;
}

.kiosk-subtitle {
    margin-top: 0.3rem;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

/* Smaller header on phones */
@media (max-width: 575.98px) {
    .kiosk-title {
        font-size: 1.7rem;
        letter-spacing: 0.12em;
    }

    .kiosk-subtitle {
        font-size: 0.85rem;
    }
}

/* ================================
   Main card
   ================================ */

.kiosk-card {
    background: linear-gradient(145deg, rgba(15,23,42,0.98), rgba(15,23,42,0.92));
    padding: 2.4rem 2.1rem;
    border-radius: 28px;
    width: 95%;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(148, 163, 184, 0.08);
    backdrop-filter: blur(5px);
}

/* Tighter padding on very small devices */
@media (max-width: 575.98px) {
    .kiosk-card {
        padding: 1.8rem 1.4rem;
        border-radius: 22px;
        max-width: 420px;
    }
}

/* ================================
   Typography helpers
   ================================ */

.kiosk-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.text-muted-soft {
    color: #9ca3af !important;
}

/* ================================
   Tile buttons (Clock In / Out)
   ================================ */

.kiosk-tile-btn {
    width: 100%;
    height: 170px;
    border-radius: 24px;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 10px 26px rgba(0,0,0,0.45);
    border: none;
    transition: transform 0.14s ease-out, box-shadow 0.14s ease-out, filter 0.14s ease-out;
}

/* Bigger tiles on tablets / Surface / desktop */
@media (min-width: 768px) {
    .kiosk-tile-btn {
        height: 190px;
        font-size: 1.7rem;
    }
}

/* Slightly smaller tiles on narrow phones */
@media (max-width: 420px) {
    .kiosk-tile-btn {
        height: 150px;
        font-size: 1.35rem;
    }
}

.kiosk-tile-btn:hover,
.kiosk-tile-btn:active {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 32px rgba(0,0,0,0.55);
    filter: brightness(1.03);
}

/* Remove default focus blue outline, keep accessibility with subtle glow */
.kiosk-tile-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(248, 250, 252, 0.5), 0 14px 32px rgba(0,0,0,0.55);
}

/* Clock In (green) */
.kiosk-green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #f9fafb !important;
}

/* Clock Out (red) */
.kiosk-red {
    background: linear-gradient(135deg, #dc2626, #f97373);
    color: #f9fafb !important;
}

/* ================================
   Wide button (Check My Hours)
   ================================ */

.kiosk-wide-btn {
    display: block;
    width: 100%;
    padding: 0.95rem 1.2rem;
    border-radius: 999px;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid #e5e7eb;
    color: #e5e7eb !important;
    background: transparent;
    text-decoration: none !important;
    transition: background-color 0.14s ease-out, color 0.14s ease-out, transform 0.12s ease-out;
    margin-top: 0.5rem;
}

    .kiosk-wide-btn:hover,
    .kiosk-wide-btn:active {
        background: #e5e7eb;
        color: #111827 !important;
        transform: translateY(-2px);
    }

    .kiosk-wide-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(248, 250, 252, 0.5);
    }

/* ================================
   Footer
   ================================ */

.kiosk-footer {
    color: #64748b;
}


/* ======================================
   PIN PAGE — BEAUTIFUL TOUCH KEYPAD
   ====================================== */

.pin-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.pin-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.pin-subtitle {
    font-size: 1.1rem;
    opacity: .7;
}

/* ============================================
   PIN BOXES (Square boxes, SewSocial themed)
   ============================================ */

.pin-boxes {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 1.5rem;
}

.pin-box {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    background: #0f172a;
    border: 3px solid #475569;
    color: #f9fafb;
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.45);
    transition: all .15s ease-out;
}

    /* Filled (digit entered) */
    .pin-box.filled {
        border-color: #FFEA00;
        background: rgba(255, 234, 0, 0.08);
        color: #FFEA00;
    }

    /* Focus / next box */
    .pin-box.focus {
        border-color: #016EB3;
        box-shadow: 0 0 0 2px rgba(1, 110, 179, 0.5), 0 0 18px rgba(1, 110, 179, 0.75);
        animation: pin-focus-pulse 0.8s ease-in-out infinite alternate;
    }

/* Bigger on tablets */
@media(min-width: 768px) {
    .pin-box {
       /* width: 80px;
        height: 80px; */
        font-size: 2.6rem;
    }
}

/* Smaller on small phones */
@media(max-width: 420px) {
    .pin-box {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}

/* Focus pulsing animation */
@keyframes pin-focus-pulse {
    from {
        transform: scale(1.0);
    }

    to {
        transform: scale(1.05);
    }
}


/* error message */
.pin-error {
    color: #f87171;
    font-weight: 600;
}

/* KEYPAD */
.keypad {
    margin-top: 10px;
}

.key-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
}

/* keypad buttons */
/*.key {
    width: 85px;
    height: 85px;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 18px;
    border: none;
    background: #1e293b;
    color: #e2e8f0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    transition: transform .1s, background .15s;
}

    .key:hover {
        transform: scale(1.08);
        background: #334155;
    }

    .key:active {
        transform: scale(0.96);
    } */

.key {
    width: 85px;
    height: 85px;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 18px;
    border: none;
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    transition: transform .1s, background .15s, box-shadow .15s;
}

    .key:hover {
        transform: scale(1.08);
        background: #1d3554;
        box-shadow: 0 9px 22px rgba(0,0,0,0.6);
    }

    .key:active {
        transform: scale(0.96);
        background: #016EB3;
    }

/* Functional buttons (Clear, Back) */
.key-func {
    font-size: 1.1rem;
    background: #334155;
}

/* Smaller on phones */
@media(max-width: 450px) {
    .key {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
        border-radius: 16px;
    }
}

/* ================================
   Back Button (Top Left)
   ================================ */

.kiosk-back-btn {
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFEA00;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(255, 234, 0, 0.1);
    border: 2px solid #FFEA00;
    transition: 0.15s ease;
}

    .kiosk-back-btn:hover {
        background: #FFEA00;
        color: #1e293b;
        transform: scale(1.05);
    }

    .kiosk-back-btn:active {
        transform: scale(0.94);
    }

@media(max-width: 480px) {
    .kiosk-back-btn {
        font-size: 1rem;
        top: 12px;
        left: 14px;
        padding: 8px 14px;
    }
}


/* ================================
   Clock In Confirmation Styling
   ================================ */

.clockin-wrapper {
    max-width: 460px;
    margin: 0 auto;
}

.clockin-title {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.clockin-subtitle {
    font-size: 1rem;
    color: #cbd5f5;
}

/* Plan card */
.clockin-plan-card {
    background: #020617;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1rem 1.1rem 1.2rem;
}

.clockin-plan-header {
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

/* Metrics row */
.clockin-metrics {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.clockin-metric {
    flex: 1;
    background: #0b1220;
    border-radius: 14px;
    padding: 0.6rem 0.35rem;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #9ca3af;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    color: #e5e7eb;
}

.metric-sub {
    font-size: 0.75rem;
    
}

/* Warning strip */
.clockin-warning {
    background: rgba(248, 113, 113, 0.1);
    border-radius: 14px;
    border: 1px solid #f97373;
    padding: 0.75rem 0.9rem;
    color: #fecaca;
    font-size: 0.95rem;
}

/* Big action buttons (reuse for Clock In / Out screens) */
.kiosk-tile-action {
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    font-size: 1.15rem;
    font-weight: 600;
    border-width: 0;
}

/* Green primary action */
.kiosk-green-action {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #f9fafb;
}

/* Red primary action */
.kiosk-red-action {
    background: linear-gradient(135deg, #dc2626, #f97373);
    color: #f9fafb;
}

/* Outline action */
.kiosk-outline-action {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #e5e7eb;
}

    .kiosk-outline-action:hover {
        background: #e5e7eb;
        color: #020617;
    }

/* ================================
   Clock Out Summary
   ================================ */

.clockout-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

.clockout-title {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.clockout-subtitle {
    font-size: 1rem;
    color: #cbd5f5;
}

.clockout-card {
    background: #020617;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1rem 1.1rem 1.25rem;
}

.clockout-card-header {
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  /*  color: #9ca3af; */
    margin-bottom: 0.6rem;
}

/* Metrics row reused for clock out */
.clockout-metrics {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.clockout-metric {
    flex: 1;
    background: #0b1220;
    border-radius: 14px;
    padding: 0.6rem 0.35rem;
}

/* Session-specific row */
.clockout-session-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.clockout-session-item {
    flex: 1;
    background: #0b1220;
    border-radius: 14px;
    padding: 0.7rem 0.4rem;
}

/* Overage box */
.clockout-overage {
    background: rgba(248, 113, 113, 0.1);
    border-radius: 14px;
    border: 1px solid #f97373;
    padding: 0.8rem 0.9rem;
    color: #fecaca;
    font-size: 0.95rem;
    text-align: left;
}

    .clockout-overage .overage-title {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        margin-bottom: 0.4rem;
        color: #fecaca;
    }

/* ================================
   Check My Hours
   ================================ */

.checkhours-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

.check-title {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.check-subtitle {
    font-size: 1rem;
    color: #cbd5f5;
}

.check-card {
    background: #020617;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.1rem 1.1rem 1.3rem;
}

.check-card-header {
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin-bottom: 0.6rem;
}

/* Metrics row */
.check-metrics {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.check-metric {
    flex: 1;
    background: #0b1220;
    border-radius: 14px;
    padding: 0.6rem 0.4rem;
}

/* Progress bar */
.check-progress {
    margin-top: 0.75rem;
}

.check-progress-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.check-progress-bar {
    position: relative;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #020617;
    border: 1px solid #1f2937;
    overflow: hidden;
}

.check-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #a3e635);
    transition: width 0.25s ease-out;
}

    /* Near limit */
    .check-progress-fill.near {
        background: linear-gradient(90deg, #f59e0b, #facc15);
    }

    /* Over limit */
    .check-progress-fill.over {
        background: linear-gradient(90deg, #ef4444, #f97373);
    }

.check-open-session {
    background: rgba(56, 189, 248, 0.1);
    border-radius: 14px;
    border: 1px solid #38bdf8;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
}

/* ================================
   Clock In Success
   ================================ */

.clockinsuccess-wrapper {
    max-width: 460px;
    margin: 0 auto;
}

.clockinsuccess-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #FFEA00; /* SewSocial Yellow */
}

.clockinsuccess-subtitle {
    font-size: 1.1rem;
    color: #cbd5f5;
}

/* Card */
.clockinsuccess-card {
    background: #020617;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.25rem 1.3rem;
}

.clockinsuccess-header {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    text-align: left;
}

.clockinsuccess-time {
    font-size: 2.4rem;
    font-weight: 700;
    color: #22c55e;
}

.clockinsuccess-message {
    font-size: 1rem;
    color: #9ca3af;
}



.clockin-root {
    animation: fadeInBg 0.6s ease-out;
}

.clockin-wrapper {
    max-width: 520px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease-out;
}

.animate-welcome {
    animation: welcomePulse 0.8s ease-out;
}

.brand-bounce {
    animation: brandFloat 3s ease-in-out infinite;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(1, 110, 179, 0.06);
    border: 1px solid rgba(1, 110, 179, 0.18);
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFEA00;
    box-shadow: 0 0 0 3px rgba(255, 234, 0, 0.4);
}

.brand-text {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #016EB3;
    font-weight: 600;
}

.clockin-plan-card {
    border-radius: 1rem;
    border: 1px solid #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 1.25rem 1.5rem;
}

.clockin-plan-header span:first-child {
    font-weight: 600;
    /*color: #37474f; */
}

.plan-hours-label {
    font-size: 1rem;
    
}

.clockin-metrics {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.clockin-metric {
    flex: 1 1 0;
    min-width: 90px;
}

.metric-label {
    font-size: 0.75rem;
    
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    
}

.metric-sub {
    font-size: 0.75rem;
    
}

.clockin-warning-bar {
    border-radius: 0.75rem;
    background: #fff8e1;
    border-color: #ffecb3;
    color: #795548;
}

.warning-icon {
    font-size: 1.2rem;
}

.billing-estimate-card {
    
    border-radius: 0.9rem;
    border: 1px solid #e0e7ff;
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.9rem;
}

.billing-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.text-muted-soft {
    color: #90a4ae;
    font-size: 0.9rem;
}

.clockin-info-card {
    background: #020617;
    border-radius: 0.9rem;
    border: 1px dashed #cbd5f5;
    padding: 0.9rem 1rem;
}

.last-visit {
    font-style: italic;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInBg {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes welcomePulse {
    0% {
        transform: scale(0.96);
        opacity: 0;
    }

    60% {
        transform: scale(1.02);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

@keyframes brandFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@media (max-width: 576px) {
    .clockin-plan-card {
        padding: 1rem 1rem;
    }
}




.kiosk-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kiosk-loading-inner {
    text-align: center;
}

.kiosk-timeout-banner {
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

    .kiosk-timeout-banner .timeout-text {
        margin-bottom: 0.12rem;
    }

.timeout-progress {
    width: 100%;
    max-width: 340px;
    height: 6px;
    border-radius: 999px;
    margin: 0.2rem auto 0;
    background: #e2e8f0;
    overflow: hidden;
}

.timeout-progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #22c55e, #fbbf24, #ef4444);
    transition: width 0.4s linear;
}

