/* Intelligent Sidebar Search Styling */

.sidebar-search-menu-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    margin: 0;
    list-style: none;
}

.sidebar-search-wrapper {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    margin: 0;
}

.sidebar-search-container {
    position: relative;
}

.sidebar-search-input {
    width: 100%;
    padding: 8px 32px 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.sidebar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.sidebar-search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.sidebar-search-input:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-search-results {
    position: fixed !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    margin-top: 0 !important;
    max-height: 350px !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    max-width: 280px !important;
    min-width: 250px !important;
}

/* Ensure sidebar search results don't interfere with topbar */
.sidebar-wrapper .sidebar-search-results {
    left: auto !important;
    right: auto !important;
}

.sidebar-search-results::-webkit-scrollbar {
    width: 6px;
}

.sidebar-search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sidebar-search-results::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.sidebar-search-results::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.search-result-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: rgba(0, 102, 102, 0.05);
}

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

/* Dark theme adjustments for sidebar */
[data-layout="stroke-svg"] .sidebar-search-input {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

[data-layout="stroke-svg"] .sidebar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

[data-layout="stroke-svg"] .sidebar-search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .sidebar-search-wrapper {
        padding: 10px 12px;
    }
    
    .sidebar-search-input {
        font-size: 11px;
        padding: 7px 28px 7px 8px;
    }
}

