
/* Larger buttons and inputs for touch */
.btn-touch {
    padding: 1.5rem !important;
    font-size: 1.5rem !important;
    margin: 0.5rem;
}

.form-control-touch {
    padding: 1rem !important;
    font-size: 1.5rem !important;
    height: auto !important;
}

/* Sales grid layout */
.sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

/* Product cards */
.product-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: scale(1.02);
}

/* Larger form elements */
.form-control-lg {
    font-size: 1.25rem !important;
    padding: 1rem !important;
}

/* Responsive buttons */
.btn-lg {
    font-size: 1.5rem;
    padding: 1rem 2rem;
}

/* Highlight required fields */
label[required]::after {
    content: " *";
    color: red;
}

/* Keyboard Styling */
.keyboard-grid .btn {
    font-size: 1.5rem !important;
    padding: 1rem !important;
    min-height: 70px;
    touch-action: manipulation; /* Disable double-tap zoom */
}

.modal-dialog {
    max-width: 1440px;
    margin: 0.5rem;
}

.modal-content {
    border-radius: 15px;
}

/* Larger buttons for special keys */
.btn-danger, .btn-primary, .btn-secondary {
    font-size: 1.2rem !important;
}

/* Preview Card Styling */
.preview-card {
    min-height: 60px;
    font-size: 1.8rem;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
}

.preview-placeholder {
    font-style: italic;
    opacity: 0.7;
}

.preview-text {
    word-break: break-all;
    line-height: 1.2;
}

/* Blinking cursor effect */
.preview-text::after {
    content: "|";
    animation: blink 1s step-end infinite;
    color: #333;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.key-btn {
    font-size: 1rem;
}

@media (max-width: 576px) {
    .key-btn {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
}

@media (max-width: 767px) {
    .card {
        margin-bottom: 1.5rem;
    }
}

/* Highlight animation */
@keyframes scan-success {
    0% { background-color: #e8f4ff; }
    100% { background-color: transparent; }
}

.select-highlight {
    animation: scan-success 2s;
}

.scan-highlight {
    background-color: #e8f4ff !important;
    transition: background-color 0.3s ease;
}

#barcodeInput::placeholder {
    color: #666;
    font-style: italic;
}

#barcodeInput.synced {
    background-color: #e8f5e9;
    border-color: #81c784;
}

#barcodeInput.conflict {
    background-color: #ffebee;
    border-color: #ff5252;
}

/* Global Text Sizing */
p {
    font-size: 1.75rem;  /* 20px base size */
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    p {
        font-size: 1.4rem;  /* Slightly larger on tablets */
    }
}

@media (min-width: 1200px) {
    p {
        font-size: 1.50rem;  /* Even larger on desktops */
    }
}

/* Specific Context Adjustments */
.card-text {
    font-size: 1.50rem;
}

.list-group-item {
    font-size: 1.35rem;
}

.text-muted {
    font-size: 1.2rem;
}

/* For Form Elements */
.form-control,
.form-select {
    font-size: 1.35rem !important;
}

/* Alert Messages */
.alert p {
    font-size: 1.5rem;
    margin-bottom: 0;
}

/* Table Text */
.table {
    font-size: 1.5rem;
}

/* Special Cases */
.display-6 {
    font-size: 3.0rem;
}

/* Smooth Transitions */
body {
    transition: font-size 0.3s ease;
}

/* Sales Module Specific Styles */
#cartItems .cart-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

#cartItems .cart-item:hover {
    background-color: #f8f9fa;
}

.quantity-controls .btn {
    width: 45px;
    height: 45px;
    padding: 0;
}

/* Sales */
.products-grid {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.product-card {
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
}

.quantity-input {
    width: 60px;
    text-align: center;
}

/* Scrollbar styling */
.products-grid::-webkit-scrollbar {
    width: 8px;
}

.products-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.products-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.products-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Cart Items Styling */
#cartItems input[type="number"] {
    width: 60px;
    text-align: center;
}

#cartItems .btn-outline-secondary {
    padding: 0.25rem 0.5rem;
}

#cartItems .bi-trash {
    font-size: 1.2rem;
}

/* Discount Styling */
.text-decoration-line-through {
    text-decoration: line-through;
    opacity: 0.7;
}