/* Virtual Number Pad Styles */
.virtual-number-pad {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    background: transparent;
    animation: fadeIn 0.2s ease-in;
    cursor: default;
}

.virtual-number-pad.dragging {
    cursor: move;
}

.virtual-number-pad.dragging .number-pad-container {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.number-pad-container {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.number-pad-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.number-pad-title {
    font-weight: 600;
    font-size: 1.3rem;
}

.number-pad-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.2s;
}

.number-pad-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.number-pad-body {
    padding: 30px;
    background: #f8f9fa;
}

.number-pad-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 15px;
}

.number-pad-row:last-child {
    margin-bottom: 0;
}

.number-pad-btn {
    flex: 1;
    height: 80px;
    border: 2px solid #dee2e6;
    background: #ffffff;
    border-radius: 12px;
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.number-pad-btn:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: scale(1.05);
}

.number-pad-btn:active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(0.95);
}

.number-pad-btn[data-number] {
    font-size: 2.5rem;
}

.number-pad-clear {
    background: #ffc107;
    color: #333;
    border-color: #ffc107;
    font-size: 1.5rem;
}

.number-pad-clear:hover {
    background: #ffb300;
    border-color: #ffb300;
}

.number-pad-clear:active {
    background: #ff9800;
    color: white;
}

.number-pad-done {
    background: #28a745;
    color: white;
    border-color: #28a745;
    font-size: 1.3rem;
    font-weight: 600;
}

.number-pad-done:hover {
    background: #218838;
    border-color: #218838;
}

.number-pad-done:active {
    background: #1e7e34;
}

/* RTL Support */
html[dir="rtl"] .number-pad-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .number-pad-row {
    flex-direction: row-reverse;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .virtual-number-pad {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 500px;
    }
    
    .number-pad-container {
        border-radius: 15px;
        max-width: 100%;
    }
    
    .number-pad-btn {
        height: 70px;
        font-size: 1.8rem;
    }
    
    .number-pad-btn[data-number] {
        font-size: 2.2rem;
    }
    
    .number-pad-body {
        padding: 20px;
    }
    
    .number-pad-row {
        margin-bottom: 12px;
        gap: 12px;
    }
    
    .number-pad-header {
        padding: 18px 20px;
    }
    
    .number-pad-title {
        font-size: 1.2rem;
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .number-pad-container {
        max-width: 650px;
    }
    
    .number-pad-btn {
        height: 75px;
    }
    
    .number-pad-btn[data-number] {
        font-size: 2.3rem;
    }
}

/* Dark Theme Support */
[data-theme="dark"] .number-pad-container {
    background: #2d3748;
}

[data-theme="dark"] .number-pad-body {
    background: #1a202c;
}

[data-theme="dark"] .number-pad-btn {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .number-pad-btn:hover {
    background: #4a5568;
    border-color: #667eea;
}

[data-theme="dark"] .number-pad-btn:active {
    background: #667eea;
    color: white;
}

[data-theme="dark"] .virtual-number-pad {
    background: rgba(0, 0, 0, 0.7);
}

