/* Стили для поиска и подсветки */
.search-highlight {
    background-color: #ffd700 !important;
    color: #000 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    font-weight: bold !important;
}

.market-search {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    align-items: center;
    flex-wrap: wrap;
}

.market-search input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 2px solid #3498db;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.market-search input:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-btn {
    background-color: #3498db;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #2980b9;
}

.clear-btn {
    background-color: #95a5a6;
    transition: background-color 0.3s;
}

.clear-btn:hover {
    background-color: #7f8c8d;
}

.export-btn {
    background-color: #27ae60;
    transition: background-color 0.3s;
}

.export-btn:hover {
    background-color: #229954;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .market-search button {
        flex: 1;
        min-width: 0;
    }
}

.search-counter {
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.3s ease;
}

.search-counter.no-results {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Анимация для строк при поиске */
.market-table tr {
    transition: all 0.3s ease;
}

.market-table tr {
    transition: opacity 0.3s ease, height 0.3s ease, transform 0.3s ease;
}

.market-table tr[style*="display: none"] {
    opacity: 0;
    height: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.market-table tr[style*="display: none"] {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Иконки поиска */
.market-search i {
    margin-right: 5px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .market-search {
        flex-direction: column;
    }
    
    .market-search input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .market-search button {
        width: 100%;
    }
}