/* Base Layout Fixes */
body {
    background-color: #f8f9fa;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Responsive Table Adjustments */
.table-responsive {
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.inv-table {
    margin-bottom: 0;
}

    .inv-table thead th {
        background-color: #f1f3f5;
        border-bottom: 2px solid #dee2e6;
        color: #495057;
        font-weight: 600;
        white-space: nowrap;
    }

/* Card Styling for Details View */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Image Handling */
.img-fluid {
    max-height: 400px;
    object-fit: contain;
}

/* Modern Search Container */
.search-container {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

/* Part Links - Clean & Clickable */
.part-link {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
}

    .part-link:hover {
        text-decoration: underline;
        color: #0a58ca;
    }

/* Mobile-First Navigation (Pagination) */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #0d6efd;
    border: 1px solid #dee2e6;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Touch targets for mobile */
@media (max-width: 576px) {
    .btn, .page-link {
        padding: 10px 15px; /* Bigger buttons for fingers */
    }

    .inv-table td, .inv-table th {
        padding: 12px 8px;
    }
}
/* Header Enhancements */
.transition-hover {
    transition: transform 0.2s ease-in-out;
}

    .transition-hover:hover {
        transform: scale(1.05);
    }

.ls-1 {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.7rem;
}

/* Make the vertical divider look nice */
.vr {
    width: 1px;
    background-color: #dee2e6;
    height: 30px;
    align-self: center;
}

/* Adjust the main header container to allow full-width on mobile */
.main-header {
    background: linear-gradient(to right, #ffffff, #f8f9fa);
}

/* Button Shadow tweaks */
.btn-light {
    background-color: #fff;
    border-color: #f0f0f0;
}

/* Inventory table: make Part Number match Description */
.inventory-table a,
.inventory-table a:visited {
    font-family: inherit;
    font-size: inherit;
    font-weight: normal;
    color: #212529; /* same as Bootstrap body text */
    text-decoration: none;
}

    .inventory-table a:hover {
        text-decoration: underline; /* optional but nice */
    }
