/* .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
} */

.numpad-container {
    position: absolute; 
    user-select: none; 
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 10000;
}

.numpad-wrapper {
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(20px); 
    border-radius: 24px; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1), 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3); 
    position: relative;
    overflow: hidden; 
}

.numpad-wrapper::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.3) 100%);
    border-radius: 24px;
    z-index: -1;
}

.drag-handle {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 24px 24px 0 0; 
    padding: 16px;
    cursor: move; 
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: background-color 0.2s ease;
}

.drag-handle:hover {
    background: rgba(255, 255, 255, 0.4); 
}

.drag-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    box-shadow: 
        0 -8px 0 rgba(255, 255, 255, 0.4), 
        0 8px 0 rgba(255, 255, 255, 0.4);
}

.numpad-content {
    padding: 20px; 
}

.numpad-title {
    text-align: center;
    margin-bottom: 20px; 
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.simple-keyboard {
    background: transparent !important; 
    border-radius: 0 !important; 
    padding: 0 !important; 
    width: auto; 
}

.simple-keyboard .hg-row {
    display: flex;
    justify-content: center; 
}
    .simple-keyboard .hg-row .hg-button { 
    margin: 4px !important;
}

.simple-keyboard .hg-row:last-child {
    margin-bottom: 0; 
}

.simple-keyboard .hg-button {
    background: rgba(255, 255, 255, 0.2) !important; 
    border: 1px solid rgba(255, 255, 255, 0.3) !important; 
    border-radius: 12px !important; 
    color: rgba(0, 0, 0, 0.95) !important; 
    font-size: 18px !important; 
    font-weight: 600 !important;
    min-width: 60px !important; 
    height: 50px !important;   
    display: flex !important; 
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important; 
    backdrop-filter: blur(10px) !important; 
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important; 
    position: relative !important;
    overflow: hidden !important; 
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
}

.simple-keyboard .hg-button::before { 
    content: '';
    position: absolute;
    top: 0;
    left: -100%; 
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s; 
    z-index: 1; 
}

.simple-keyboard .hg-button:hover::before {
    left: 100%; 
}

.simple-keyboard .hg-button:hover {
    background: rgba(255, 255, 255, 0.3) !important; 
    transform: translateY(-2px) !important; 
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.simple-keyboard .hg-button:active {
    transform: translateY(0) scale(0.98) !important; 
    background: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.dragging {
    z-index: 1000; 
    transform: scale(1.05) !important; 
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 768px) {
    .numpad-content {
        padding: 15px;
    }
    .numpad-wrapper {
        border-radius: 20px;
    }
    .drag-handle {
        border-radius: 20px 20px 0 0;
        padding: 12px;
    }
    .simple-keyboard .hg-button {
        min-width: 50px !important; 
        height: 45px !important;
        font-size: 16px !important;
            margin: 3px !important;
    }
}

.simple-keyboard .hg-activeButton { 
    background: rgba(255, 255, 255, 0.4) !important; 
    transform: scale(0.98) !important; 
}

.instructions {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    z-index: 10; 
}