/* ── Vel-Time Kiosk Styles ─────────────────────────────── */

/* Login wrap */
#veltime-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a0a00;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
}
#veltime-login-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px 48px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.vt-logo .vt-om {
    display: none;
}
.vt-logo h1 {
    font-size: 20px;
    color: #1a0a00;
    margin: 0 0 4px;
    font-weight: 700;
}
.vt-logo p {
    color: #888;
    font-size: 13px;
    margin-bottom: 24px;
}
#veltime-login-box #loginform {
    text-align: left;
}
#veltime-login-box input[type="text"],
#veltime-login-box input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 12px;
    box-sizing: border-box;
}
#veltime-login-box #vt-submit {
    width: 100%;
    background: #b8860b;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
}
#veltime-login-box #vt-submit:hover { background: #9a7200; }

/* ── Kiosk App ─────────────────────────────────────────── */
#veltime-app {
    min-height: 100vh;
    background: #1a0a00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

#vt-kiosk {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    padding: 36px 40px 40px;
    box-shadow: 0 12px 60px rgba(0,0,0,0.6);
    text-align: center;
    position: relative;
}

/* Header */
#vt-header {
    margin-bottom: 28px;
}
#vt-logo-wrap {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}
#vt-logo-img {
    max-height: 64px;
    max-width: 200px;
    object-fit: contain;
}
#vt-app-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a0a00;
    letter-spacing: .5px;
    margin: 2px 0 2px;
    line-height: 1.1;
}
#vt-version {
    font-size: 11px;
    font-weight: 400;
    color: #b8860b;
    vertical-align: super;
    margin-left: 4px;
    letter-spacing: 0;
}
#vt-clock {
    font-size: 32px;
    font-weight: 700;
    color: #1a0a00;
    letter-spacing: 1px;
    margin: 2px 0 0;
}
#vt-date {
    font-size: 13px;
    color: #999;
}

/* PIN display */
#vt-pin-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 16px;
}
.vt-pin-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    transition: background .15s, border-color .15s;
}
.vt-pin-dot.filled {
    background: #b8860b;
    border-color: #b8860b;
}

/* PIN label */
#vt-pin-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
    min-height: 20px;
}

/* PIN pad */
#vt-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 auto 20px;
    max-width: 300px;
}
.vt-key {
    background: #f5f0e8;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1a0a00;
    padding: 18px 10px;
    cursor: pointer;
    transition: background .12s, transform .08s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.vt-key:hover  { background: #ede3cc; }
.vt-key:active { background: #b8860b; color: #fff; transform: scale(.95); }
.vt-key.vt-del { font-size: 16px; color: #c0392b; }
.vt-key.vt-clr { font-size: 13px; color: #888; }

/* Action buttons */
#vt-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}
.vt-action-btn {
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    padding: 16px 8px;
    cursor: pointer;
    transition: opacity .15s, transform .08s;
    letter-spacing: .3px;
}
.vt-action-btn:active { transform: scale(.96); }
.vt-action-btn:disabled { opacity: .4; cursor: default; }

#vt-btn-in    { background: #27ae60; color: #fff; }
#vt-btn-in:hover:not(:disabled)  { background: #219150; }
#vt-btn-out   { background: #e74c3c; color: #fff; }
#vt-btn-out:hover:not(:disabled) { background: #c0392b; }
#vt-btn-hours { background: #2980b9; color: #fff; }
#vt-btn-hours:hover:not(:disabled) { background: #1f6898; }

/* Status message */
#vt-status {
    min-height: 22px;
    font-size: 13px;
    color: #888;
    margin: 14px 0 0;
}
#vt-status.success { color: #27ae60; font-weight: 600; }
#vt-status.error   { color: #e74c3c; font-weight: 600; }

/* ── Modal ─────────────────────────────────────────────── */
#vt-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#vt-modal-overlay.open { display: flex; }

#vt-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px 36px;
    max-width: 460px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
#vt-modal-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none; border: none;
    font-size: 22px; color: #aaa;
    cursor: pointer; line-height: 1;
}
#vt-modal-close:hover { color: #555; }

#vt-modal h2 {
    font-size: 20px;
    color: #1a0a00;
    margin: 0 0 4px;
}
#vt-modal .vt-modal-sub {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.vt-hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.vt-hours-card {
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.vt-hours-card.month { background: #eaf6ff; }
.vt-hours-card.total { background: #fef9ec; }
.vt-hours-card .vt-hnum {
    font-size: 34px;
    font-weight: 700;
    color: #1a0a00;
    line-height: 1.1;
}
.vt-hours-card .vt-hlabel {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.vt-sessions-title {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.vt-session-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #555;
}
.vt-session-row:last-child { border-bottom: none; }
.vt-session-dur { font-weight: 700; color: #1a0a00; }

/* Toast */
#vt-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a0a00;
    color: #fff;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    pointer-events: none;
    z-index: 10000;
    white-space: nowrap;
}
#vt-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
#vt-toast.success { background: #27ae60; }
#vt-toast.error   { background: #c0392b; }

/* Loading spinner inside buttons */
.vt-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vt-spin .6s linear infinite;
    vertical-align: middle;
}
@keyframes vt-spin { to { transform: rotate(360deg); } }

/* Hide WP admin bar on kiosk page */
body.page-template-default #wpadminbar { display: none !important; }
html { margin-top: 0 !important; }
