/* IYA Medical - Procedures Dropdown Search Styles */

/* Search container at top of dropdown */
.procedure-search-container {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    z-index: 10;
}

.procedure-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.procedure-search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
}

.procedure-search-input:focus {
    border-color: #0891b2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.procedure-search-input::placeholder {
    color: #94a3b8;
}

.procedure-search-icon {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}

.procedure-search-input:focus + .procedure-search-icon {
    color: #0891b2;
}

/* Dropdown item styling when search is active */
.navbar-nav .dropdown-menu .dropdown-item.search-highlight {
    background: linear-gradient(90deg, rgba(8, 145, 178, 0.08) 0%, transparent 100%);
    border-left: 3px solid #0891b2;
    padding-left: 17px;
}

/* Make dropdown scrollable with search */
.navbar-nav .dropdown-menu:has(.procedure-search-container) {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Scrollbar styling */
.navbar-nav .dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.navbar-nav .dropdown-menu::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.navbar-nav .dropdown-menu::-webkit-scrollbar-thumb {
    background: #0891b2;
    border-radius: 3px;
}

.navbar-nav .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #0e7490;
}

/* No results message */
.procedure-no-results {
    padding: 20px 15px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .procedure-search-container {
        padding: 10px 12px;
    }

    .procedure-search-input {
        padding: 8px 12px 8px 36px;
        font-size: 13px;
    }

    .procedure-search-icon {
        left: 10px;
        width: 16px;
        height: 16px;
    }
}
