

/* ============================================
 * SEARCH BOX STYLES
 * ============================================ */
.apd-search-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.apd-search-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    border-radius: 0.25rem;
    overflow: hidden;
    background: #fff;
}


.apd-search-input {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: none;
    outline: none;
}

.apd-search-input::placeholder {
    color: #6c757d;
    opacity: 1;
}

.apd-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    background-color: #0d0f44;
    border: none;
    border-left: 1px solid #ced4da;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.apd-search-btn:hover {
    background-color: #0d0f44;
}

.apd-search-btn svg {
    pointer-events: none;
}

/* ============================================
 * SEARCH RESULTS DROPDOWN
 * ============================================ */
.apd-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    padding: 0.5rem 0;
    background: #fff;
    margin-top: 0.125rem;
}

.apd-search-result-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.15s ease-in-out;
}

.apd-search-result-item:hover,
.apd-search-result-item:focus {
    color: #16181b;
    text-decoration: none;
    background-color: #f8f9fa;
}


/* ============================================
 * SEARCH STATUS MESSAGES
 * ============================================ */
.apd-search-loading,
.apd-search-no-results,
.apd-search-error {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    color: #6c757d;
    background-color: transparent;
    font-size: 14px;
    text-align: center;
}

.apd-search-error {
    color: #dc3545;
}

.apd-search-count {
    display: block;
    padding: 0.25rem 1rem;
    font-size: 12px;
    color: #6c757d;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* ============================================
 * TABLES (Product Page Display)
 * ============================================ */
.apd-table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.apd-table th,
.apd-table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.apd-table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
    font-weight: 600;
}

.apd-table-bordered {
    border: 1px solid #dee2e6;
}

.apd-table-bordered th,
.apd-table-bordered td {
    border: 1px solid #dee2e6;
}

.apd-table-sm th,
.apd-table-sm td {
    padding: 0.3rem;
}

.apd-table-light thead th {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* ============================================
 * PRODUCT DATA SECTIONS
 * ============================================ */
.auto-cross-ref,
.auto-specification,
.auto-application-core,
.auto-application-part {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.auto-cross-ref h3,
.auto-specification h3,
.auto-application-core h3,
.auto-application-part h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    color: #212529;
}

/* ============================================
 * RESPONSIVE DESIGN
 * ============================================ */
@media (max-width: 768px) {
    .apd-search-container {
        max-width: 100%;
        border: 1px solid #e5e5e5;
    }
    
    .apd-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 576px) {
    .apd-search-input {
        font-size: 16px;
    }
}

/* ============================================
 * ANIMATIONS
 * ============================================ */
@keyframes apdFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.apd-search-results.show {
    animation: apdFadeIn 0.15s ease-in-out;
}