﻿.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Vehicle Header Styles */
.vehicle-header {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.vehicle-details {
    margin-top: 15px;
}

.detail-row {
    display: flex;
    gap: 30px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.detail-item {
    font-size: 14px;
    font-size: 14px;
    color: #495057;
}

    .detail-item strong {
        color: #212529;
    }

/* Category Navigation Styles */
.category-navigation {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-label {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 8px 16px;
    border: 1px solid #007bff;
    background: #fff;
    color: #007bff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

    .nav-btn:hover {
        background: #e7f3ff;
    }

    .nav-btn.active {
        background: #007bff;
        color: #fff;
    }

/* Search Filter Styles */
.search-filter {
    margin-bottom: 20px;
}

.filter-input {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

    .filter-input:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }

category-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
}

.category-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 20px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

    .category-header h4 {
        font-size: 1.3rem;
        font-weight: 600;
        color: #333;
    }

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.subcategory-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    transition: all 0.2s ease;
}

    .subcategory-card img {
        width: 100%;
        height: 130px;
        object-fit: contain;
    }

    .subcategory-card:hover {
        box-shadow: 0 0 8px rgba(0,0,0,0.1);
        transform: translateY(-2px);
        text-decoration: none;
    }

.subcategory-label {
    margin-top: 8px;
    font-weight: 500;
    color: #007bff;
    font-size: 0.9rem;
}

.parts-count {
    font-size: 0.9rem;
    color: #777;
}

    .subcategory-label span {
        font-size: 12px;
        color: #495057;
        line-height: 1.4;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .category-navigation {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-buttons {
        width: 100%;
    }

    .nav-btn {
        flex: 1;
        text-align: center;
        min-width: 120px;
    }

    .detail-row {
        flex-direction: column;
        gap: 8px;
    }

    .subcategory-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        padding: 15px;
    }
}


.tooltip {
    position: fixed;
    background: #333;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    z-index: 1000;
    display: none;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    border: 1px solid #555;
}

    .tooltip::after {
        content: '';
        position: absolute;
        top: -5px;
        left: 10px;
        width: 10px;
        height: 10px;
        background: #333;
        transform: rotate(45deg);
        border-left: 1px solid #555;
        border-top: 1px solid #555;
    }

/* NEW: Tooltip trigger styles */
.tooltip-trigger {
    cursor: help;
    border-bottom: 1px dotted #007bff;
    position: relative;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

    .tooltip-trigger:hover {
        background-color: #f8f9fa;
    }

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #FE9F43;
    color: white;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

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

    .btn-secondary:hover {
        background-color: #545b62;
    }

/* Search Modal */
.search-form {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-search {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    .btn-search:hover {
        background-color: #218838;
    }

.search-results {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
}

.part-result-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
}

    .part-result-item:hover {
        background-color: #e9ecef;
    }

.part-info {
    display: flex;
    justify-content: between;
    align-items: center;
}

.part-details {
    flex: 1;
}

.part-number {
    font-weight: bold;
    color: #007bff;
}

.part-name {
    color: #495057;
}

.part-pnc {
    color: #6c757d;
    font-size: 0.9em;
}

.part-price {
    font-weight: bold;
    color: #28a745;
}