
.search-history-panel {
    background-color: #ffffff; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    box-sizing: border-box;
    overflow: hidden; 
    display: none;
}
.history-panel-header,
.history-panel-content,
.history-panel-footer {
    padding: 10px 15px; 
    box-sizing: border-box;
}
.history-panel-header {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid #e9ecef; 
    
}
.history-header-content {
    flex-grow: 1; 
}
.history-header-title {
    font-size: 14px; 
    font-weight: bold; 
    color: #333; 
}
.history-header-actions {
    flex-shrink: 0; 
}
.history-panel-close-btn {
    display: flex; 
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #e9ecef; 
    color: #666; 
    border-radius: 50%; 
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0; 
}
.history-panel-close-btn:hover {
    background-color: #dc3545;
    color: #fff;
    transform: scale(1.1) rotate(90deg);
}
.history-panel-content {
    flex-grow: 1;
}
.history-panel-footer {
    text-align: center;
}
.history-items-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 8px; 
    padding: 5px 0;
}
.history-item-tag {
    display: inline-flex;
    align-items: center;
    background-color: #e9ecef; 
    border-radius: 50px; 
    padding: 5px 6px 5px 12px; 
    font-size: 13px;
    color: #495057;
    transition: all 0.2s ease-in-out;
    cursor: pointer; 
}
.history-item-tag:hover {
    background-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}
.history-item-text {
    white-space: nowrap; 
}
.history-item-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #dc3545; 
    color: white; 
    border: none;
    border-radius: 50%; 
    margin-right: 8px; 
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease-in-out;
    outline: none;
}
.history-item-delete-btn:hover {
    background-color: #c82333; 
    transform: scale(1.1) rotate(90deg); 
}
.history-delete-icon {
    display: inline-block; 
    transition: transform 0.2s ease-in-out; 
    line-height: 1; 
}
.history-item-delete-btn:hover .history-delete-icon {
    transform: rotate(90deg);
}
.no-history-message {
    font-size: 13px;
    color: #6c757d;
    text-align: center;
    padding: 10px 0;
    margin: 0;
}
.history-panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
}
.history-footer-content {
    flex-grow: 1;
    display: flex; 
    align-items: center; 
}
.history-footer-text {
    font-size: 12px;
    color: #6c757d;
}
.history-footer-actions {
    flex-shrink: 0;
}
.history-clear-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}
.history-clear-all-btn:hover {
    background-color: #dc3545;
    color: white;
    transform: scale(1.1);
}