/* General Page Styling */
.batch-history-container {
    background-color: #f5f5f7;
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: 100vh;
}

.batch-history-header {
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
}

/* Filter and Search Card */
.filter-card {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.filter-card .form-control,
.filter-card .form-control:focus {
    background-color: #f5f5f7;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-card .form-control:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

/* Batch Item Card Styling */
.batch-card {
    background-color: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

.batch-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.batch-card .card-body {
    padding: 1.5rem;
}

.batch-card strong {
    color: #6e6e73;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.25rem;
}

.batch-card .badge-success {
    background-color: #34c759;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4em 0.7em;
}

/* Button Styling */
.btn-primary {
    background-color: #007aff;
    border-color: #007aff;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #0071e3;
    transform: scale(1.02);
}

.btn-secondary {
    background-color: #6e6e73;
    border-color: #6e6e73;
    color: white;
}

/* QR Scanner Modal */
#qr-scanner-modal .modal-content {
    border-radius: 12px;
    border: none;
}

#qr-reader {
    border: 2px dashed #d2d2d7;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .batch-history-header {
        font-size: 2rem;
    }

    .filter-card .row > div {
        margin-bottom: 1rem;
    }

    .batch-card .row > div {
        margin-bottom: 0.75rem;
    }

    .batch-card .text-right {
        text-align: left !important;
        margin-top: 1rem;
    }
}