/* Search Form Styles */
.nbt-search-form {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
}

.nbt-search-wrapper {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.nbt-search-container {
    position: relative;
    flex: 1;
}

.nbt-search-input {
    width: 100%;
    height: 48px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    color: #191919;
    background: #ffffff;
    border: 2px solid #191919;
    border-radius: 12px;
    box-shadow: 4px 4px 0 #191919;
    transition: all 0.2s ease;
}

.nbt-search-input:focus {
    outline: none;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #191919;
}

.nbt-search-input::placeholder {
    color: #666;
}

.nbt-search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 320px;
    margin-top: 8px;
    background: #ffffff;
    border: 2px solid #191919;
    border-radius: 12px;
    box-shadow: 4px 4px 0 #191919;
    z-index: 1000;
    overflow-y: auto;
    /* Fix for navbar search container */
    max-height: 80vh;
}

.suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background-color: #f3f4f6;
}

.suggestion-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-text {
    font-size: 0.95rem;
    color: #191919;
}

.suggestion-text strong {
    font-weight: 700;
    color: #0066cc;
}

.suggestion-category {
    font-size: 0.8rem;
    color: #666;
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    white-space: nowrap;
}

.nbt-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 48px;
    padding: 0 1.5rem;
    font-weight: 600;
    color: #191919;
    background: #9CEE6A;
    border: 2px solid #191919;
    border-radius: 12px;
    box-shadow: 4px 4px 0 #191919;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.nbt-search-button:hover {
    background: #6cc832;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #191919;
}

.nbt-search-text {
    margin-left: 0.5rem;
}

/* RTL Support */
[dir="rtl"] .nbt-search-input {
    box-shadow: -4px 4px 0 #191919;
}

[dir="rtl"] .nbt-search-input:focus {
    transform: translate(2px, -2px);
    box-shadow: -6px 6px 0 #191919;
}

[dir="rtl"] .nbt-search-suggestions {
    left: auto;
    right: 0;
    box-shadow: -4px 4px 0 #191919;
}

[dir="rtl"] .nbt-search-button {
    box-shadow: -4px 4px 0 #191919;
}

[dir="rtl"] .nbt-search-button:hover {
    transform: translate(2px, -2px);
    box-shadow: -6px 6px 0 #191919;
}

[dir="rtl"] .nbt-search-text {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nbt-search-wrapper {
        gap: 0.75rem;
    }

    .nbt-search-button {
        min-width: auto;
        padding: 0 1rem;
    }
    
    .nbt-search-text {
        display: none;
    }
    
    .nbt-search-suggestions {
        max-height: 240px;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .nbt-search-wrapper {
        gap: 0.5rem;
    }

    .nbt-search-input {
        height: 44px;
        padding: 0.5rem 1rem;
    }

    .nbt-search-button {
        height: 44px;
        padding: 0 0.75rem;
    }
    
    .nbt-search-suggestions {
        max-height: 200px;
    }
}