/* Sidebar Search Styling */
.sidebar-search-wrapper {
    background-color: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar-search-wrapper .custom-search-form {
    margin: 12px 15px;
    padding: 0;
}

.sidebar-search-icon {
    background-color: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-right: none !important;
    color: rgba(0, 0, 0, 0.6) !important;
    padding: 8px 12px;
    font-size: 13px;
}

.sidebar-search-input {
    background-color: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-left: none !important;
    border-right: none !important;
    color: #333333 !important;
    font-size: 13px;
    height: 35px;
    border-radius: 0;
    padding: 8px 12px;
    font-weight: 500;
}

.sidebar-search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
    font-weight: normal;
}

.sidebar-search-input:focus {
    background-color: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
    border-left: none !important;
    border-right: none !important;
    outline: none;
    box-shadow: none;
}

.sidebar-search-input:focus + .input-group-btn .btn {
    border-color: rgba(0, 0, 0, 0.25) !important;
}

.sidebar-search-wrapper .input-group-btn {
    vertical-align: top;
}

.sidebar-search-wrapper .btn {
    height: 35px;
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-left: none;
    color: #333333;
    border-radius: 0 3px 3px 0;
    padding: 7px 12px;
}

.sidebar-search-wrapper .btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333333;
}

.sidebar-search-wrapper .btn:focus {
    outline: none;
    box-shadow: none;
}

#sidebar-clear-search {
    display: none;
}

/* No Results Message */
#sidebar-no-results {
    background-color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar-no-results-message {
    padding: 12px 20px;
    text-align: center;
    color: rgba(0, 0, 0, 0.5);
    font-size: 13px;
    font-style: italic;
}

.sidebar-no-results-message i {
    margin-right: 5px;
}

/* Mini navbar adjustments */
body.mini-navbar .sidebar-search-wrapper {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar-search-wrapper .custom-search-form {
        margin: 10px 10px;
    }

    .sidebar-search-icon {
        padding: 6px 10px;
        font-size: 12px;
    }

    .sidebar-search-input {
        font-size: 12px;
        height: 32px;
        padding: 6px 10px;
    }

    .sidebar-search-wrapper .btn {
        height: 32px;
        padding: 6px 10px;
    }
}

/* Skin variations (matching existing sidebar themes) */
.skin-1 .sidebar-search-icon {
    background-color: rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.skin-1 .sidebar-search-input {
    background-color: rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.skin-2 .sidebar-search-icon {
    background-color: rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
}

.skin-2 .sidebar-search-input {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
}

.skin-3 .sidebar-search-icon {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.skin-3 .sidebar-search-input {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Material design skin */
.md-skin .sidebar-search-icon {
    background-color: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: rgba(0, 0, 0, 0.6) !important;
}

.md-skin .sidebar-search-input {
    background-color: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #333333 !important;
}

.md-skin .sidebar-search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.md-skin .sidebar-search-wrapper .btn {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333333;
}
