/* ============================================
   POS SYSTEM - Virtual Keyboard Styles
   Floating card style — subtle raised keys
   ============================================ */

.vk-container {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 10000;
    background: #c8cdd5;
    padding: 0 0 10px;
    border-radius: 18px;
    overflow: hidden;
    transform: translateY(calc(100% + 14px));
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 32px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.18);
}
.vk-container.vk-open {
    transform: translateY(0);
}

.vk-body-shift #app {
    padding-bottom: 530px;
}

/* ---- Preview bar ---- */
.vk-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #ffffff;
    border-bottom: 1px solid #d1d5db;
    min-height: 52px;
}
.vk-preview-val {
    font-size: 22px;
    font-weight: 500;
    color: #111827;
    text-align: center;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vk-preview-cursor {
    font-size: 24px;
    font-weight: 300;
    color: #4db6ac;
    animation: vk-blink 1s step-end infinite;
    margin-left: 1px;
}
@keyframes vk-blink {
    50% { opacity: 0; }
}

/* Rows */
.vk-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 10px 8px 0;
}
.vk-row {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

/* ---- Base key — subtle raised button ---- */
.vk-key {
    height: 82px;
    flex: 1;
    border: none;
    border-radius: 10px;
    background: #e4e7ed;
    color: #1a1a1a;
    font-size: 26px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.06s, box-shadow 0.06s, transform 0.06s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    padding: 0;
    box-shadow: 0 2px 0 #9fa5ae, 0 1px 3px rgba(0,0,0,0.15);
}
.vk-key:active {
    background: #d0d4db;
    box-shadow: 0 1px 0 #9fa5ae;
    transform: translateY(1px);
}

/* Number superscript */
.vk-key .vk-num {
    position: absolute;
    top: 8px;
    right: 50%;
    transform: translateX(18px);
    font-size: 12px;
    font-weight: 400;
    color: #777;
    pointer-events: none;
}
.vk-key .vk-letter {
    font-size: 26px;
    font-weight: 500;
    color: #1a1a1a;
}

/* ---- Space bar ---- */
.vk-key.vk-space {
    flex: 6;
    background: #e4e7ed;
    border-radius: 10px;
    margin: 0 4px;
    height: 82px;
    box-shadow: 0 2px 0 #9fa5ae, 0 1px 3px rgba(0,0,0,0.15);
}
.vk-key.vk-space:active {
    background: #d0d4db;
    box-shadow: 0 1px 0 #9fa5ae;
    transform: translateY(1px);
}

/* ---- Function keys (shift, backspace, etc) — darker bg ---- */
.vk-key.vk-fn {
    flex: 1;
    background: #adb3bc;
    box-shadow: 0 2px 0 #858b93, 0 1px 3px rgba(0,0,0,0.15);
}
.vk-key.vk-fn:active {
    background: #9ba1aa;
    box-shadow: 0 1px 0 #858b93;
    transform: translateY(1px);
}

/* ---- Backspace ---- */
.vk-key.vk-bksp { font-size: 26px; color: #444; }

/* ---- Enter circular teal ---- */
.vk-key.vk-enter {
    width: 68px; height: 68px;
    min-width: 68px; max-width: 68px;
    flex: none;
    border-radius: 50%;
    background: #4db6ac;
    color: #fff;
    font-size: 28px;
    margin: 7px 4px;
    box-shadow: 0 2px 0 #2e8b84, 0 2px 8px rgba(77,182,172,0.4);
}
.vk-key.vk-enter:active {
    background: #3d9e94;
    box-shadow: 0 1px 0 #2e8b84;
    transform: translateY(1px);
    border-radius: 50%;
}

/* ---- Shift ---- */
.vk-key.vk-shift { font-size: 22px; color: #333; }
.vk-key.vk-shift.vk-active {
    color: #fff;
    background: #4db6ac;
    box-shadow: 0 2px 0 #2e8b84, 0 1px 3px rgba(77,182,172,0.3);
}

/* ---- Toggle ---- */
.vk-key.vk-toggle { font-size: 16px; font-weight: 700; color: #333; }

/* ---- Hide ---- */
.vk-key.vk-hide { font-size: 22px; color: #555; }
