/* Global search bar — sits in the menu-actions area, just left of the
   profile icon. Dropdown is absolutely positioned below the input. */

#anyx-search { position: relative; }

.search-bar-wrap {
    position: relative;
    padding: 6px 8px;
}

.search-bar-input {
    background: rgba(8, 12, 18, 0.6);
    border: 1px solid rgba(58, 212, 231, 0.2);
    border-radius: 4px;
    color: #b8c4d0;
    font-family: 'Electrolize', Arial, sans-serif;
    font-size: 12px;
    padding: 6px 10px;
    width: 200px;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}
.search-bar-input::placeholder {
    color: #5a6c7a;
    font-style: italic;
}
.search-bar-input:focus {
    border-color: rgba(58, 212, 231, 0.5);
    background: rgba(8, 12, 18, 0.8);
}

.search-bar-dropdown {
    position: absolute;
    top: 100%;
    right: 8px;
    width: 360px;
    max-height: 70vh;
    overflow-y: auto;
    background: rgba(8, 12, 18, 0.96);
    border: 1px solid rgba(58, 212, 231, 0.3);
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    z-index: 800;
    padding: 4px 0;
}

.search-segment + .search-segment {
    border-top: 1px solid rgba(58, 212, 231, 0.08);
    margin-top: 4px;
    padding-top: 4px;
}

.search-segment-header {
    color: #3ad4e7;
    font-family: 'Electrolize', Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 12px 4px;
    opacity: 0.8;
}

.search-result {
    display: block;
    padding: 6px 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
}
.search-result:hover {
    background: rgba(58, 212, 231, 0.08);
}
.search-result-name {
    display: block;
    color: #b8c4d0;
    font-size: 13px;
    line-height: 1.3;
}
.search-result:hover .search-result-name {
    color: #fff;
}
.search-result-snippet {
    display: block;
    color: #7a8fa0;
    font-size: 11px;
    line-height: 1.2;
    margin-top: 1px;
}

.search-segment-more {
    padding: 4px 12px 8px;
}
.search-show-more {
    background: transparent;
    border: 0;
    color: #3ad4e7;
    font-family: 'Electrolize', Arial, sans-serif;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 0;
    opacity: 0.75;
    transition: opacity 0.15s;
}
.search-show-more:hover {
    opacity: 1;
    text-decoration: underline;
}
.search-show-more:disabled {
    opacity: 0.4;
    cursor: default;
    text-decoration: none;
}

/* Responsive: in mobile drawer, the search bar gets less horizontal room. */
@media (max-width: 700px) {
    .search-bar-input { width: 130px; font-size: 11px; }
    .search-bar-dropdown { width: 280px; right: 0; }
}
