/* POS Application Styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

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

.product-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-image {
    height: 150px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.cart-item {
    transition: background-color 0.2s;
}

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

.item-qty {
    max-width: 60px;
}

.text-primary {
    color: #0d6efd !important;
}

.badge {
    font-size: 0.7rem;
}

#searchInput {
    border: 2px solid #dee2e6;
}

#searchInput:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-lg {
    padding: 0.5rem 1.5rem;
    font-size: 1.1rem;
}

#vatBreakdown {
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
}

.product-item {
    border: 2px solid transparent;
}

.product-item:hover {
    border-color: #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-md-8, .col-md-4 {
        padding: 15px;
    }

    .product-image {
        height: 120px;
    }
}

/* Loading state */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Receipt info */
#receiptInfo {
    animation: slideIn 0.3s ease-in;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Tabs */
#mainTabs {
    border-bottom: 2px solid #0d6efd;
}

#mainTabs .nav-link {
    color: #495057;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

#mainTabs .nav-link:hover {
    color: #0d6efd;
    border-bottom-color: #dee2e6;
}

#mainTabs .nav-link.active {
    color: #0d6efd;
    background-color: transparent;
    border-bottom-color: #0d6efd;
}

#mainTabs .nav-link i {
    margin-right: 0.5rem;
}

/* History Table */
#salesTable {
    font-size: 0.95rem;
}

#salesTable th {
    font-weight: 600;
    white-space: nowrap;
}

#salesTable td {
    vertical-align: middle;
}

#salesTable .btn-sm {
    padding: 0.25rem 0.5rem;
    margin-left: 0.25rem;
}

/* Receipt Modal */
#receiptModal .modal-body {
    background-color: #f8f9fa;
}

#receiptFrame {
    background-color: white;
}

/* Filter Card */
#history-panel .card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Action buttons in receipt info */
#receiptInfo .btn {
    margin-right: 0.25rem;
}

/* Print button animation */
.print-receipt-btn:hover,
#printReceiptBtn:hover {
    animation: pulse 0.3s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Category Filter */
#categoryFilter {
    padding: 0.5rem 0;
}

#categoryFilter .category-btn {
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s;
}

#categoryFilter .category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

#categoryFilter .category-btn.active {
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.4);
}
