/* Docs Search Block Styles */
.docs-search-block {
    max-width: 800px;
    margin: 0 auto;
}

.docs-search-container {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 2px;
    padding: 10px;
    overflow: hidden;
}

/* Dropdown Styles */
.docs-select-wrapper {
    position: relative;
    background: #ffffff;
    display: flex;
    align-items: center;
    flex: 1;
}

.docs-select {
    appearance: none;
    background: transparent;
    border: none;
    padding: 13px 40px 13px 16px;
    font-family: var(--fb-global-body--font-family) !important;
    font-weight: var(--fb-global-body--font-weight);
    font-size: var(--fb-global-body--font-size);
    line-height: var(--fb-global-body--line-height);
    color: #6A758E;
    cursor: pointer;
    width: 100%;
    outline: none;
    font-family: inherit;
}

.docs-select:focus {
    background-color: #f8f9fa;
}

.dropdown-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 12px;
    line-height: 0;
}

/* Search Input Styles */
.docs-search-wrapper {
    display: flex;
    flex: 5;
    align-items: stretch;
}

.docs-search-input {
    flex: 1;
    border: none;
    padding: 13px 20px;
    font-family: var(--fb-global-body--font-family);
    font-weight: var(--fb-global-body--font-weight);
    font-size: var(--fb-global-body--font-size);
    line-height: var(--fb-global-body--line-height);
    background: transparent;
    outline: none;
    color: #404655;
}

.docs-search-input::placeholder {
    color: #999;
}

.docs-search-input:focus {
    background-color: #ffffff;
}

/* Search Button Styles */
.docs-search-button {
    font-family: var(--fb-global-button--font-family);
    font-size: var(--fb-global-button--font-size);
    font-weight: var(--fb-global-button--font-weight);
    line-height: var(--fb-global-button--line-height);
    background: #0875FF;
    border: none;
    padding: 12px 24px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0px 0px 0px 0px;
    border: none;
    border-radius: 2px;
    transition: background-color 0.2s ease;
    min-width: 120px;
}

.docs-search-button:hover {
    background: #0873ffc4;
}

.docs-search-button:active {
    transform: translateY(1px);
}

.search-icon {
    font-size: 16px;
    line-height: 0;
}

.search-text {
    font-family: inherit;
}

/* Results Styles */
.docs-search-results {
    margin-top: 20px;
    background: #ffffff;
    border-radius: 2px;
    overflow: hidden;
}

.docs-search-results-list {
    max-height: 400px;
    overflow-y: auto;
}

.docs-search-result-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.docs-search-result-item:last-child {
    border-bottom: none;
}

.docs-search-result-item:hover {
    background-color: #f8f9fa;
}

.docs-search-result-item h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.docs-search-result-item h4 a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.2s ease;
}

.docs-search-result-item h4 a:hover {
    color: #005a87;
    text-decoration: underline;
}

.docs-search-result-item p {
    margin: 0 0 10px 0;
    color: #666;
    line-height: 1.6;
}

.result-meta {
    font-size: 12px;
    color: #999;
}

.result-date {
    font-style: italic;
}

/* Loading Styles */
.docs-search-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* No Results Styles */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Editor Styles */
.docs-search-block-editor {
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.docs-search-block-editor .docs-search-container {
    opacity: 0.8;
}

.editor-note {
    background: #e8f4f8 !important;
    color: #0073aa !important;
    border-left: 4px solid #007cba;
}

/* Responsive Design */
@media (max-width: 768px) {
    .docs-search-container {
        flex-direction: column;
    }

    .docs-select-wrapper {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        min-width: auto;
    }

    .docs-search-button {
        min-width: auto;
        padding: 16px 24px;
    }

    .docs-search-input {
        font-size: 16px;
    }

    .docs-search-wrapper {
        padding: 10px;
    }
    .docs-search-block{
        width: 100%;
    }
}

@media (max-width: 480px) {
    .docs-search-result-item {
        padding: 15px;
    }

    .docs-search-result-item h4 {
        font-size: 16px;
    }

    .docs-select,
    .docs-search-input {
        padding: 12px 16px;
        width: 70%;
    }

    .docs-search-button {
        padding: 12px 20px;
    }
}