.search-history {
    display: inline-block;
}

.search-history .modal.fade {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
}

.search-history .modal.fade .modal-dialog {
    width: 350px !important;
    max-width: 90% !important;
    margin: 2rem auto !important;
    position: relative !important;
    z-index: 1051 !important;
    height: 100px !important;
}

.search-history .modal.fade .modal-content {
    border-radius: 0.3rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    background-color: #fff !important;
    height: 100px !important;
    max-height: 100px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.search-history .modal.fade .modal-header {
    border-bottom: 1px solid #dee2e6 !important;
    padding: 0.25rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
    height: 30px !important;
}

.search-history .modal.fade .modal-body {
    padding: 0.25rem !important;
    overflow-y: auto !important;
    flex: 1 !important;
    min-height: 0 !important;
    max-height: calc(100px - 60px) !important;
}

.search-history .modal.fade .modal-footer {
    border-top: 1px solid #dee2e6 !important;
    padding: 0.25rem 1rem !important;
    display: flex !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
    height: 30px !important;
}

.search-history .modal.fade .list-group {
    padding: 0.25rem !important;
}

.search-history .modal.fade .list-group-item {
    padding: 0.5rem 0.75rem !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.25rem !important;
    background-color: #f8f9fa !important;
    margin-bottom: 0.75rem !important;
}

.search-history .modal.fade .list-group-item:last-child {
    margin-bottom: 0 !important;
}

.search-history .modal.fade .list-group-item:hover {
    background-color: #e9ecef !important;
}

.search-history .modal.fade .term {
    font-weight: 500 !important;
    margin-bottom: 0.25rem !important;
    word-break: break-word !important;
    font-size: 0.95rem !important;
}

.search-history .modal.fade .text-muted {
    font-size: 0.8rem !important;
}

.search-history .modal.fade .btn-outline-secondary {
    padding: 0.25rem 0.5rem !important;
    margin-left: 0.5rem !important;
}

.search-history .modal.fade .btn-outline-danger {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
}

.search-history .modal-backdrop.fade.show {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 1040 !important;
} 