/* Menu Search Styles */
.menu-search-container {
    position: relative;
    z-index: 1000;
    margin-bottom: 1rem;
}

.menu-search-container .form-control {
    border-radius: 0.5rem;
    border: 1px solid #e1e3ea;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}

.menu-search-container .form-control:focus {
    border-color: #009ef7;
    box-shadow: 0 0 0 0.2rem rgba(0, 158, 247, 0.25);
    background-color: #ffffff;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e1e3ea;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
}

.search-results .list-group-item {
    border: none;
    border-bottom: 1px solid #f1f1f1;
    padding: 0.75rem 1rem;
    transition: background-color 0.2s ease;
}

.search-results .list-group-item:last-child {
    border-bottom: none;
}

.search-results .list-group-item:hover,
.search-results .list-group-item.active {
    background-color: #f8f9fa;
    text-decoration: none;
}

.search-results .list-group-item.active {
    border-color: #009ef7;
    background-color: #e1f0ff !important;
}

.search-results .list-group-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.search-results .list-group-item .fw-semibold {
    color: #181c32;
    font-size: 0.875rem;
}

.search-results .list-group-item mark {
    background-color: #fff3cd !important;
    color: #856404;
    padding: 0.1rem 0.2rem;
    border-radius: 0.2rem;
}

.search-results .list-group-item small {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Dark theme support */
[data-theme="dark"] .menu-search-container .form-control {
    background-color: #1e1e2d;
    border-color: #2b2b40;
    color: #ffffff;
}

[data-theme="dark"] .menu-search-container .form-control:focus {
    background-color: #1e1e2d;
    border-color: #009ef7;
}

[data-theme="dark"] .search-results {
    background: #1e1e2d;
    border-color: #2b2b40;
}

[data-theme="dark"] .search-results .list-group-item {
    border-bottom-color: #2b2b40;
    color: #ffffff;
}

[data-theme="dark"] .search-results .list-group-item:hover,
[data-theme="dark"] .search-results .list-group-item.active {
    background-color: #2b2b40;
}

[data-theme="dark"] .search-results .list-group-item.active {
    border-color: #009ef7;
    background-color: #1e3a8a !important;
}

[data-theme="dark"] .search-results .list-group-item .fw-semibold {
    color: #ffffff;
}

[data-theme="dark"] .search-results .list-group-item mark {
    background-color: #2d3748 !important;
    color: #f6e05e;
}

[data-theme="dark"] .search-results .list-group-item small {
    color: #a1a5b7;
}