.categories-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    background-color: var(--background);
}

.category-group {
    border-bottom: 1px solid var(--border-color);
    padding: 5px 0;
    margin-bottom: 5px;
}

.category-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-right: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    color: var(--text-primary);
}

.subcategories {
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
    margin-top: 0.5rem;
}

.platforms-container {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    background-color: var(--background);
}

/* Platform type badges */
.platform-type-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    font-weight: 500;
    text-transform: lowercase;
}

.type-stock {
    background-color: rgba(38, 166, 154, 0.1);
    color: var(--primary);
}

.type-crypto {
    background-color: rgba(38, 166, 154, 0.1);
    color: var(--primary-dark);
}

.type-forex {
    background-color: rgba(38, 166, 154, 0.1);
    color: var(--text-secondary);
}

.type-futures {
    background-color: rgba(38, 166, 154, 0.1);
    color: var(--primary);
}

.type-options {
    background-color: rgba(38, 166, 154, 0.1);
    color: var(--primary-dark);
}

.type-bonds {
    background-color: rgba(38, 166, 154, 0.1);
    color: var(--primary);
}

.type-commodities {
    background-color: rgba(38, 166, 154, 0.1);
    color: var(--primary-dark);
}

.platform-section-header {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.platforms-container .btn-link {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.platforms-container .btn-link:hover {
    color: var(--primary);
}

/* Add these to your search.css */
.category-toggle .bi {
    transition: transform 0.2s ease-in-out;
}

.category-toggle.expanded .bi {
    transform: rotate(90deg);
}

/* Make sure subcategories initial state is none */
.subcategories {
    display: none;
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
    margin-top: 0.5rem;
}

#quickSearchResults {
    max-height: 400px;
    overflow-y: auto;
}

#quickSearchResults .dropdown-header {
    font-size: 0.875rem;
    color: #6c757d;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
}

#quickSearchResults .dropdown-item {
    padding: 0.5rem 1rem;
    white-space: normal;
}

#quickSearchResults .dropdown-item i {
    color: #6c757d;
}

#navSearchForm {
    position: relative;
}

/* Search Suggestions Styling */
/* Add to your existing search.css */
.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 2px;
    z-index: 1050;
    max-height: 400px;
    overflow-y: auto;
}

/* Important: make sure form has relative positioning */
#navSearchForm {
    position: relative !important;
}

.suggestion-group {
    border-bottom: 1px solid #e2e8f0;
}

.suggestion-group:last-child {
    border-bottom: none;
}

.suggestion-header {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
    background-color: #f8fafc;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f1f5f9;
    text-decoration: none;
}

.suggestion-item i {
    margin-right: 0.75rem;
    color: #64748b;
}

.ally-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ally-result-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.ally-avatar {
    width: 100px;
    height: 100px;
}

.ally-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.bio-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    max-height: 4.5em;
}

/* Ally content styles */
.ally-content {
    flex: 1;
    min-width: 0;
}

.ally-content h5 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #4b5563;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    background-color: #e8f2ff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #1e40af;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #93c5fd;
}


