/* filter.css */
.filter-section {
    padding: 5px 5px;
    background: linear-gradient(135deg, #3e90b1, #2c7a9e);
    border-bottom: 2px solid #e1e5e9;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 6px 6px 0 0;
}

.filter-row {
    margin-bottom: 0;
    flex: 1;
    min-width: 100px;
}

.filter-row:last-child {
    flex: 0 0 auto;
}

.filter-label {
    display: block;
    margin-bottom: 3px;
    font-weight: 500;
    color: #f0f9ff;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filter-select {
    width: 100%;
    padding: 1px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 12px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
}

.filter-select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
    background-color: #ffffff;
}

.filter-select:hover {
    border-color: #94a3b8;
    background-color: #f8fafc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.filter-select:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    background-image: none;
}

.filter-select.loading {
    background-image: none;
}

.query-button {
    height: 32px;
    padding: 0 16px;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
    transition: all 0.2s ease;
    align-self: flex-end;
    margin-bottom: 2px;
    white-space: nowrap;
}

.query-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #4338ca, #3730a3);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.query-button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.query-button:active:not(:disabled) {
    transform: translateY(0);
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px;
    }
    
    .filter-row {
        min-width: auto;
        width: 100%;
        margin-bottom: 2px;
    }
    
    .filter-label {
        font-size: 11px;
        margin-bottom: 2px;
    }
    
    .filter-select {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .query-button {
        height: 36px;
        font-size: 14px;
        padding: 0;
        justify-content: center;
        align-items: center;
        display: flex;
        width: 100%;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .filter-section {
        padding: 6px;
        gap: 6px;
    }
    
    .filter-select {
        padding: 7px 10px;
        font-size: 13px;
    }
    
    .query-button {
        height: 34px;
        font-size: 13px;
    }
}