:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
}

body {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.navbar-brand {
    font-weight: 600;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
}

.card-header h5 {
    color: #495057;
}

.barcode-preview {
    background: #fff;
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.barcode-preview svg {
    max-width: 100%;
    height: auto;
}

.product-list {
    max-height: 600px;
    overflow-y: auto;
}

.product-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.product-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0.125rem 0.5rem rgba(13, 110, 253, 0.1);
}

.product-item.selected {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}

.product-item .product-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.product-item .product-checkbox {
    width: 1.25rem;
    height: 1.25rem;
}

.product-item .product-info {
    flex: 1;
}

.product-item .product-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.product-item .product-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.product-item .product-barcode {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.75rem;
    text-align: center;
}

.product-item .product-barcode svg {
    max-width: 100%;
    height: auto;
}

.product-item .product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: flex-end;
}

.btn-group .btn {
    padding: 0.375rem 0.75rem;
}

.form-label {
    font-weight: 500;
    color: #495057;
}

.modal-content {
    border: none;
    border-radius: 0.5rem;
}

.alert {
    border: none;
    border-radius: 0.5rem;
}

@media (max-width: 991.98px) {
    .product-list {
        max-height: 400px;
    }
}

@media print {
    .navbar,
    .card-header,
    .product-actions,
    .btn-group,
    .form-check-input {
        display: none !important;
    }
    
    .product-item {
        break-inside: avoid;
        border: 1px dashed #ccc;
    }
}
